Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Oct 11, 2024
1 parent be73fe4 commit edae4a9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,9 @@ Check out [`src/net/ens.ts`](./src/net/ens.ts) for type-safe contract execution

#### RLP parsing

We implement RLP in just 100 lines of code, powered by [packed](https://github.com/paulmillr/micro-packed):
We implement RLP (Recursive Length Prefix) in 100 lines of code, using [packed](https://github.com/paulmillr/micro-packed).

For detailed examples, check out [rlp.test.js](https://github.com/paulmillr/micro-eth-signer/blob/main/test/rlp.test.js).

```ts
import { RLP } from 'micro-eth-signer/rlp';
Expand All @@ -352,10 +354,11 @@ RLP.decode(RLP.encode('dog'));

#### SSZ parsing

Simple serialize (SSZ) is the serialization method used on the Beacon Chain.
We support EIP-7495 stable containers.
We implement SSZ (simple serialize) in 1500 lines of code, using [packed](https://github.com/paulmillr/micro-packed).

[EIP-7495](https://eips.ethereum.org/EIPS/eip-7495) stable containers are supported.

The implementation is very small, around 1500 lines of code, and is powered by [packed](https://github.com/paulmillr/micro-packed):
For detailed examples, check out [ssz.test.js](https://github.com/paulmillr/micro-eth-signer/blob/main/test/ssz.test.js).

```ts
import * as ssz from 'micro-eth-signer/ssz';
Expand Down

0 comments on commit edae4a9

Please sign in to comment.