pub struct ClosedKeyReg<D: Digest> {
pub reg_parties: Vec<RegParty>,
pub total_stake: Stake,
pub merkle_tree: Arc<MerkleTree<D>>,
}
Expand description
Structure generated out of a closed registration containing the registered parties, total stake, and the merkle tree.
One can only get a global avk
out of a closed key registration.
Fields§
§reg_parties: Vec<RegParty>
Ordered list of registered parties.
total_stake: Stake
Total stake of the registered parties.
merkle_tree: Arc<MerkleTree<D>>
Unique public key out of the key registration instance.
Trait Implementations§
source§impl<D: Clone + Digest> Clone for ClosedKeyReg<D>
impl<D: Clone + Digest> Clone for ClosedKeyReg<D>
source§fn clone(&self) -> ClosedKeyReg<D>
fn clone(&self) -> ClosedKeyReg<D>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<D: Debug + Digest> Debug for ClosedKeyReg<D>
impl<D: Debug + Digest> Debug for ClosedKeyReg<D>
source§impl<D: Clone + Digest + FixedOutput> From<&ClosedKeyReg<D>> for StmAggrVerificationKey<D>
impl<D: Clone + Digest + FixedOutput> From<&ClosedKeyReg<D>> for StmAggrVerificationKey<D>
source§fn from(reg: &ClosedKeyReg<D>) -> Self
fn from(reg: &ClosedKeyReg<D>) -> Self
Converts to this type from the input type.
source§impl<D: PartialEq + Digest> PartialEq for ClosedKeyReg<D>
impl<D: PartialEq + Digest> PartialEq for ClosedKeyReg<D>
impl<D: Eq + Digest> Eq for ClosedKeyReg<D>
impl<D: Digest> StructuralPartialEq for ClosedKeyReg<D>
Auto Trait Implementations§
impl<D> Freeze for ClosedKeyReg<D>
impl<D> RefUnwindSafe for ClosedKeyReg<D>where
D: RefUnwindSafe,
impl<D> Send for ClosedKeyReg<D>
impl<D> Sync for ClosedKeyReg<D>
impl<D> Unpin for ClosedKeyReg<D>
impl<D> UnwindSafe for ClosedKeyReg<D>where
D: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)