Skip to content

Commit

Permalink
Revert "Ensure we sign valset upd vexts with the correct key kind"
Browse files Browse the repository at this point in the history
This reverts commit 03904d7.

We will install this commit again once PR #371 lands.
  • Loading branch information
sug0 committed Aug 26, 2022
1 parent 19d9f37 commit 957e326
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions shared/src/types/vote_extensions/validator_set_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,12 @@ pub struct Vext {
}

impl Vext {
/// Ensures `sk` is a Secp256k1 key, then creates a new signed [`Vext`].
/// Creates a new signed [`Vext`].
///
/// For more information, read the docs of [`SignedVext::new`].
#[inline]
pub fn sign(&self, sk: &common::SecretKey) -> Option<SignedVext> {
use common::SecretKey::*;
match sk {
Secp256k1(_) => Some(SignedVext::new(sk, self.clone())),
_ => None,
}
pub fn sign(&self, sk: &common::SecretKey) -> SignedVext {
SignedVext::new(sk, self.clone())
}
}

Expand Down

0 comments on commit 957e326

Please sign in to comment.