Constructors

Properties

formats: {
    web2: {
        github: string[];
        twitter: string[];
    };
} = ...

Methods

  • Create a web2 proof payload for use with web2 identity inference.

    Parameters

    • keypair: IKeyPair

      The keypair of the demos account.

    Returns Promise<string>

    The web2 proof payload string.

  • Get the identities associated with an address.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • call: string = "getIdentities"
    • Optionaladdress: string

      The address to get identities for.

    Returns Promise<RPCResponse>

    The identities associated with the address.

  • Get the web2 identities associated with an address.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • Optionaladdress: string

      The address to get identities for.

    Returns Promise<RPCResponse>

    The identities associated with the address.

  • Get the crosschain identities associated with an address.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • Optionaladdress: string

      The address to get identities for.

    Returns Promise<RPCResponse>

    The identities associated with the address.

  • Infer an identity from either a crosschain payload or a web2 proof.

    Parameters

    • demos: Demos

      A Demos instance to communicate with the RPC.

    • context: "xm" | "web2"

      The context of the identity to infer.

    • payload: any

      The payload to infer the identity from.

    Returns Promise<RPCResponseWithValidityData>

    The validity data of the identity transaction.