Class CashuAuthMint

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

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