Encode bitfield as list not vector

This commit is contained in:
Paul Hauner
2019-04-17 11:57:57 +10:00
parent ea8d5a3db9
commit 10a5d2657c
8 changed files with 37 additions and 15 deletions

View File

@@ -4,7 +4,7 @@ use serde::de::{Deserialize, Deserializer};
use serde::ser::{Serialize, Serializer};
use serde_hex::HexVisitor;
use ssz::{ssz_encode, Decodable, DecodeError, Encodable, SszStream};
use tree_hash::impl_tree_hash_for_ssz_bytes;
use tree_hash::tree_hash_ssz_encoding_as_vector;
/// A single BLS signature.
///
@@ -74,7 +74,7 @@ impl Decodable for FakeSignature {
}
}
impl_tree_hash_for_ssz_bytes!(FakeSignature);
tree_hash_ssz_encoding_as_vector!(FakeSignature);
impl Serialize for FakeSignature {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>