package
0.0.0-20241219091517-8c29382418e7
Repository: https://github.com/kyvenetwork/trustless-api.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
DecodeProof decodes the proof of a data item from a byte array encodedProofString is the base64 string of the proof see EncodeProof for more information returns the proof as a struct.
No description provided by the author
EncodeProof encodes the proof of a data item into a byte array encoded in big endian Structure: - 1 bytes: version (uint8) - 2 bytes: poolId (uint16) - 8 bytes: bundleId (uint64) - chainId (string, null terminated) - dataItemKey (string, null terminated) - dataItemValueKey (string, null terminated) - Array of merkle nodes: - 1 byte: left (true/false) - 32 bytes: hash (sha256)
returns the proof as Base64.
No description provided by the author
GetFromUrl tries to fetch data from url with a custom User-Agent header.
GetFromUrlWithBackoff tries to fetch data from url with exponential backoff.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author