Skip to content

Commit

Permalink
README: add big.Int methods to the matrix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Jul 23, 2024
1 parent adeb27c commit a490909
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ The table below is a summary of the methods available for `SizeSSZ` and `DefineS
| `[N]uint64` | `N * 8 bytes` | [`DefineArrayOfUint64s`](https://pkg.go.dev/github.com/karalabe/ssz#DefineArrayOfUint64s) | [`EncodeArrayOfUint64s`](https://pkg.go.dev/github.com/karalabe/ssz#EncodeArrayOfUint64s) | [`DecodeArrayOfUint64s`](https://pkg.go.dev/github.com/karalabe/ssz#DecodeArrayOfUint64s) | [`HashArrayOfUint64s`](https://pkg.go.dev/github.com/karalabe/ssz#HashArrayOfUint64s) |
| `[]uint64` | [`SizeSliceOfUint64s`](https://pkg.go.dev/github.com/karalabe/ssz#SizeSliceOfUint64s) | [`DefineSliceOfUint64sOffset`](https://pkg.go.dev/github.com/karalabe/ssz#DefineSliceOfUint64sOffset) [`DefineSliceOfUint64sContent`](https://pkg.go.dev/github.com/karalabe/ssz#DefineSliceOfUint64sContent) | [`EncodeSliceOfUint64sOffset`](https://pkg.go.dev/github.com/karalabe/ssz#EncodeSliceOfUint64sOffset) [`EncodeSliceOfUint64sContent`](https://pkg.go.dev/github.com/karalabe/ssz#EncodeSliceOfUint64sContent) | [`DecodeSliceOfUint64sOffset`](https://pkg.go.dev/github.com/karalabe/ssz#DecodeSliceOfUint64sOffset) [`DecodeSliceOfUint64sContent`](https://pkg.go.dev/github.com/karalabe/ssz#DecodeSliceOfUint64sContent) | [`HashSliceOfUint64s`](https://pkg.go.dev/github.com/karalabe/ssz#HashSliceOfUint64s) |
| `*uint256.Int`¹ | `32 bytes` | [`DefineUint256`](https://pkg.go.dev/github.com/karalabe/ssz#DefineUint256) | [`EncodeUint256`](https://pkg.go.dev/github.com/karalabe/ssz#EncodeUint256) | [`DecodeUint256`](https://pkg.go.dev/github.com/karalabe/ssz#DecodeUint256) | [`HashUint256`](https://pkg.go.dev/github.com/karalabe/ssz#HashUint256) |
| `*big.Int` as `uint256` | `32 bytes` | [`DefineUint256BigInt`](https://pkg.go.dev/github.com/karalabe/ssz#DefineUint256BigInt) | [`EncodeUint256BigInt`](https://pkg.go.dev/github.com/karalabe/ssz#EncodeUint256BigInt) | [`DecodeUint256BigInt`](https://pkg.go.dev/github.com/karalabe/ssz#DecodeUint256BigInt) | [`HashUint256BigInt`](https://pkg.go.dev/github.com/karalabe/ssz#HashUint256BigInt) |
| `[N]byte` | `N bytes` | [`DefineStaticBytes`](https://pkg.go.dev/github.com/karalabe/ssz#DefineStaticBytes) | [`EncodeStaticBytes`](https://pkg.go.dev/github.com/karalabe/ssz#EncodeStaticBytes) | [`DecodeStaticBytes`](https://pkg.go.dev/github.com/karalabe/ssz#DecodeStaticBytes) | [`HashStaticBytes`](https://pkg.go.dev/github.com/karalabe/ssz#HashStaticBytes) |
| `[N]byte` in `[]byte` | `N bytes` | [`DefineCheckedStaticBytes`](https://pkg.go.dev/github.com/karalabe/ssz#DefineCheckedStaticBytes) | [`EncodeCheckedStaticBytes`](https://pkg.go.dev/github.com/karalabe/ssz#EncodeCheckedStaticBytes) | [`DecodeCheckedStaticBytes`](https://pkg.go.dev/github.com/karalabe/ssz#DecodeCheckedStaticBytes) | [`HashCheckedStaticBytes`](https://pkg.go.dev/github.com/karalabe/ssz#HashCheckedStaticBytes) |
| `[]byte` | [`SizeDynamicBytes`](https://pkg.go.dev/github.com/karalabe/ssz#SizeDynamicBytes) | [`DefineDynamicBytesOffset`](https://pkg.go.dev/github.com/karalabe/ssz#DefineDynamicBytesOffset) [`DefineDynamicBytesContent`](https://pkg.go.dev/github.com/karalabe/ssz#DefineDynamicBytesContent) | [`EncodeDynamicBytesOffset`](https://pkg.go.dev/github.com/karalabe/ssz#EncodeDynamicBytesOffset) [`EncodeDynamicBytesContent`](https://pkg.go.dev/github.com/karalabe/ssz#EncodeDynamicBytesContent) | [`DecodeDynamicBytesOffset`](https://pkg.go.dev/github.com/karalabe/ssz#DecodeDynamicBytesOffset) [`DecodeDynamicBytesContent`](https://pkg.go.dev/github.com/karalabe/ssz#DecodeDynamicBytesContent) | [`HashDynamicBytes`](https://pkg.go.dev/github.com/karalabe/ssz#HashDynamicBytes) |
Expand Down

0 comments on commit a490909

Please sign in to comment.