tagion.script.common

Common tagion records

Members

Aliases

GenericEpoch
alias GenericEpoch = SumType!(GenesisEpoch, Epoch)

A genesis epoch or a standard epoch

Functions

lockedArchiveIndices
DARTIndex[] lockedArchiveIndices(Range epochs, SecureNet net)

Create the DARTindices for the LockedArchives from a range of epochs

sign
Signature[] sign(const(SecureNet[]) nets, const(Contract) contract)

Create a signature for each input in a contract

sign
const(SignedContract) sign(const(SecureNet[]) nets, DARTIndex[] inputs, const(Document[]) reads, const(Document) script)
const(SignedContract) sign(const(SecureNet[]) nets, const(Document[]) inputs, const(Document[]) reads, const(Document) script)

Create a SignedContract from a list of inputs, reads and a smartcontract

verify
bool verify(const(SecureNet) net, const(SignedContract*) signed_contract, const(Pubkey[]) owners)

Verify a SignedContract from a list public keys

verify
bool verify(const(SecureNet) net, const(SignedContract*) signed_contract, const(Document[]) inputs)

Verify a SignedContract from the inputs read from the inputs read from the DART

Structs

Active
struct Active

The currently active nodes This record is updated each time a node state changes

ConsensusVoting
struct ConsensusVoting

Gossiped through the graph for votes on the bullseye of next epochs

Contract
struct Contract

Tagion contract inputs will be consumed in the execution Reads are extract optional data for the smart contract

Epoch
struct Epoch

Epoch

GenesisEpoch
struct GenesisEpoch

The very first epoch

LockedArchives
struct LockedArchives

Output which did not reach consensus at this epoch

LockedArchives
struct LockedArchives
PayScript
struct PayScript

Tagion PayScript builtin transfer script, Included in a contract to eventually be outputs in the DART The sum of the value of the outputs should be less than the sum of inputs + fees

SignedContract
struct SignedContract

Tagion SignedContract Includes the contract to be executed and the signatures of all inputs sorted by the dartIndex of the inputs

TagionBill
struct TagionBill

Tagion bill

TagionGlobals
struct TagionGlobals

Global tagion statistics

TagionHead
struct TagionHead

Name record to get the current epoch The record is updated on each epoch