Merge branch 'master' into fo-6418-dont-export-bigint

This commit is contained in:
Fredrik Harrysson
2017-09-05 10:48:54 +02:00
committed by GitHub
45 changed files with 1615 additions and 281 deletions

View File

@@ -261,8 +261,13 @@ impl Header {
s.out()
}
/// Get the KECCAK (Keccak) of this header, optionally `with_seal`.
/// Get the SHA3 (Keccak) of this header, optionally `with_seal`.
pub fn rlp_keccak(&self, with_seal: Seal) -> H256 { keccak(self.rlp(with_seal)) }
/// Encode the header, getting a type-safe wrapper around the RLP.
pub fn encoded(&self) -> ::encoded::Header {
::encoded::Header::new(self.rlp(Seal::With))
}
}
impl Decodable for Header {