Add noisey debugging to attestation processing

This commit is contained in:
Paul Hauner 2019-09-08 16:28:01 -04:00
parent 92c16bb911
commit 1040c80cd8
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C
2 changed files with 11 additions and 2 deletions

View File

@ -55,6 +55,15 @@ pub fn is_valid_indexed_attestation<T: EthSpec>(
check_sorted(&bit_0_indices)?; check_sorted(&bit_0_indices)?;
check_sorted(&bit_1_indices)?; check_sorted(&bit_1_indices)?;
dbg!(indexed_attestation_signature_set(
state,
&indexed_attestation.signature,
&indexed_attestation,
spec
)?);
dbg!(&bit_0_indices);
dbg!(&bit_1_indices);
if verify_signatures.is_true() { if verify_signatures.is_true() {
verify!( verify!(
indexed_attestation_signature_set( indexed_attestation_signature_set(

View File

@ -7,7 +7,7 @@ use milagro_bls::AggregateSignature as RawAggregateSignature;
type Message = Vec<u8>; type Message = Vec<u8>;
type Domain = u64; type Domain = u64;
#[derive(Clone)] #[derive(Clone, Debug)]
pub struct SignedMessage<'a> { pub struct SignedMessage<'a> {
signing_keys: Vec<&'a G1Point>, signing_keys: Vec<&'a G1Point>,
message: Message, message: Message,
@ -25,7 +25,7 @@ impl<'a> SignedMessage<'a> {
} }
} }
#[derive(Clone)] #[derive(Clone, Debug)]
pub struct SignatureSet<'a> { pub struct SignatureSet<'a> {
pub signature: &'a G2Point, pub signature: &'a G2Point,
signed_messages: Vec<SignedMessage<'a>>, signed_messages: Vec<SignedMessage<'a>>,