Add temporary (incomplete) aggsig serialization
It just sets them to 64 zeros. This needs to be fixed.
This commit is contained in:
parent
4d9b53478f
commit
3dea40abe0
@ -19,7 +19,8 @@ impl Encodable for AttestationRecord {
|
|||||||
s.append_vec(&self.oblique_parent_hashes);
|
s.append_vec(&self.oblique_parent_hashes);
|
||||||
s.append(&self.shard_block_hash);
|
s.append(&self.shard_block_hash);
|
||||||
s.append_vec(&self.attester_bitfield.to_be_vec());
|
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])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,6 +54,8 @@ impl Encodable for Block {
|
|||||||
s.append(&self.pow_chain_ref);
|
s.append(&self.pow_chain_ref);
|
||||||
s.append(&self.active_state_root);
|
s.append(&self.active_state_root);
|
||||||
s.append(&self.crystallized_state_root);
|
s.append(&self.crystallized_state_root);
|
||||||
|
// TODO: encode the aggregate sig correctly
|
||||||
|
s.append_vec(&vec![0_u8; 64])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user