Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chain/txvm
/ types & classes
Types & classes
110 in github.com/chain/txvm
⨍
Functions
1,025
◇
Types & classes
110
↓ 562 callers
TypeAlias
Int
Int is a stack item containing a 64-bit signed integer.
protocol/txvm/item.go:29
↓ 441 callers
TypeAlias
Bytes
Bytes is a stack item containing a sequence of bytes.
protocol/txvm/item.go:32
↓ 12 callers
TypeAlias
PublicKey
PublicKey is the type of Ed25519 public keys.
crypto/ed25519/ed25519.go:38
↓ 3 callers
TypeAlias
PrivateKey
PrivateKey is the type of Ed25519 private keys. It implements crypto.Signer.
crypto/ed25519/ed25519.go:41
↓ 3 callers
TypeAlias
vmError
protocol/txvm/error.go:9
↓ 1 callers
TypeAlias
Map
Map is a byte slice that should parse as a string encoding a JSON object. This is checked in UnmarshalJSON.
encoding/json/json.go:31
↓ 1 callers
TypeAlias
Tuple
Tuple is a stack item containing a sequence of zero or more Data items.
protocol/txvm/item.go:35
↓ 1 callers
TypeAlias
notBoolValue
notBoolValue is like flag.boolValue but it inverts the value.
cmd/hex/flag.go:10
↓ 1 callers
TypeAlias
orderedEntries
orderedEntries satisfies sort.Interface
protocol/txbuilder/template.go:140
Struct
AuditHash
AuditHash stores the hash value and denotes which side of the concatenation operation it should be on. For example, if we have a hashed item A and an
protocol/merkle/merkle.go:22
Struct
Block
protocol/bc/block.go:21
Struct
BlockBuilder
protocol/builder.go:21
Struct
BlockHeader
BlockHeader is the header of a Block: everything except the block's transactions and predicate args.
protocol/bc/bc.pb.go:187
Struct
Builder
Builder helps programmatically build txvm programs.
protocol/txvm/txvmutil/builder.go:17
Struct
CachedGroupElement
crypto/ed25519/internal/edwards25519/edwards25519.go:647
Struct
Chain
Chain provides a complete, minimal blockchain database. It delegates the underlying storage to other objects, and uses validation logic from package v
protocol/protocol.go:113
Struct
CommitmentsTx
CommitmentsTx wraps a Tx with its nonce and witness commitments.
protocol/bc/tx.go:34
Struct
CompletedGroupElement
crypto/ed25519/internal/edwards25519/edwards25519.go:639
Struct
Contract
Contract contains the ID of an input or an output from the txvm log. The Type field tells which kind of contract it is (InputType or OutputType).
protocol/bc/tx.go:49
Interface
Data
Data is an interface for plain-old-data stack items.
protocol/txvm/item.go:22
Struct
DataItem
DataItem is a txvm plain-data item: bytes, int, or tuple.
protocol/bc/bc.pb.go:145
TypeAlias
DataType
please upgrade the proto package DataType is the type for a DataItem.
protocol/bc/bc.pb.go:36
Struct
Duration
Duration is a time.Duration with JSON unmarshaling that uses time.ParseDuration.
encoding/json/duration.go:13
Interface
Entry
Entry is the interface for txvm stack items that are not plain data.
protocol/txvm/entries.go:26
Struct
ExtendedGroupElement
crypto/ed25519/internal/edwards25519/edwards25519.go:635
TypeAlias
FieldElement
This code is a port of the public domain, “ref10” implementation of ed25519 from SUPERCOP. FieldElement represents an element of the field GF(2^255 -
crypto/ed25519/internal/edwards25519/edwards25519.go:15
Struct
File
A File is a log file with associated rotation files. The rotation files are named after the base file with a numeric suffix: base.1, base.2, and so on
log/rotation/file.go:21
Struct
Hash
Hash is a 32-byte hash.
protocol/bc/bc.pb.go:61
TypeAlias
HexBytes
HexBytes is a byte slice with hex encoding and decoding when marshaled and unmarshaled.
encoding/json/json.go:14
Struct
Input
Input is a parsed input-typed txvm log entry, plus information derived from stack introspection during execution.
protocol/bc/tx.go:78
Struct
Input
Input contains information needed to add an input to a transaction. It is added to a template with AddInput.
protocol/txbuilder/template.go:93
Struct
Input
Input contains information parsed from input records in a transaction log.
protocol/txbuilder/txresult/result.go:53
Struct
Issuance
Issuance is a parsed issuance-typed txvm log entry.
protocol/bc/tx.go:87
Struct
Issuance
Issuance contains information needed to add an issuance to a transaction. It is added to a template with AddIssuance.
protocol/txbuilder/template.go:70
Struct
Issuance
Issuance contains information parsed from issuance records in a transaction log.
protocol/txbuilder/txresult/result.go:63
Interface
Item
Item is an interface for all txvm stack items.
protocol/txvm/item.go:14
Struct
KeccakKats
structs used to marshal JSON test-cases.
crypto/sha3/sha3_test.go:67
Struct
MemStore
MemStore satisfies the Store interface.
protocol/prottest/memstore/memstore.go:17
Struct
Nonce
Nonce is a parsed nonce-typed txvm log entry.
protocol/bc/tx.go:60
FuncType
Option
Option is a configuration option for NewChain.
protocol/prottest/block.go:25
Struct
Option
Option is the type of a function that can be passed as an option to Validate.
protocol/txvm/option.go:13
Struct
Output
Output is a parsed output-typed txvm log entry, plus information derived from stack introspection during execution.
protocol/bc/tx.go:68
Struct
Output
Output contains information needed to add an output to a transaction. It is added to a template with AddOutput.
protocol/txbuilder/template.go:110
Struct
Output
Output contains information parsed from output records in a transaction log.
protocol/txbuilder/txresult/result.go:40
TypeAlias
Point
Point is a point on the ed25519 curve.
crypto/ed25519/ecmath/point.go:10
Struct
PreComputedGroupElement
crypto/ed25519/internal/edwards25519/edwards25519.go:643
Struct
Predicate
Predicate contains the quorum and pubkeys needed to authenticate a block.
protocol/bc/bc.pb.go:102
Struct
ProjectiveGroupElement
Group elements are members of the elliptic curve -x^2 + y^2 = 1 + d * x^2 * y^2 where d = -121665/121666. Several representations are used: Projectiv
crypto/ed25519/internal/edwards25519/edwards25519.go:631
Struct
RawBlock
RawBlock is a raw block.
protocol/bc/bc.pb.go:318
Struct
RawSnapshot
please upgrade the proto package Snapshot represents a snapshot of the blockchain, including the contracts tree and issuance memory.
protocol/state/rawsnapshot.pb.go:33
Struct
RawTx
RawTx is a raw transaction, before processing through txvm.
protocol/bc/bc.pb.go:285
Struct
Result
Result is a container for information that can be parsed from the transaction log of a completed txvm program. Extra log annotations produced by the t
protocol/txbuilder/txresult/result.go:17
Struct
Retirement
Retirement is a parsed retirement-typed txvm log entry.
protocol/bc/tx.go:98
Struct
Retirement
Retirement contains information needed to add a retirement to a transaction. It is added to a template with AddRetirement.
protocol/txbuilder/template.go:123
Struct
Retirement
Retirement contains information parsed from retirement records in a transaction log.
protocol/txbuilder/txresult/result.go:78
TypeAlias
Scalar
Scalar is a 256-bit little-endian scalar.
crypto/ed25519/ecmath/scalar.go:12
Interface
ShakeHash
ShakeHash defines the interface to hash functions that support arbitrary-length output.
crypto/sha3/shake.go:17
FuncType
SignFunc
SignFunc is the type of a callback that can generate a signature for a given message and a given keyID and derivation path. If the function does not r
protocol/txbuilder/template.go:298
Struct
Snapshot
Snapshot contains a blockchain's state. TODO: consider making type Snapshot truly immutable. We already handle it that way in many places (with expl
protocol/state/snapshot.go:23
Interface
Store
Store provides storage for blockchain data: blocks and state tree snapshots. Note, this is different from a state snapshot. A state snapshot provides
protocol/protocol.go:99
Struct
Template
Template contains the ingredients for a transaction: Issuances, Inputs, Outputs, and Retirements, plus transaction tags and min- and maxtimes. A Templ
protocol/txbuilder/template.go:43
Struct
Timerange
Timerange is a parsed timerange-typed txvm log entry.
protocol/bc/tx.go:55
Struct
Tree
Tree implements a patricia tree.
protocol/patricia/patricia.go:36
Struct
TupleBuilder
TupleBuilder wraps a Builder, exposing only pushdata operations.
protocol/txvm/txvmutil/builder.go:91
Interface
TupleHash
TupleHash defines the interface to hash functions that support tuple input.
crypto/sha3/tuple_hash.go:10
Interface
TupleHashXOF
TupleHashXOF defines the interface to hash functions that support tuple input with extensible output.
crypto/sha3/tuple_hash.go:23
Struct
Tx
Tx contains the input to an instance of the txvm virtual machine, plus parsed copies of its various side effects.
protocol/bc/tx.go:14
Struct
UnsignedBlock
UnsignedBlock describes a block with its transactions but no signatures (predicate args).
protocol/bc/block.go:16
Struct
VM
VM is a virtual machine for executing Chain Protocol transactions.
protocol/txvm/vm.go:18
Struct
Value
Value is a value triple (amount, assetID, and anchor) parsed from annotations in a transaction log. Objects below use *Value fields, with nil signifyi
protocol/txbuilder/txresult/result.go:32
TypeAlias
Value
encoding/json/value.go:5
FuncType
WalkFunc
WalkFunc is the type of the function called for each item visited by Walk. If an error is returned, processing stops.
protocol/patricia/patricia.go:42
Struct
Writer
Writer is in an implementation of the "sticky error writer" pattern as described in https://blog.golang.org/errors-are-values. A Writer makes one cal
errors/writer.go:20
TypeAlias
XPrv
XPrv is an extended private key from which child keys may be derived.
crypto/ed25519/chainkd/chainkd.go:16
TypeAlias
XPub
XPub is an extended public key from which child keys may be derived.
crypto/ed25519/chainkd/chainkd.go:20
Struct
assembler
protocol/txvm/asm/asm.go:100
Struct
auditHashT
protocol/merkle/merkle_test.go:8
Struct
config
protocol/prottest/block.go:61
Struct
contract
protocol/txvm/entries.go:89
Struct
decodeReader
cmd/hex/main.go:74
Struct
encodeReader
cmd/hex/main.go:36
Interface
entry
protocol/txbuilder/template.go:130
Struct
in
protocol/merkle/merkle_test.go:76
Struct
jump
protocol/txvm/asm/asm.go:17
TypeAlias
key
context key type
log/log.go:20
Struct
kmac
crypto/sha3/kmac.go:5
Struct
macro
protocol/txvm/asm/asm.go:23
Struct
materialization
protocol/txbuilder/template.go:404
Struct
node
node is a leaf or branch node in a tree
protocol/patricia/patricia.go:274
Struct
run
go:generate go run gen.go A "run" is a program and a position in it
protocol/txvm/vm.go:12
Struct
s
testutil/deepequal_test.go:6
Struct
scannedToken
protocol/txvm/asm/scanner_test.go:8
Struct
scanner
protocol/txvm/asm/scanner.go:11
Struct
splitLineReader
cmd/hex/main.go:49
Struct
splunk
log/splunk/splunk.go:26
TypeAlias
spongeDirection
spongeDirection indicates the direction bytes are flowing through the sponge.
crypto/sha3/sha3.go:8
TypeAlias
stack
protocol/txvm/stack.go:7
Struct
stackItem
protocol/txbuilder/template.go:367
Struct
state
crypto/sha3/sha3.go:23
Struct
stripSpaceReader
cmd/hex/main.go:104
next →
1–100 of 110, ranked by callers