pub struct P2PK { /* private fields */ }Implementations§
Source§impl P2PK
impl P2PK
pub const SOURCE: &'static str = "fn main() {\n jet::bip_0340_verify((param::PUBLIC_KEY, jet::sig_all_hash()), witness::SIGNATURE)\n}\n"
pub fn new( public_key: XOnlyPublicKey, arguments: impl ArgumentsTrait + 'static, ) -> P2PK
pub fn get_program(&self) -> &Program
pub fn get_program_mut(&mut self) -> &mut Program
Auto Trait Implementations§
impl Freeze for P2PK
impl !RefUnwindSafe for P2PK
impl !Send for P2PK
impl !Sync for P2PK
impl Unpin for P2PK
impl UnsafeUnpin for P2PK
impl !UnwindSafe for P2PK
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more