types

package
v0.0.0-...-dcc6d9e Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleSummary

type BundleSummary struct {
	MerkleRoot string `json:"merkle_root"`
}

type CelestiaValue

type CelestiaValue struct {
	SharesByNamespace []NamespacedShares `json:"sharesByNamespace"`
}

type FinalizedBundle

type FinalizedBundle struct {
	BundleSummary     string `json:"bundle_summary,omitempty"`
	CompressionId     string `json:"compression_id,omitempty"`
	DataHash          string `json:"data_hash,omitempty"`
	FromKey           string `json:"from_key,omitempty"`
	Id                string `json:"id,omitempty"`
	StorageId         string `json:"storage_id,omitempty"`
	StorageProviderId string `json:"storage_provider_id,omitempty"`
	ToKey             string `json:"to_key,omitempty"`
}

FinalizedBundle is the bundle that is stored on the KYVE chain. It includes the storage ID to retrieve the archived data and a summary. This summary includes the Merkle root the Trustless Client uses to validate that the data item was included in the bundle stored on-chain.

type MerkleNode

type MerkleNode struct {
	Hash string `json:"hash"`
	Left bool   `json:"left"`
}

type MerkleRootNotValidError

type MerkleRootNotValidError struct {
	Constructed string
	OnChain     string
}

func (MerkleRootNotValidError) Error

func (mrnv MerkleRootNotValidError) Error() string

type NamespacedShares

type NamespacedShares struct {
	Data        json.RawMessage `json:"data"`
	NamespaceId string          `json:"namespace_id"`
}

type Pagination

type Pagination struct {
	NextKey []byte `json:"next_key"`
}

type TrustlessDataItem

type TrustlessDataItem struct {
	ChainId  string          `json:"chainId"`
	BundleId int64           `json:"bundleId"`
	PoolId   int64           `json:"poolId"`
	Proof    []MerkleNode    `json:"proof"`
	Value    json.RawMessage `json:"value"`
}

TrustlessDataItem is the response type of the Trustless API.

Jump to

Keyboard shortcuts

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