Skip to content

Commit

Permalink
fix: TODO in 'mithril-stm/src/key_reg.rs'
Browse files Browse the repository at this point in the history
  • Loading branch information
jpraynaud committed Jan 14, 2025
1 parent 9732f76 commit 6cabc96
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mithril-stm/src/key_reg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ pub struct ClosedKeyReg<D: Digest> {
}

impl KeyReg {
/// Initialise an empty `KeyReg`.
/// todo: remove this init function
/// Initialize an empty `KeyReg`.
pub fn init() -> Self {
Self {
keys: HashMap::new(),
}
Self::default()
}

/// Verify and register a public key and stake for a particular party.
Expand Down

0 comments on commit 6cabc96

Please sign in to comment.