Struct secp256k1_zkp_sys::XOnlyPublicKey
source · [−]#[repr(C)]pub struct XOnlyPublicKey(_);
Implementations
sourceimpl XOnlyPublicKey
impl XOnlyPublicKey
sourcepub unsafe fn new() -> XOnlyPublicKey
pub unsafe fn new() -> XOnlyPublicKey
Creates an “uninitialized” FFI x-only public key which is zeroed out
If you pass this to any FFI functions, except as an out-pointer, the result is likely to be an assertation failure and process termination.
sourcepub unsafe fn from_array_unchecked(data: [u8; 64]) -> XOnlyPublicKey
pub unsafe fn from_array_unchecked(data: [u8; 64]) -> XOnlyPublicKey
Create a new x-only public key usable for the FFI interface from raw bytes
Does not check the validity of the underlying representation. If it is invalid the result may be assertation failures (and process aborts) from the underlying library. You should not use this method except with data that you obtained from the FFI interface of the same version of this library.
sourcepub fn underlying_bytes(self) -> [u8; 64]
pub fn underlying_bytes(self) -> [u8; 64]
Returns the underlying FFI opaque representation of the x-only public key
You should not use this unless you really know what you are doing. It is essentially only useful for extending the FFI interface itself.
sourceimpl XOnlyPublicKey
impl XOnlyPublicKey
sourcepub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_mut_ptr(&mut self) -> *mut u8
Converts the object to a mutable raw pointer for FFI interfacing
Trait Implementations
sourceimpl CPtr for XOnlyPublicKey
impl CPtr for XOnlyPublicKey
type Target = u8
fn as_c_ptr(&self) -> *const <XOnlyPublicKey as CPtr>::Target
fn as_mut_c_ptr(&mut self) -> *mut <XOnlyPublicKey as CPtr>::Target
sourceimpl Clone for XOnlyPublicKey
impl Clone for XOnlyPublicKey
sourcefn clone(&self) -> XOnlyPublicKey
fn clone(&self) -> XOnlyPublicKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for XOnlyPublicKey
impl Debug for XOnlyPublicKey
sourceimpl Hash for XOnlyPublicKey
impl Hash for XOnlyPublicKey
sourceimpl Index<Range<usize>> for XOnlyPublicKey
impl Index<Range<usize>> for XOnlyPublicKey
sourceimpl Index<RangeFrom<usize>> for XOnlyPublicKey
impl Index<RangeFrom<usize>> for XOnlyPublicKey
sourceimpl Index<RangeFull> for XOnlyPublicKey
impl Index<RangeFull> for XOnlyPublicKey
sourceimpl Index<RangeTo<usize>> for XOnlyPublicKey
impl Index<RangeTo<usize>> for XOnlyPublicKey
sourceimpl Index<usize> for XOnlyPublicKey
impl Index<usize> for XOnlyPublicKey
sourceimpl Ord for XOnlyPublicKey
impl Ord for XOnlyPublicKey
sourceimpl PartialEq<XOnlyPublicKey> for XOnlyPublicKey
impl PartialEq<XOnlyPublicKey> for XOnlyPublicKey
sourceimpl PartialOrd<XOnlyPublicKey> for XOnlyPublicKey
impl PartialOrd<XOnlyPublicKey> for XOnlyPublicKey
sourcefn partial_cmp(&self, other: &XOnlyPublicKey) -> Option<Ordering>
fn partial_cmp(&self, other: &XOnlyPublicKey) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for XOnlyPublicKey
impl Eq for XOnlyPublicKey
Auto Trait Implementations
impl RefUnwindSafe for XOnlyPublicKey
impl Send for XOnlyPublicKey
impl Sync for XOnlyPublicKey
impl Unpin for XOnlyPublicKey
impl UnwindSafe for XOnlyPublicKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more