CCC Docs
    Preparing search index...

    Type Alias ToSignInput

    ToSignInput: {
        index: number;
        sighashTypes?: number[];
        disableTweakSigner?: boolean;
    } & (
        | { address: string; publicKey?: string }
        | { address?: string; publicKey: string }
    )

    Specification for an input to sign in a PSBT. Must specify at least one of: address or pubkey.

    Type declaration

    • index: number

      Which input to sign (index in the PSBT inputs array)

    • OptionalsighashTypes?: number[]

      (Optional) Sighash types to use for signing.

    • OptionaldisableTweakSigner?: boolean

      (Optional) When signing and unlocking Taproot addresses, the tweakSigner is used by default for signature generation. Setting this to true allows for signing with the original private key. Default value is false.

    • { address: string; publicKey?: string }
      • address: string

        The address whose corresponding private key to use for signing.

      • OptionalpublicKey?: string

        The public key whose corresponding private key to use for signing.

    • { address?: string; publicKey: string }
      • Optionaladdress?: string

        The address whose corresponding private key to use for signing.

      • publicKey: string

        The public key whose corresponding private key to use for signing.