From 171d9386f579366890dd1d62d3de2a2fa4d2c0aa Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Thu, 12 Oct 2023 14:00:34 -0600 Subject: [PATCH] only require `Merkleized` for signature ops --- ethereum-consensus/src/signing.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ethereum-consensus/src/signing.rs b/ethereum-consensus/src/signing.rs index 15795ff0c..76f5fdee5 100644 --- a/ethereum-consensus/src/signing.rs +++ b/ethereum-consensus/src/signing.rs @@ -11,7 +11,7 @@ pub struct SigningData { pub domain: Domain, } -pub fn compute_signing_root( +pub fn compute_signing_root( ssz_object: &mut T, domain: Domain, ) -> Result { @@ -21,7 +21,7 @@ pub fn compute_signing_root( s.hash_tree_root().map_err(Error::Merkleization) } -pub fn sign_with_domain( +pub fn sign_with_domain( data: &mut T, signing_key: &SecretKey, domain: Domain, @@ -30,7 +30,7 @@ pub fn sign_with_domain( Ok(signing_key.sign(signing_root.as_ref())) } -pub fn verify_signed_data( +pub fn verify_signed_data( data: &mut T, signature: &BlsSignature, public_key: &BlsPublicKey,