@cashu/cashu-ts
    Preparing search index...

    Class CashuAuthMint

    Class represents Cashu Auth Mint API. This class contains Lower level functions that are implemented by CashuAuthWallet.

    Index

    Constructors

    • Parameters

      • _mintUrl: string

        Requires mint URL to create this object.

      • Optional_customRequest: <T>(options: RequestOptions) => Promise<T>

        If passed, use custom request implementation for network communication with the mint.

      Returns CashuAuthMint

    Accessors

    Methods

    • Get the mints public NUT-22 keys.

      Parameters

      • OptionalkeysetId: string

        Optional param to get the keys for a specific keyset. If not specified, the keys from all active keysets are fetched.

      • OptionalmintUrl: string

      Returns Promise<MintActiveKeys>

      The mints public keys.

    • Get the mints public NUT-22 keys.

      Parameters

      • mintUrl: string
      • OptionalkeysetId: string

        Optional param to get the keys for a specific keyset. If not specified, the keys from all active keysets are fetched.

      • OptionalcustomRequest: <T>(options: RequestOptions) => Promise<T>

      Returns Promise<MintActiveKeys>

    • Get the mints NUT-22 keysets in no specific order.

      Parameters

      • mintUrl: string
      • OptionalcustomRequest: <T>(options: RequestOptions) => Promise<T>

      Returns Promise<MintAllKeysets>

      All the mints past and current keysets.

    • Mints new Blinded Authentication tokens by requesting blind signatures on the provided outputs.

      Parameters

      • mintUrl: string
      • mintPayload: BlindAuthMintPayload

        Payload containing the outputs to get blind signatures on.

      • clearAuthToken: string

        A NUT-21 clear auth token.

      • OptionalcustomRequest: <T>(options: RequestOptions) => Promise<T>

      Returns Promise<BlindAuthMintResponse>

      Serialized blinded signatures.