define hash160 reset method

This commit is contained in:
John Jones 2020-04-15 09:20:39 -05:00
parent 9505342dbf
commit 5070d8d2fc

View file

@ -84,6 +84,11 @@ hash160 hash160::encoder::result() {
return h;
}
void hash160::encoder::reset()
{
SHA256_Init(&sha_ctx);
}
hash160 operator << ( const hash160& h1, uint32_t i ) {
hash160 result;
fc::detail::shift_l( h1.data(), result.data(), result.data_size(), i );