constants

package
v0.1.1-experimental.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BLSSignatureLength defines the byte length of a BLS12-381 Signature.
	// It is 96 bytes as defined in the Ethereum 2.0 Specification.
	BLSSignatureLength = 96

	// BLSPubkeyLength defines the byte length of a BLS12-381 public key.
	// As per the standard, it is set to 48 bytes.
	BLSPubkeyLength = 48

	// BLSSecretKeyLength defines the byte length of a BLS12-381 secret key.
	// It is defined to be 32 bytes in length.
	BLSSecretKeyLength = 32
)
View Source
const (
	// DomainTypeLength is the length of the domain type.
	DomainTypeLength = 4
	// DomainLength is the length of the domain.
	DomainLength = 32
)
View Source
const (
	// BlobCommitmentVersion is the version of the blob commitment.
	// It is the Version byte for the point evaluation precompile as
	// defined in EIP-4844.
	//
	// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4844.md
	BlobCommitmentVersion uint8 = 0x01

	// MaxBlobsPerBlock is the maximum number of blobs that can be included in a
	// block.
	MaxBlobsPerBlock uint = 6

	// MaxBlobCommitmentsPerBlock is the theoretical maximum number of blob
	// commitments that
	// can be included in a block.
	MaxBlobCommitmentsPerBlock = 16

	// LogMaxBlobCommitments is the Log_2 of MaxBlobCommitmentsPerBlock (16).
	LogMaxBlobCommitments uint64 = 4

	// MaxBlobDataSize is the maximum size of a blob data.
	MaxBlobDataSize uint64 = 131072
)
View Source
const (
	// Uint64Max represents the maximum value for a uint64.
	Uint64Max = uint64(18446744073709551615)
	// Uint64MaxSqrt represents the square root of the maximum value for a
	// uint64.
	Uint64MaxSqrt = uint64(4294967295)
)
View Source
const (
	// RootLength the length of a HashTreeRoot in bytes.
	RootLength = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL