Skip to content
This repository has been archived by the owner on Apr 23, 2019. It is now read-only.

Expose SSZ#merkleHash to Allow Callers to Implement Signed Roots #197

Open
schroedingerscode opened this issue Mar 22, 2019 · 0 comments
Open

Comments

@schroedingerscode
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant