pub struct CompressedPublicKey(pub PublicKey);
Expand description
Represents a compressed serializable extension of the PublicKey
using the secp256k1 curve.
Tuple Fields§
§0: PublicKey
Implementations§
Source§impl CompressedPublicKey
impl CompressedPublicKey
pub fn to_address(&self) -> Address
Trait Implementations§
Source§impl AsRef<[u8]> for CompressedPublicKey
impl AsRef<[u8]> for CompressedPublicKey
Source§impl BytesRepresentable for CompressedPublicKey
impl BytesRepresentable for CompressedPublicKey
Source§impl Clone for CompressedPublicKey
impl Clone for CompressedPublicKey
Source§fn clone(&self) -> CompressedPublicKey
fn clone(&self) -> CompressedPublicKey
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CompressedPublicKey
impl Debug for CompressedPublicKey
Source§impl From<&CompressedPublicKey> for ProjectivePoint
impl From<&CompressedPublicKey> for ProjectivePoint
Source§fn from(value: &CompressedPublicKey) -> Self
fn from(value: &CompressedPublicKey) -> Self
Converts to this type from the input type.
Source§impl From<PublicKey> for CompressedPublicKey
impl From<PublicKey> for CompressedPublicKey
Source§impl PartialEq for CompressedPublicKey
impl PartialEq for CompressedPublicKey
Source§impl TryFrom<&[u8]> for CompressedPublicKey
impl TryFrom<&[u8]> for CompressedPublicKey
impl Eq for CompressedPublicKey
impl StructuralPartialEq for CompressedPublicKey
Auto Trait Implementations§
impl !Freeze for CompressedPublicKey
impl RefUnwindSafe for CompressedPublicKey
impl Send for CompressedPublicKey
impl Sync for CompressedPublicKey
impl Unpin for CompressedPublicKey
impl UnwindSafe for CompressedPublicKey
Blanket Implementations§
§impl<T, U> AsByteSlice<T> for U
impl<T, U> AsByteSlice<T> for U
fn as_byte_slice(&self) -> &[u8] ⓘ
§impl<U> AsSliceOf for U
impl<U> AsSliceOf for U
fn as_slice_of<T>(&self) -> Result<&[T], Error>where
T: FromByteSlice,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> ToHex for Twhere
T: BytesRepresentable,
impl<T> ToHex for Twhere
T: BytesRepresentable,
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)