pub struct ImportSigner<'a> {
pub public: [u8; 32],
pub sign_commit: &'a mut dyn FnMut(&Commit) -> Result<[u8; 64], BridgeError>,
pub sign_tag: &'a mut dyn FnMut(&Tag) -> Result<[u8; 64], BridgeError>,
}Expand description
Signing callbacks: given the unsigned object (zeroed signature),
return the 64-byte signature. The signer pubkey is supplied
separately so the engine can fill the signer field first.
Fields§
§public: [u8; 32]§sign_commit: &'a mut dyn FnMut(&Commit) -> Result<[u8; 64], BridgeError>§sign_tag: &'a mut dyn FnMut(&Tag) -> Result<[u8; 64], BridgeError>Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ImportSigner<'a>
impl<'a> !Send for ImportSigner<'a>
impl<'a> !Sync for ImportSigner<'a>
impl<'a> !UnwindSafe for ImportSigner<'a>
impl<'a> Freeze for ImportSigner<'a>
impl<'a> Unpin for ImportSigner<'a>
impl<'a> UnsafeUnpin for ImportSigner<'a>
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