pub trait TransactionSigner: SignerCommon {
    // Required method
    fn sign_transaction(
        &self,
        psbt: &mut PartiallySignedTransaction,
        sign_options: &SignOptions,
        secp: &Secp256k1<All>
    ) -> Result<(), SignerError>;
}
Expand description

PSBT signer

This trait can be implemented when the signer can’t sign inputs individually, but signs the whole transaction at once.

Required Methods§

source

fn sign_transaction( &self, psbt: &mut PartiallySignedTransaction, sign_options: &SignOptions, secp: &Secp256k1<All> ) -> Result<(), SignerError>

Sign all the inputs of the psbt

Implementors§

source§

impl TransactionSigner for HWISigner

Available on crate feature hardware-signer only.

This implementation ignores sign_options

source§

impl<T: InputSigner> TransactionSigner for T