Struct shuttle_core::SignatureHint
[−]
[src]
pub struct SignatureHint(pub [u8; 4]);
Last 4 bytes of a public key.
Methods
impl SignatureHint
[src]
fn from_public_key(pk: &PublicKey) -> SignatureHint
[src]
Create a SignatureHint
with the last 4 bytes of the public key pk
.
fn to_vec(&self) -> Vec<u8>
[src]
Convert to Vec<u8>
.
Trait Implementations
impl Debug for SignatureHint
[src]
impl Clone for SignatureHint
[src]
fn clone(&self) -> SignatureHint
[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 PartialEq for SignatureHint
[src]
fn eq(&self, __arg_0: &SignatureHint) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SignatureHint) -> bool
[src]
This method tests for !=
.