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_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(
|
||||||
|
@ -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>>,
|
||||||
|
Loading…
Reference in New Issue
Block a user