pub struct Generator { /* fields omitted */ }
BLS generator point.
BLS algorithm requires choosing of generator point that must be known to all parties.
The most of BLS methods require generator to be provided.
Creates and returns random generator point that satisfy BLS algorithm requirements.
use indy_crypto::bls::Generator;
Generator::new().unwrap();
Returns BLS generator point bytes representation.
use indy_crypto::bls::*;
let gen = Generator::new().unwrap();
let gen_bytes = gen.as_bytes();
assert!(gen_bytes.len() > 0);
Creates and returns generator point from bytes representation.
use indy_crypto::bls::Generator;
let gen = Generator::new().unwrap();
let gen_bytes = gen.as_bytes();
Generator::from_bytes(gen_bytes).unwrap();
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static