pub struct NoncePks(/* private fields */);Expand description
An aggregate public nonce per shared internal (non-leaf) node in the VTXO tree.
Implementations§
Source§impl NoncePks
impl NoncePks
pub fn new(nonce_pks: HashMap<Txid, PublicNonce>) -> Self
Sourcepub fn get(&self, txid: &Txid) -> Option<PublicNonce>
pub fn get(&self, txid: &Txid) -> Option<PublicNonce>
Get the [MusigPubNonce] for the transaction identified by txid.
pub fn encode(&self) -> HashMap<String, String>
pub fn decode(map: HashMap<String, String>) -> Result<Self, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NoncePks
impl RefUnwindSafe for NoncePks
impl Send for NoncePks
impl Sync for NoncePks
impl Unpin for NoncePks
impl UnsafeUnpin for NoncePks
impl UnwindSafe for NoncePks
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