Skip to content

Commit

Permalink
multisig: improve human-readable serialization format
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed Feb 25, 2024
1 parent 3c9aa2c commit 29f917c
Show file tree
Hide file tree
Showing 7 changed files with 390 additions and 38 deletions.
2 changes: 2 additions & 0 deletions src/types/crypto/ed25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ impl Ed25519PrivateKey {
feature = "serde",
derive(serde_derive::Serialize, serde_derive::Deserialize)
)]
#[cfg_attr(test, derive(proptest_derive::Arbitrary))]
pub struct Ed25519PublicKey(
#[cfg_attr(
feature = "serde",
Expand Down Expand Up @@ -119,6 +120,7 @@ impl std::fmt::Debug for Ed25519PublicKey {
feature = "serde",
derive(serde_derive::Serialize, serde_derive::Deserialize)
)]
#[cfg_attr(test, derive(proptest_derive::Arbitrary))]
pub struct Ed25519Signature(
#[cfg_attr(
feature = "serde",
Expand Down
3 changes: 2 additions & 1 deletion src/types/crypto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ mod signature;
pub use bls12381::{Bls12381PrivateKey, Bls12381PublicKey, Bls12381Signature};
pub use ed25519::{Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature};
pub use multisig::{
MultisigAggregatedSignature, MultisigCommittee, MultisigMember, MultisigMemberSignature,
MultisigAggregatedSignature, MultisigCommittee, MultisigMember, MultisigMemberPublicKey,
MultisigMemberSignature,
};
pub use secp256k1::{Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature};
pub use secp256r1::{Secp256r1PrivateKey, Secp256r1PublicKey, Secp256r1Signature};
Expand Down
Loading

0 comments on commit 29f917c

Please sign in to comment.