Skip to content

Reverse lookup on the identity contract #17

Description

@friedger

As mentioned in aibtcdev/landing-page#119

Add a map to identity-registry-v3 (or a companion contract):

(define-map agent-id-by-owner principal uint)

Updated on register / register-with-uri. Enables:

(get-agent-id-by-owner 'SPKH9AWG0ENZ87J1X0PBD4HETP22G8W22AFNVF8K) ;; => (some u0)

This is essential for any flow where you start with an address and need the agent-id (which is every flow).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions