multihash key gen func #36
No reviewers
Labels
No Label
backlog
beacon
bug
critical
documentation
duplicate
enhancement
epic
feature
good first issue
help wanted
in review
invalid
question
test
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/ipld-eth-beacon-indexer#36
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/ssz_multihash_func"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Using the
feature
branch prefix this time.Function for converting a SSZ SHA2-256 Merkle root into a blockstore-prefixed multihash key. Wasn't sure where you'd want to put it, so it's in a new
shared
pkg.The PR to canonize the byte prefix isn't merged yet so it is still subject to change.
So, when you insert into public.blocks for beacon block you will insert the MultihashKeyFromSSZRoot(beacon_block_root) as
key
and the SSZ encoded beacon block binary fordata
. Similarly, for beacon state you will insert the MultihashKeyFromSSZRoot(beacon_state_root) askey
and the SSZ encoded beacon state binary asdata
.As a sanity check you should first make sure you can reproduce the
beacon_block_root
andbeacon_state_root
from the binary you are inserting intodata
using the SSZ Merkleization function (if you haven't already).@i-norden - Thank you for putting this together. I will work on this branch and make some changes for integration.
Quick question though: