Documentation ¶
Index ¶
Constants ¶
View Source
const ( BlobCommitmentVersionKZG uint8 = 0x01 FieldElementsPerBlob int = 4096 )
View Source
const ( BlobTxType = 5 PrecompileInputLength = 192 BlobVersionedHashesOffset = 258 // position of blob_versioned_hashes offset in a serialized blob tx, see TxPeekBlobVersionedHashes )
Variables ¶
This section is empty.
Functions ¶
func CrpytoCtx ¶
CryptoCtx returns a context object stores all of the necessary configurations to allow one to create and verify blob proofs. This function is expensive to run if the crypto context isn't initialized, so it is recommended to pre-initialize by calling InitializeCryptoCtx
func InitializeCrypytoCtx ¶
func InitializeCrypytoCtx()
InitializeCrypytoCtx initializes the global context object returned via CryptoCtx
func PointEvaluationPrecompile ¶
PointEvaluationPrecompile implements point_evaluation_precompile from EIP-4844
Types ¶
type BlobsSidecar ¶
type VersionedHash ¶
type VersionedHash [32]byte
func KZGToVersionedHash ¶
func KZGToVersionedHash(kzg gokzg4844.KZGCommitment) VersionedHash
KZGToVersionedHash implements kzg_to_versioned_hash from EIP-4844
Click to show internal directories.
Click to hide internal directories.