Struct indy_crypto::bls::VerKey [−][src]
pub struct VerKey { /* fields omitted */ }
BLS verification key.
Methods
impl VerKey
[src]
impl VerKey
pub fn new(
gen: &Generator,
sign_key: &SignKey
) -> Result<VerKey, IndyCryptoError>
[src]
pub fn new(
gen: &Generator,
sign_key: &SignKey
) -> Result<VerKey, IndyCryptoError>
Creates and returns BLS ver key that corresponds to sign key.
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<VerKey, IndyCryptoError>
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<VerKey, IndyCryptoError>
Creates and returns BLS verification key from bytes representation.
Example
//TODO: Provide an example!
Trait Implementations
impl Debug for VerKey
[src]
impl Debug for VerKey
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for VerKey
[src]
impl Clone for VerKey