pub struct BitcoinSigner { /* private fields */ }Implementations§
Source§impl BitcoinSigner
impl BitcoinSigner
pub fn new(secret: &mut [u8; 32], network: Network) -> Result<Self>
pub fn with_policy(self, policy: SigningPolicy) -> Self
pub fn set_policy(&mut self, policy: SigningPolicy)
pub fn network(&self) -> Network
pub fn get_receive_address(&self, index: u32) -> Result<String>
pub fn get_change_address(&self, index: u32) -> Result<String>
pub fn get_addresses(&self, count: u32) -> Result<Vec<String>>
pub fn export_descriptor(&self, account: u32) -> Result<DescriptorExport>
pub fn analyze_psbt(&self, psbt: &Psbt) -> Result<PsbtAnalysis>
pub fn check_policy(&self, analysis: &PsbtAnalysis) -> Result<()>
pub fn sign_psbt(&self, psbt: &mut Psbt) -> Result<usize>
pub fn x_only_public_key(&self) -> [u8; 32]
pub fn fingerprint(&self) -> Result<String>
Auto Trait Implementations§
impl Forget for BitcoinSigner
impl Freeze for BitcoinSigner
impl Move for BitcoinSigner
impl RefUnwindSafe for BitcoinSigner
impl Send for BitcoinSigner
impl Sync for BitcoinSigner
impl Unpin for BitcoinSigner
impl UnsafeUnpin for BitcoinSigner
impl UnwindSafe for BitcoinSigner
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