pub struct MultiSignature { /* fields omitted */ }
Creates and returns multi signature for provided list of signatures.
signatures
- List of signatures
use indy_crypto::bls::*;
let sign_key1 = SignKey::new(None).unwrap();
let sign_key2 = SignKey::new(None).unwrap();
let message = vec![1, 2, 3, 4, 5];
let signature1 = Bls::sign(&message, &sign_key1).unwrap();
let signature2 = Bls::sign(&message, &sign_key2).unwrap();
let signatures = vec![
&signature1,
&signature2
];
MultiSignature::new(&signatures).unwrap();
Returns BLS multi signature bytes representation.
Creates and returns BLS multi signature from bytes representation.
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