Struct secp256k1_sys::XOnlyPublicKey
source · [−]#[repr(C)]pub struct XOnlyPublicKey(_);
Implementations
sourceimpl XOnlyPublicKey
impl XOnlyPublicKey
sourceimpl XOnlyPublicKey
impl XOnlyPublicKey
sourcepub unsafe fn new() -> Self
pub unsafe fn new() -> Self
Creates an “uninitialized” FFI x-only public key which is zeroed out
Safety
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: [c_uchar; 64]) -> Self
pub unsafe fn from_array_unchecked(data: [c_uchar; 64]) -> Self
Create a new x-only public key usable for the FFI interface from raw bytes
Safety
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) -> [c_uchar; 64]
pub fn underlying_bytes(self) -> [c_uchar; 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.
Trait Implementations
sourceimpl AsRef<[u8; 64]> for XOnlyPublicKey
impl AsRef<[u8; 64]> for XOnlyPublicKey
sourceimpl CPtr for XOnlyPublicKey
impl CPtr for XOnlyPublicKey
sourceimpl Clone for XOnlyPublicKey
impl Clone for XOnlyPublicKey
sourcefn clone(&self) -> XOnlyPublicKey
fn clone(&self) -> XOnlyPublicKey
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl 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
sourcefn cmp(&self, other: &XOnlyPublicKey) -> Ordering
fn cmp(&self, other: &XOnlyPublicKey) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<XOnlyPublicKey> for XOnlyPublicKey
impl PartialEq<XOnlyPublicKey> for XOnlyPublicKey
sourcefn eq(&self, other: &XOnlyPublicKey) -> bool
fn eq(&self, other: &XOnlyPublicKey) -> bool
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>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more