Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
merkle.hpp
Go to the documentation of this file.
1#pragma once
3
4namespace sysio { namespace chain {
5
8
9 bool is_canonical_left(const digest_type& val);
10 bool is_canonical_right(const digest_type& val);
11
12
13 inline auto make_canonical_pair(const digest_type& l, const digest_type& r) {
14 return make_pair(make_canonical_left(l), make_canonical_right(r));
15 };
16
21
22} }
const mie::Vuint & r
Definition bn.cpp:28
checksum_type digest_type
Definition types.hpp:237
digest_type make_canonical_right(const digest_type &val)
Definition merkle.cpp:20
digest_type make_canonical_left(const digest_type &val)
Definition merkle.cpp:14
bool is_canonical_right(const digest_type &val)
Definition merkle.cpp:30
digest_type merkle(vector< digest_type > ids)
Definition merkle.cpp:35
bool is_canonical_left(const digest_type &val)
Definition merkle.cpp:26
auto make_canonical_pair(const digest_type &l, const digest_type &r)
Definition merkle.hpp:13
int l