common

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidDomainType = fmt.Errorf("invalid domain type")
)

Functions

func EqualSlices

func EqualSlices[P comparable](s1, s2 []P) bool

func ParseBytesAmount

func ParseBytesAmount(s string) (uint64, error)

Types

type BlobHeader added in v1.1.1

type BlobHeader struct {
	Commitment       G1Point
	DataLength       uint32
	QuorumBlobParams []QuorumBlobParam
}

BlobHeader struct to represent BlobHeader in Solidity

type Certificate added in v1.1.1

type Certificate disperser.BlobInfo

func (*Certificate) BatchHeaderRoot added in v1.1.1

func (c *Certificate) BatchHeaderRoot() []byte

func (*Certificate) BlobIndex added in v1.1.1

func (c *Certificate) BlobIndex() uint32

func (*Certificate) Proof added in v1.1.1

func (*Certificate) ReadBlobHeader added in v1.1.1

func (c *Certificate) ReadBlobHeader() BlobHeader

type DomainType

type DomainType uint8

DomainType is an enumeration type for the different data domains for which a blob can exist between

const (
	BinaryDomain DomainType = iota
	PolyDomain
	UnknownDomain
)

func StrToDomainType

func StrToDomainType(s string) DomainType

func (DomainType) String added in v1.1.1

func (dt DomainType) String() string

type G1Point added in v1.1.1

type G1Point struct {
	X *big.Int
	Y *big.Int
}

G1Point struct to represent G1Point in Solidity

type QuorumBlobParam added in v1.1.1

type QuorumBlobParam struct {
	QuorumNumber                    uint8
	AdversaryThresholdPercentage    uint8
	ConfirmationThresholdPercentage uint8
	ChunkLength                     uint32
}

QuorumBlobParam struct to represent QuorumBlobParam in Solidity

type Stats added in v1.1.1

type Stats struct {
	Entries int
	Reads   int
}

Jump to

Keyboard shortcuts

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