Registry / serialization / prysmaticlabs-go-ssz

prysmaticlabs-go-ssz

JSON →
library0.0.0-20210121151755-f6208871c388gogounverified

Package ssz implements the Simple Serialize algorithm for Ethereum 2.0.

go get github.com/prysmaticlabs/go-ssz
INSTALL
IMPORT
SIG · PRYSMATICLABS-GO-S
P
prysmaticlabs-go-ssz
serializationgov0.0.0-20210121151755-f6208871c388
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ssz
✓ github.com/prysmaticlabs/go-ssz

Compute the hash tree root of a struct.

package main import ( "fmt" "github.com/prysmaticlabs/go-ssz" ) func main() { type Example struct { Field uint64 } val := Example{Field: 42} hash, _ := ssz.HashTreeRoot(val) fmt.Printf("%x\n", hash) }
Debug
Known issues
gotchaThis package is experimental and may not be fully compatible with the latest Ethereum spec.
fix
Check for updates or use the official Ethereum SSZ library.
affects: *
Upgrade
Version history
0.0.0-20210121151755-f6208871c388latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Amazon
1
Resources
prysmaticlabs-go-ssz — go get prysmaticlabs-go-ssz · libregistry