Struct breez_sdk_core::bitcoin::util::key::secp256k1::ffi::XOnlyPublicKey
#[repr(C)]pub struct XOnlyPublicKey(/* private fields */);
Implementations§
§impl XOnlyPublicKey
impl XOnlyPublicKey
pub 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
§impl XOnlyPublicKey
impl XOnlyPublicKey
pub unsafe fn new() -> XOnlyPublicKey
pub unsafe fn new() -> XOnlyPublicKey
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.
pub 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
§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.
pub 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.
Trait Implementations§
§impl AsRef<[u8; 64]> for XOnlyPublicKey
impl AsRef<[u8; 64]> for XOnlyPublicKey
§impl 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
§impl Clone for XOnlyPublicKey
impl Clone for XOnlyPublicKey
§fn clone(&self) -> XOnlyPublicKey
fn clone(&self) -> XOnlyPublicKey
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for XOnlyPublicKey
impl Debug for XOnlyPublicKey
§impl From<XOnlyPublicKey> for XOnlyPublicKey
impl From<XOnlyPublicKey> for XOnlyPublicKey
Creates a new Schnorr public key from a FFI x-only public key.
§fn from(pk: XOnlyPublicKey) -> XOnlyPublicKey
fn from(pk: XOnlyPublicKey) -> XOnlyPublicKey
§impl Hash for XOnlyPublicKey
impl Hash for XOnlyPublicKey
§impl Index<Range<usize>> for XOnlyPublicKey
impl Index<Range<usize>> for XOnlyPublicKey
§impl Index<RangeFrom<usize>> for XOnlyPublicKey
impl Index<RangeFrom<usize>> for XOnlyPublicKey
§impl Index<RangeFull> for XOnlyPublicKey
impl Index<RangeFull> for XOnlyPublicKey
§impl Index<RangeTo<usize>> for XOnlyPublicKey
impl Index<RangeTo<usize>> for XOnlyPublicKey
§impl Index<usize> for XOnlyPublicKey
impl Index<usize> for XOnlyPublicKey
§impl Ord for XOnlyPublicKey
impl Ord for XOnlyPublicKey
§impl PartialEq for XOnlyPublicKey
impl PartialEq for XOnlyPublicKey
§impl PartialOrd for XOnlyPublicKey
impl PartialOrd for XOnlyPublicKey
impl Copy for XOnlyPublicKey
impl Eq for XOnlyPublicKey
Auto Trait Implementations§
impl Freeze for XOnlyPublicKey
impl RefUnwindSafe for XOnlyPublicKey
impl Send for XOnlyPublicKey
impl Sync for XOnlyPublicKey
impl Unpin for XOnlyPublicKey
impl UnwindSafe for XOnlyPublicKey
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any
.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request