Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

crypto: Add Sui + Aggregation support #460

Merged
merged 25 commits into from
Jul 15, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
CICD
  • Loading branch information
punwai committed Jul 15, 2022
commit c0258335f8ca8832a9affb60cc51036b02d835b8
3 changes: 2 additions & 1 deletion crypto/src/bls12381.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ impl Signer<BLS12381Signature> for BLS12381KeyPair {
impl AsRef<[u8]> for BLS12381AggregateSignature {
fn as_ref(&self) -> &[u8] {
match self.sig {
Some(sig) => self.bytes
Some(sig) => self
.bytes
.get_or_try_init::<_, eyre::Report>(|| Ok(sig.to_bytes()))
.expect("OnceCell invariant violated"),
None => &[],
Expand Down