pub struct Signature;Expand description
structure contains serveral methods to handle signing of chunked data.
Implementations
sourceimpl Signature
impl Signature
sourcepub fn new_keypair() -> Keypair
pub fn new_keypair() -> Keypair
generates a new, random keypair.
sourcepub fn new_keypair_from_base64<K: Into<String>>(key: K) -> Result<Keypair>
pub fn new_keypair_from_base64<K: Into<String>>(key: K) -> Result<Keypair>
returns a keypair, parsed from the input data (formatted as base64).
Input data can be a secret key (32 bytes) or a secret/public keypair (64 bytes).
Auto Trait Implementations
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more