cava icon indicating copy to clipboard operation
cava copied to clipboard

Expose SSZ#merkleHash to Allow Callers to Implement Signed Roots

Open schroedingerscode opened this issue 6 years ago • 0 comments

Signed Roots allow calculating the merkle hash of a subset of a SSZ container, specifically to allow signing of a container while excluding signature fields.

While this definition signed_root(container, "signature") = merkle_hash([hash_tree_root(sub_object_1), ..., hash_tree_root(sub_object_N)]) has been deprecated in further versions of the Eth2 SSZ spec, I see no harm in allowing public callers to use SSZ#merkleHash directly for compatibility.

schroedingerscode avatar Mar 22 '19 19:03 schroedingerscode