pub struct VerKey { /* private fields */ }Expand description
BLS verification key.
Implementations§
Source§impl VerKey
impl VerKey
Sourcepub fn new(gen: &Generator, sign_key: &SignKey) -> IndyCryptoResult<VerKey>
pub fn new(gen: &Generator, sign_key: &SignKey) -> IndyCryptoResult<VerKey>
Creates and returns BLS ver key that corresponds to sign key.
§Example
use indy_crypto::bls::Generator;
Generator::new().unwrap();Sourcepub fn from_bytes(bytes: &[u8]) -> IndyCryptoResult<VerKey>
pub fn from_bytes(bytes: &[u8]) -> IndyCryptoResult<VerKey>
Creates and returns BLS verification key from bytes representation.
§Example
//TODO: Provide an example!Trait Implementations§
Auto Trait Implementations§
impl Freeze for VerKey
impl RefUnwindSafe for VerKey
impl Send for VerKey
impl Sync for VerKey
impl Unpin for VerKey
impl UnsafeUnpin for VerKey
impl UnwindSafe for VerKey
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