package
0.28.0
Repository: https://github.com/ten-protocol/go-ten.git
Documentation: pkg.go.dev

# README

This package defines the interface between the node host and the node enclave. Any code required for communication between the host and the enclave (e.g. RPC, encoding/decoding, the enclave API) should be placed here.

# Packages

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
nolint.
No description provided by the author

# Functions

TODO - use exposed headers once #3987 is completed.
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
ExtractPotentialAddress - given a 32 byte hash , it checks whether it can be an address and extracts that.
No description provided by the author
ParseBlockAndReceipts - will create a container struct that has preprocessed the receipts and verified if they indeed match the receipt root hash in the block.
Generates a random string n characters long.
No description provided by the author
ShortAddress converts the address to a shorter uint64 for printing.
ShortHash converts the hash to a shorter uint64 for printing.
ShortNonce converts the nonce to a shorter uint64 for printing.
No description provided by the author
No description provided by the author
ValueInWei converts a quantity of tokens (e.g.

# Constants

the enclave has not received the network secret and cannot process L1 blocks.
No description provided by the author
HeightCommittedBlocks is the number of blocks deep a transaction must be to be considered safe from reorganisations.
No description provided by the author
No description provided by the author
No description provided by the author
CustomQuery methods.
No description provided by the author
the enclave is running, accepting L1 blocks.
No description provided by the author
the enclave is unavailable (no guarantee it will self-recover).
No description provided by the author
CustomQuery methods.
No description provided by the author

# Variables

No description provided by the author
These are the multipliers for ERC20 and native ETH value denominations Example: To get the wei value of an amount in whole tokens, use new(big.Int).Mul(value, big.NewInt(common.Token)).
These are the multipliers for ERC20 and native ETH value denominations Example: To get the wei value of an amount in whole tokens, use new(big.Int).Mul(value, big.NewInt(common.Token)).
These are the multipliers for ERC20 and native ETH value denominations Example: To get the wei value of an amount in whole tokens, use new(big.Int).Mul(value, big.NewInt(common.Token)).

# Structs

AttestationReport represents a signed attestation report from a TEE and some metadata about the source of it to verify it.
BatchHeader is a public / plaintext struct that holds common properties of batches.
No description provided by the author
No description provided by the author
BatchRequest is used when requesting a range of batches from a peer.
BlockAndReceipts - a structure that contains a fuller view of a block.
No description provided by the author
BlockSubmissionResponse is the response sent from the enclave back to the node after ingesting a block.
CalldataRollupHeader contains all information necessary to reconstruct the batches included in the rollup.
ChainFork - represents the result of walking the chain when processing a fork.
DebugLogVisibility are the payloads returned when using the DebugGetLogs endpoint they are intended for the contract developer to debug visibility issues.
No description provided by the author
ExtBatch is an encrypted form of batch used when passing the batch around outside of an enclave.
No description provided by the author
ExtRollup is an encrypted form of rollup used when passing the rollup around outside an enclave.
FilterCriteriaJSON is a structure that JSON-serialises to a format that can be successfully deserialised into a filters.FilterCriteria object (round-tripping a filters.FilterCriteria to JSON and back doesn't work, due to a custom serialiser implemented by filters.FilterCriteria).
No description provided by the author
No description provided by the author
LogSubscription is an authenticated subscription to logs.
No description provided by the author
ProducedSecretResponse contains the data to publish to L1 in response to a secret request discovered while processing an L1 block.
No description provided by the author
TODO (@will) remove when tenscan UI has been updated.
No description provided by the author
No description provided by the author
PublicRollupMetadata contains internal rollup data that can be requested from the enclave.
No description provided by the author
No description provided by the author
RollupHeader is a public / plaintext struct that holds common properties of rollups.
No description provided by the author
Status represents the enclave's current state - whether the enclave is healthy and ready to process requests, as well as its latest known heads for the L1 and L2 chains.
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

# Interfaces

Enclave represents the API of the service that runs inside the TEE.
EnclaveScan represents the methods that are used for data scanning in the enclave.
SystemError is the interface for the internal errors generated in the Enclave and consumed by the Host.

# Type aliases

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
EncodedL1Block the encoded version of an L1 block.
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
FilterCriteria represents a request to create a new filter.
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
NodeType represents the type of the node.
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