Skip to content

Commit

Permalink
FIP-0083: Clarify bigint CBOR encoding scheme (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg authored Feb 21, 2024
1 parent c9a7b12 commit 18e5ad8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FIPS/fip-0083.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ The event payload is defined as:
| Index Key + Value | “verifier” | <VERIFIER_ACTOR_ID> (int) |
| Index Key | “balance” | <VERIFIER_DATACAP_BALANCE> (bigint) |

_The "bigint" CBOR encoding format used for the "balance" field is the same as is used for encoding bigints on the Filecoin chain: a byte array representing a big-endian unsigned integer, compatible with the Golang `big.Int` byte representation, with a `0x00` (positive) or `0x01` (negative) prefix; with a zero-length array representing a value of `0`._

#### Datacap Allocated
This event is emitted when a verified client allocates datacap to a specific data piece and storage provider.

Expand Down

0 comments on commit 18e5ad8

Please sign in to comment.