Add noisey debugging to attestation processing
This commit is contained in:
parent
92c16bb911
commit
1040c80cd8
@ -55,6 +55,15 @@ pub fn is_valid_indexed_attestation<T: EthSpec>(
|
||||
check_sorted(&bit_0_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() {
|
||||
verify!(
|
||||
indexed_attestation_signature_set(
|
||||
|
@ -7,7 +7,7 @@ use milagro_bls::AggregateSignature as RawAggregateSignature;
|
||||
type Message = Vec<u8>;
|
||||
type Domain = u64;
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct SignedMessage<'a> {
|
||||
signing_keys: Vec<&'a G1Point>,
|
||||
message: Message,
|
||||
@ -25,7 +25,7 @@ impl<'a> SignedMessage<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct SignatureSet<'a> {
|
||||
pub signature: &'a G2Point,
|
||||
signed_messages: Vec<SignedMessage<'a>>,
|
||||
|
Loading…
Reference in New Issue
Block a user