Struct indy_crypto::bls::SignKey [−][src]
pub struct SignKey { /* fields omitted */ }
BLS sign key.
Methods
impl SignKey
[src]
impl SignKey
pub fn new(seed: Option<&[u8]>) -> Result<SignKey, IndyCryptoError>
[src]
pub fn new(seed: Option<&[u8]>) -> Result<SignKey, IndyCryptoError>
Creates and returns random (or seeded from seed) BLS sign key algorithm requirements.
Example
use indy_crypto::bls::Generator; Generator::new().unwrap();
pub fn as_bytes(&self) -> &[u8]
[src]
pub fn as_bytes(&self) -> &[u8]
pub fn from_bytes(bytes: &[u8]) -> Result<SignKey, IndyCryptoError>
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<SignKey, IndyCryptoError>