Class ColdcardDI

Class representing Coldcard Device Integration and implementing the Airgapped interface.

Implements

  • Airgapped

Constructors

Properties

policyRegistrationRequired: boolean = true

Indicates whether policy registration is required.

Methods

  • Extracts a signature from a signed message.

    Parameters

    • message: string

      The signed message.

    Returns {
        addr: string;
        signature: string;
    }

    • The extracted signature containing address and signature.
    • addr: string
    • signature: string

    Throws

    • Throws an error if the file format is invalid.
  • Parses Coldcard config file and extracts device key params.

    Parameters

    • xpubConfigExport: ColdcardXpubExport

      The Coldcard Xpub Export object.

    • isMultisigWallet: boolean

      Indicates if the wallet is multisig.

    Returns DeviceKeyParams

    • The device key parameters.