pub struct PublicKey(/* private fields */);Implementations§
Source§impl PublicKey
impl PublicKey
pub fn from_bytes_unchecked(bytes: &[u8; 48]) -> Result<Self>
pub fn generator() -> Self
pub fn from_integer(int_bytes: &[u8]) -> Self
pub fn from_bytes(bytes: &[u8; 48]) -> Result<Self>
pub fn from_uncompressed(buf: &[u8; 96]) -> Result<Self>
pub fn to_bytes(&self) -> [u8; 48]
pub fn is_valid(&self) -> bool
pub fn is_inf(&self) -> bool
pub fn negate(&mut self)
pub fn scalar_multiply(&mut self, int_bytes: &[u8])
pub fn get_fingerprint(&self) -> u32
Trait Implementations§
Source§impl AddAssign<&PublicKey> for PublicKey
impl AddAssign<&PublicKey> for PublicKey
Source§fn add_assign(&mut self, rhs: &PublicKey)
fn add_assign(&mut self, rhs: &PublicKey)
Performs the
+= operation. Read moreSource§impl DerivableKey for PublicKey
impl DerivableKey for PublicKey
fn derive_unhardened(&self, idx: u32) -> Self
Source§impl Streamable for PublicKey
impl Streamable for PublicKey
fn update_digest(&self, digest: &mut Sha256)
fn stream(&self, out: &mut Vec<u8>) -> Result<()>
fn parse<const TRUSTED: bool>(input: &mut Cursor<&[u8]>) -> Result<Self>
fn to_bytes(&self) -> Result<Vec<u8>, Error>
fn from_bytes(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn from_bytes_unchecked(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn hash(&self) -> [u8; 32]
Source§impl SubAssign<&PublicKey> for PublicKey
impl SubAssign<&PublicKey> for PublicKey
Source§fn sub_assign(&mut self, rhs: &PublicKey)
fn sub_assign(&mut self, rhs: &PublicKey)
Performs the
-= operation. Read moreimpl Copy for PublicKey
impl Eq for PublicKey
Auto Trait Implementations§
impl Freeze for PublicKey
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)