|
15 | 15 | //! |
16 | 16 | //! use mithril_stm::{ |
17 | 17 | //! AggregateSignatureType, AggregationError, AncillaryGenesisData, AncillaryProofInput, Clerk, |
18 | | -//! Initializer, KeyRegistration, Parameters, RegistrationEntry, Signer, SingleSignature, |
| 18 | +//! Initializer, KeyRegistration, Parameters, Signer, SingleSignature, |
19 | 19 | //! MithrilMembershipDigest, |
20 | 20 | //! }; |
21 | 21 | //! |
|
59 | 59 | //! // Create keys for this party |
60 | 60 | //! let p = Initializer::new(params, stake, &mut rng); |
61 | 61 | //! // Register keys with the KeyRegistration service |
62 | | -//! let entry = RegistrationEntry::new( |
63 | | -//! p.get_verification_key_proof_of_possession_for_concatenation(), |
| 62 | +//! key_reg.register( |
64 | 63 | //! p.stake, |
| 64 | +//! &p.get_verification_key_proof_of_possession_for_concatenation(), |
65 | 65 | //! #[cfg(feature = "future_snark")] p.schnorr_verification_key, |
66 | 66 | //! ) |
67 | 67 | //! .unwrap(); |
68 | | -//! key_reg.register_by_entry(&entry).unwrap(); |
69 | 68 | //! ps.push(p); |
70 | 69 | //! } |
71 | 70 | //! |
@@ -148,14 +147,15 @@ mod protocol; |
148 | 147 | mod signature_scheme; |
149 | 148 |
|
150 | 149 | pub use proof_system::AggregateVerificationKeyForConcatenation; |
| 150 | +pub(crate) use protocol::RegistrationEntry; |
151 | 151 | pub use protocol::{ |
152 | 152 | AggregateSignature, AggregateSignatureError, AggregateSignatureType, AggregateVerificationKey, |
153 | 153 | AggregationError, AncillaryGenesisData, AncillaryProofInput, AncillaryProofOutput, |
154 | 154 | AncillaryProverData, AncillaryVerifierData, Clerk, ClosedKeyRegistration, |
155 | 155 | ClosedRegistrationEntry, GenesisVerificationKeyBundle, Initializer, KeyRegistration, |
156 | | - Parameters, RegisterError, RegistrationEntry, RegistrationEntryForConcatenation, |
157 | | - SignatureError, Signer, SingleSignature, SingleSignatureWithRegisteredParty, |
158 | | - VerificationKeyForConcatenation, VerificationKeyProofOfPossessionForConcatenation, |
| 156 | + Parameters, RegisterError, RegistrationEntryForConcatenation, SignatureError, Signer, |
| 157 | + SingleSignature, SingleSignatureWithRegisteredParty, VerificationKeyForConcatenation, |
| 158 | + VerificationKeyProofOfPossessionForConcatenation, |
159 | 159 | }; |
160 | 160 | pub use signature_scheme::BlsSignatureError; |
161 | 161 |
|
|
0 commit comments