-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
5,173 additions
and
3,370 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...ges/website/pages/docs/reference/contract-documentation/4844/IBlobHashReader.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: IBlobHashReader | ||
--- | ||
|
||
## IBlobHashReader | ||
|
||
_Labeled in AddressResolver as "blob_hash_reader" | ||
This interface and its corresponding implementation may deprecate once | ||
solidity supports the new BLOBHASH opcode natively._ | ||
|
||
### getFirstBlobHash | ||
|
||
```solidity | ||
function getFirstBlobHash() external view returns (bytes32) | ||
``` | ||
|
||
Returns the versioned hash for the first blob in this | ||
transaction. If there is no blob found, 0x0 is returned. |
62 changes: 62 additions & 0 deletions
62
packages/website/pages/docs/reference/contract-documentation/4844/Lib4844.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
title: Lib4844 | ||
--- | ||
|
||
## Lib4844 | ||
|
||
A library for handling EIP-4844 blobs | ||
`solc contracts/libs/Lib4844.sol --ir > contracts/libs/Lib4844.yul` | ||
|
||
### POINT_EVALUATION_PRECOMPILE_ADDRESS | ||
|
||
```solidity | ||
address POINT_EVALUATION_PRECOMPILE_ADDRESS | ||
``` | ||
|
||
### FIELD_ELEMENTS_PERBLOB | ||
|
||
```solidity | ||
uint32 FIELD_ELEMENTS_PERBLOB | ||
``` | ||
|
||
### BLS_MODULUS | ||
|
||
```solidity | ||
uint256 BLS_MODULUS | ||
``` | ||
|
||
### EVAL_FAILED | ||
|
||
```solidity | ||
error EVAL_FAILED() | ||
``` | ||
|
||
### POINT_X_TOO_LARGE | ||
|
||
```solidity | ||
error POINT_X_TOO_LARGE() | ||
``` | ||
|
||
### POINT_Y_TOO_LARGE | ||
|
||
```solidity | ||
error POINT_Y_TOO_LARGE() | ||
``` | ||
|
||
### evaluatePoint | ||
|
||
```solidity | ||
function evaluatePoint(bytes32 blobHash, uint256 x, uint256 y, bytes1[48] commitment, bytes1[48] pointProof) internal view | ||
``` | ||
|
||
Evaluates the 4844 point using the precompile. | ||
|
||
#### Parameters | ||
|
||
| Name | Type | Description | | ||
| ---------- | ---------- | -------------------- | | ||
| blobHash | bytes32 | The versioned hash | | ||
| x | uint256 | The evaluation point | | ||
| y | uint256 | The expected output | | ||
| commitment | bytes1[48] | The input kzg point | | ||
| pointProof | bytes1[48] | The quotient kzg | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.