From 3dea40abe080719065ab23a1613fba214985d83f Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 19 Sep 2018 16:14:31 +1000 Subject: [PATCH] Add temporary (incomplete) aggsig serialization It just sets them to 64 zeros. This needs to be fixed. --- lighthouse/state/attestation_record.rs | 3 ++- lighthouse/state/block/block.rs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lighthouse/state/attestation_record.rs b/lighthouse/state/attestation_record.rs index fc949b9e6..9fa8fc73a 100644 --- a/lighthouse/state/attestation_record.rs +++ b/lighthouse/state/attestation_record.rs @@ -19,7 +19,8 @@ impl Encodable for AttestationRecord { s.append_vec(&self.oblique_parent_hashes); s.append(&self.shard_block_hash); s.append_vec(&self.attester_bitfield.to_be_vec()); - // TODO: add aggregate signature + // TODO: encode the aggregate sig correctly + s.append_vec(&vec![0_u8; 64]) } } diff --git a/lighthouse/state/block/block.rs b/lighthouse/state/block/block.rs index d9c2c0579..bfc2e1b40 100644 --- a/lighthouse/state/block/block.rs +++ b/lighthouse/state/block/block.rs @@ -54,6 +54,8 @@ impl Encodable for Block { s.append(&self.pow_chain_ref); s.append(&self.active_state_root); s.append(&self.crystallized_state_root); + // TODO: encode the aggregate sig correctly + s.append_vec(&vec![0_u8; 64]) } }