Skip to content

Commit

Permalink
refactor(member secret key copy): copy + &
Browse files Browse the repository at this point in the history
provide ability to copy
  • Loading branch information
cong-or committed May 30, 2023
1 parent df54963 commit 36c6096
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/chain-libs/chain-vote/src/committee.rs
Expand Up @@ -170,7 +170,7 @@ impl MemberState {
&self.sk
}

pub fn secret_key_a(&self) -> MemberSecretKey {
pub fn member_secret_key(&self) -> MemberSecretKey {
self.sk.clone()
}

Expand Down
6 changes: 3 additions & 3 deletions src/tally/src/main.rs
Expand Up @@ -370,9 +370,9 @@ mod tests {
let committee_public_keys =
vec![alice.public_key(), bob.public_key(), charlie.public_key()];
let committee_secret_keys = vec![
alice.secret_key_a(),
bob.secret_key_a(),
charlie.secret_key_a(),
alice.member_secret_key(),
bob.member_secret_key(),
charlie.member_secret_key(),
];

let ek = ElectionPublicKey::from_participants(&committee_public_keys);
Expand Down

0 comments on commit 36c6096

Please sign in to comment.