@btc-vision/ecpair - v4.0.2
    Preparing search index...

    Interface SignerAsync

    Asynchronous counterpart of Signer for hardware wallets or remote signing services.

    interface SignerAsync {
        network?: Network;
        publicKey: PublicKey;
        sign(hash: MessageHash, lowR?: boolean): Promise<Signature>;
        signSchnorr?(hash: MessageHash): Promise<SchnorrSignature>;
    }
    Index

    Properties

    network?: Network

    Network this signer is bound to, if any.

    publicKey: PublicKey

    SEC1-encoded public key (33 or 65 bytes).

    Methods

    • Produces a compact ECDSA signature over hash.

      Parameters

      • hash: MessageHash

        32-byte message digest.

      • OptionallowR: boolean

        When true, grinds for a low-R value.

      Returns Promise<Signature>