Struct wallet_gen::ed25519::PublicKey
[−]
[src]
pub struct PublicKey(_);
An ed25519 public key.
Methods
impl PublicKey
[src]
fn from_private(
priv_key: &PrivateKey,
ctx: &mut BigNumContextRef
) -> Result<Self>
[src]
priv_key: &PrivateKey,
ctx: &mut BigNumContextRef
) -> Result<Self>
Calculates the ed25519 public key from the given private key.
fn to_bytes(&self) -> [u8; 32]
[src]
Gets a copy of this public key's bytes
fn as_bytes(&self) -> &[u8; 32]
[src]
Gets a reference to the internally stored public key bytes
Trait Implementations
impl Debug for PublicKey
[src]
impl Clone for PublicKey
[src]
fn clone(&self) -> PublicKey
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deref for PublicKey
[src]
type Target = [u8; 32]
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.