package
0.0.0-20250108091302-c49b056c38cc
Repository: https://github.com/gatechain/gatenode-openrpc.git
Documentation: pkg.go.dev

# Functions

BlobMinSquareSize returns the minimum square size that can contain shareCount number of shares.
No description provided by the author
GetData slices out data of the Share.
GetNamespace slices Namespace out of the Share.
MustDataHashFromString converts a hex string to a valid datahash.
NamespaceFromBytes converts bytes into Namespace and validates it.
NamespacePaddingShare returns a share that acts as padding.
NamespacePaddingShares returns n namespace padding shares.
NewBlobNamespaceV0 takes a variable size byte slice and creates a valid version 0 Blob Namespace.
Init() needs to be called right after this method.
No description provided by the author
No description provided by the author
NewReservedBytes returns a byte slice of length appconsts.CompactShareReservedBytes that contains the byteIndex of the first unit that starts in a compact share.
NewSHA256Hasher returns a new instance of a SHA-256 hasher.
No description provided by the author
No description provided by the author
No description provided by the author
ParseReservedBytes parses a byte slice of length appconsts.CompactShareReservedBytes into a byteIndex.
RoundDownPowerOfTwo returns the next power of two less than or equal to input.
RoundUpPowerOfTwo returns the next power of two greater than or equal to input.
No description provided by the author
SplitBlobs splits the provided blobs into shares.
SubTreeWidth determines the maximum number of leaves per subtree in the share commitment over a given blob.
No description provided by the author

# Constants

Size is a system-wide size of a share, including both data and namespace GetNamespace.

# Variables

DefaultRSMT2DCodec sets the default rsmt2d.Codec for shares.
Various reserved namespaces.
MaxSquareSize is currently the maximum size supported for unerasured data in rsmt2d.ExtendedDataSquare.
Various reserved namespaces.
Various reserved namespaces.
Various reserved namespaces.
Various reserved namespaces.
Various reserved namespaces.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
GetRangeResult wraps the return value of the GetRange endpoint because Json-RPC doesn't support more than two return values.
NamespacedRow represents all shares with proofs within a specific namespace of a single EDS row.
NMTProof is a proof of a namespace.ID in an NMT.
ShareProof is an NMT proof that a set of shares exist in a set of rows and a Merkle proof that those rows exist in a Merkle tree with a given data root.
SparseShareSplitter lazily splits blobs into shares that will eventually be included in a data square.

# Type aliases

DataHash is a representation of the Root hash.
InfoByte is a byte with the following structure: the first 7 bits are reserved for version information in big endian form (initially `0000000`).
Namespace represents namespace of a Share.
NamespacedShares represents all shares with proofs within a specific namespace of an EDS.
Root represents root commitment to multiple Shares.
Share contains the raw share data without the corresponding namespace.