Swig TS — API References
    Preparing search index...

    Class TokenBasedAuthorityAbstract

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    data: Uint8Array
    id: Uint8Array

    This is the ID for the Authority.

    This would usually the data that represents the Authority

    For TokenBasedAuthority, it is either a Ed25519 or Secp256k1 Public Key.

    For SessionBasedAuthority, It could be public key bytes, groth16 proof etc.

    session: boolean

    Indicates if Authority is Session-based or not. true if Authority is Session-based

    signer: Uint8Array

    This is the Signer ID for the Authority.

    This would usually the public key bytes that identifies the signer on behalf of the authority,

    For TokenBasedAuthority, it is either a Ed25519 or Secp256k1 Public Key.

    For SessionBasedAuthority, it is the Session Key.

    Methods

    • Check two Authority has the same signer.

      Parameters

      • signer: Uint8Array

      Returns boolean