pub struct SignKey { /* private fields */ }Expand description
BLS sign key.
Implementations§
Source§impl SignKey
impl SignKey
Sourcepub fn new(seed: Option<&[u8]>) -> IndyCryptoResult<SignKey>
pub fn new(seed: Option<&[u8]>) -> IndyCryptoResult<SignKey>
Creates and returns random (or seeded from seed) BLS sign key algorithm requirements.
§Example
use indy_crypto::bls::Generator;
Generator::new().unwrap();Sourcepub fn from_bytes(bytes: &[u8]) -> IndyCryptoResult<SignKey>
pub fn from_bytes(bytes: &[u8]) -> IndyCryptoResult<SignKey>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SignKey
impl RefUnwindSafe for SignKey
impl Send for SignKey
impl Sync for SignKey
impl Unpin for SignKey
impl UnsafeUnpin for SignKey
impl UnwindSafe for SignKey
Blanket Implementations§
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