pub struct SigningKey(pub Vec<ExtendedPrivKey>);Tuple Fields§
§0: Vec<ExtendedPrivKey>Implementations§
Source§impl SigningKey
impl SigningKey
pub fn read_key_from_buf(buf: &[u8]) -> Result<Self, Error>
pub fn new_key(network: Network) -> Result<Self, Error>
pub fn merge(&mut self, other: SigningKey) -> &mut SigningKey
pub fn pubkey<C: Signing>(&self, secp: &Secp256k1<C>) -> Vec<ExtendedPubKey>
pub fn sign( &self, psbt: PartiallySignedTransaction, hash_ty: SchnorrSighashType, ) -> Result<Vec<u8>, PSBTSigningError>
pub fn sign_psbt<C: Signing + Verification>( &self, psbt: PartiallySignedTransaction, secp: &Secp256k1<C>, hash_ty: SchnorrSighashType, ) -> Result<PartiallySignedTransaction, (PartiallySignedTransaction, PSBTSigningError)>
pub fn sign_psbt_mut<C: Signing + Verification>( &self, psbt: &mut PartiallySignedTransaction, secp: &Secp256k1<C>, hash_ty: SchnorrSighashType, ) -> Result<(), PSBTSigningError>
pub fn sign_psbt_input<C: Signing + Verification>( &self, psbt: PartiallySignedTransaction, secp: &Secp256k1<C>, idx: usize, hash_ty: SchnorrSighashType, ) -> Result<PartiallySignedTransaction, (PartiallySignedTransaction, PSBTSigningError)>
pub fn sign_psbt_input_mut<C: Signing + Verification>( &self, psbt: &mut PartiallySignedTransaction, secp: &Secp256k1<C>, idx: usize, hash_ty: SchnorrSighashType, ) -> Result<(), PSBTSigningError>
Auto Trait Implementations§
impl Freeze for SigningKey
impl RefUnwindSafe for SigningKey
impl Send for SigningKey
impl Sync for SigningKey
impl Unpin for SigningKey
impl UnsafeUnpin for SigningKey
impl UnwindSafe for SigningKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more