Skip to content

Commit

Permalink
fix: corrected types of OutputValidityProof
Browse files Browse the repository at this point in the history
  • Loading branch information
riseandshaheen committed Sep 11, 2024
1 parent 6549caa commit dff60ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ Data used to prove the validity of an output (notices and vouchers)

```solidity
struct OutputValidityProof {
uint256 inputIndexWithinEpoch;
uint256 outputIndexWithinInput;
uint64 inputIndexWithinEpoch;
uint64 outputIndexWithinInput;
bytes32 outputHashesRootHash;
bytes32 vouchersEpochRootHash;
bytes32 noticesEpochRootHash;
Expand All @@ -249,8 +249,8 @@ struct OutputValidityProof {

| Name | Type | Description |
| -------------------------------- | --------- | ----------------------------------------------------------------- |
| inputIndexWithinEpoch | uint256 | Which input, inside the epoch, the output belongs to |
| outputIndexWithinInput | uint256 | Index of output emitted by the input |
| inputIndexWithinEpoch | uint64 | Which input, inside the epoch, the output belongs to |
| outputIndexWithinInput | uint64 | Index of output emitted by the input |
| outputHashesRootHash | bytes32 | Merkle root of hashes of outputs emitted by the input |
| vouchersEpochRootHash | bytes32 | Merkle root of all epoch's voucher metadata hashes |
| noticesEpochRootHash | bytes32 | Merkle root of all epoch's notice metadata hashes |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ Data used to prove the validity of an output (notices and vouchers)

```solidity
struct OutputValidityProof {
uint256 inputIndexWithinEpoch;
uint256 outputIndexWithinInput;
uint64 inputIndexWithinEpoch;
uint64 outputIndexWithinInput;
bytes32 outputHashesRootHash;
bytes32 vouchersEpochRootHash;
bytes32 noticesEpochRootHash;
Expand All @@ -241,8 +241,8 @@ struct OutputValidityProof {

| Name | Type | Description |
| -------------------------------- | --------- | ----------------------------------------------------------------- |
| inputIndexWithinEpoch | uint256 | Which input, inside the epoch, the output belongs to |
| outputIndexWithinInput | uint256 | Index of output emitted by the input |
| inputIndexWithinEpoch | uint64 | Which input, inside the epoch, the output belongs to |
| outputIndexWithinInput | uint64 | Index of output emitted by the input |
| outputHashesRootHash | bytes32 | Merkle root of hashes of outputs emitted by the input |
| vouchersEpochRootHash | bytes32 | Merkle root of all epoch's voucher metadata hashes |
| noticesEpochRootHash | bytes32 | Merkle root of all epoch's notice metadata hashes |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ Data used to prove the validity of an output (notices and vouchers)

```solidity
struct OutputValidityProof {
uint256 inputIndexWithinEpoch;
uint256 outputIndexWithinInput;
uint64 inputIndexWithinEpoch;
uint64 outputIndexWithinInput;
bytes32 outputHashesRootHash;
bytes32 vouchersEpochRootHash;
bytes32 noticesEpochRootHash;
Expand All @@ -241,8 +241,8 @@ struct OutputValidityProof {

| Name | Type | Description |
| -------------------------------- | --------- | ----------------------------------------------------------------- |
| inputIndexWithinEpoch | uint256 | Which input, inside the epoch, the output belongs to |
| outputIndexWithinInput | uint256 | Index of output emitted by the input |
| inputIndexWithinEpoch | uint64 | Which input, inside the epoch, the output belongs to |
| outputIndexWithinInput | uint64 | Index of output emitted by the input |
| outputHashesRootHash | bytes32 | Merkle root of hashes of outputs emitted by the input |
| vouchersEpochRootHash | bytes32 | Merkle root of all epoch's voucher metadata hashes |
| noticesEpochRootHash | bytes32 | Merkle root of all epoch's notice metadata hashes |
Expand Down

0 comments on commit dff60ea

Please sign in to comment.