package
0.0.0-20241229130019-0e8a94a2b98d
Repository: https://github.com/thrylos-labs/thrylos.git
Documentation: pkg.go.dev

# Functions

Gas calculation.
JSON conversion.
No description provided by the author
No description provided by the author
ConvertProtoUTXOToShared converts a Protobuf-generated UTXO to your shared UTXO type.
No description provided by the author
Transaction conversion utilities.
No description provided by the author
ConvertToNanoThrylos converts THRYLOS to nanoTHRYLOS.
ConvertToThrylos converts nanoTHRYLOS to THRYLOS.
No description provided by the author
No description provided by the author
NewBlockchain initializes and returns a new instance of a Blockchain.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewExponentialSmoothingModel creates a new prediction model.
NewGenesisBlock creates and returns the genesis block for the blockchain.
No description provided by the author
NewNode initializes a new Node with the given address, known peers, and shard information.
NewShard initializes a new Shard with a specified identifier and maximum node capacity.
No description provided by the author
No description provided by the author
NewTOBManager creates and initializes a new TOBManager.
No description provided by the author
No description provided by the author
No description provided by the author
SecureRandomInt generates a cryptographically secure random integer.
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

Alpha parameter for MCMC tip selection.
No description provided by the author
Base fee in microTHRYLOS (0.001 THRYLOS).
Number of subsequent references needed for confirmation.
Standard key size for Verkle trees.
Define LeafValueSize if it's standard for leaf values in Verkle trees.
No description provided by the author
Maximum gas fee in microTHRYLOS (0.01 THRYLOS).
Maximum number of previous transactions a new transaction can reference.
No description provided by the author
Minimum number of references required.
0.1% of total supply as minimum stake.
1 THRYLOS in nanoTHRYLOS.
Consider removing this duplicate constant.
No description provided by the author
No description provided by the author
Maximum size of the tip pool.
120 million tokens.

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
Blockchain represents the entire blockchain structure, encapsulating all blocks, stakeholders, and transactions within the network.
No description provided by the author
No description provided by the author
No description provided by the author
Add ConnectionStatus struct.
No description provided by the author
No description provided by the author
No description provided by the author
ExponentialSmoothingModel implements a simple prediction model.
Fork structure representing a fork in the blockchain.
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
NetworkMetrics represents the current state of the network.
Node defines a blockchain node with its properties and capabilities within the network.
No description provided by the author
No description provided by the author
No description provided by the author
Shard represents a subset of the blockchain network, designed to scale the network by dividing the transaction and block processing workload among multiple shards.
SignatureDebugger helps diagnose transaction signature issues.
No description provided by the author
NewTransaction creates a new transaction.
No description provided by the author
No description provided by the author
No description provided by the author
TOBManager manages the Temporal-Optimized Blockchain functionality.
No description provided by the author
No description provided by the author
No description provided by the author
Vote represents a vote cast by a validator for a specific block.
WebSocketConnection represents an active WebSocket connection.