pub enum RedeemScriptPubkey {
Ecdsa(PublicKey),
XPublickey(XOnlyPublicKey),
}
Variants§
Ecdsa(PublicKey)
XPublickey(XOnlyPublicKey)
Implementations§
Source§impl RedeemScriptPubkey
impl RedeemScriptPubkey
Sourcepub fn encode(&self) -> OrdResult<PushBytesBuf>
pub fn encode(&self) -> OrdResult<PushBytesBuf>
Encode the public key to a push bytes buffer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RedeemScriptPubkey
impl RefUnwindSafe for RedeemScriptPubkey
impl Send for RedeemScriptPubkey
impl Sync for RedeemScriptPubkey
impl Unpin for RedeemScriptPubkey
impl UnwindSafe for RedeemScriptPubkey
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