Swig TS — API References
    Preparing search index...

    Class SessionBasedAuthorityAbstract

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    address: Uint8Array

    The address that identifies this Authority.

    For Ed25519/ProgramExec: the public key bytes. For Secp256k1: the 20-byte Ethereum address derived from the public key. For Secp256r1: the compressed public key bytes.

    addressString: string

    String representation of the authority address.

    For Ed25519/ProgramExec: base58 encoded. For Secp256k1/Secp256r1: unprefixed hex.

    data: Uint8Array
    expirySlot: bigint

    Slot when the session expires

    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.

    Use address instead

    maxDuration: bigint

    Max duration on a session

    session: boolean

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

    sessionKey: SolPublicKey

    Ed25519 based Public Key as Session key

    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.

    Use signerAddress instead

    signerAddress: Uint8Array

    The address that identifies the signer acting on behalf of this Authority.

    For TokenBasedAuthority: same as address. For SessionBasedAuthority: the session key bytes.

    signerAddressString: string

    String representation of the signerAddress.

    For TokenBasedAuthority: same as addressString. For SessionBasedAuthority: base58 encoded session key.

    Methods

    • Check if the given address bytes match this authority's address.

      Parameters

      • address: Uint8Array

      Returns boolean

    • Check two Authority has the same signer.

      Parameters

      • signer: Uint8Array

      Returns boolean