You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,18 @@
1
1
# ssz-z
2
-
An implementation of Ethereum Consensus Spec SimpleSerialize https://github.com/ethereum/consensus-specs/tree/dev/ssz. This follows Typescript implementation of Lodestar team https://github.com/ChainSafe/ssz. Some features:
3
-
- support generic. If you have an application struct, just write a respective ssz struct and create a ssz type then you have an ssz implementation. More on that in the example below.
4
-
- designed to support batch hash through `merkleize` function
5
-
- support generic `HashFn` as a parameter when creating a new type
2
+
An implementation of the Simple Serialize (SSZ) specification written in the Zig programming language.
6
3
7
-
## Examples
4
+
## About
5
+
This library provides an implementation of the [Simple Serialize (SSZ)](https://github.com/ethereum/consensus-specs/tree/dev/ssz) specification, written in [Zig](https://ziglang.org/).
8
6
9
-
## Commands:
7
+
This follows Typescript implementation of Lodestar team https://github.com/ChainSafe/ssz
8
+
9
+
## Features
10
+
-**generic**: If you have an application struct, just write a respective ssz struct and create a ssz type then you have an ssz implementation. More on that in the example below.
11
+
-**batch hash** designed to support batch hash through `merkleize` function
12
+
-**HashFn by type** support generic `HashFn` as a parameter when creating a new type
13
+
14
+
## Installation
15
+
Clone the repository and build the project using Zig `git clone https://github.com/twoeths/ssz-z.git`
10
16
-`zig build test:unit` to run all unit tests
11
17
-`zig build test:int` to run all integration tests (tests across types)
12
18
-`zig test --dep util -Mroot=src/hash/merkleize.zig -Mutil=lib/hex.zig` run tests in merkleize.zig
0 commit comments