Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chain/txvm
/ functions
Functions
1,025 in github.com/chain/txvm
⨍
Functions
1,025
◇
Types & classes
110
↓ 1 callers
Function
NewTemplate
(maxTime time.Time, tags []byte)
protocol/txbuilder/template.go:23
↓ 1 callers
Function
NewTupleHashXOF128
NewTupleHashXOF128 provides an arbitrary-length output.
crypto/sha3/tuple_hash.go:82
↓ 1 callers
Function
NewWriter
NewWriter returns a new Writer that writes to w until an error is returned.
errors/writer.go:7
↓ 1 callers
Function
NewXKeys
Utility functions NewXKeys produces a new keypair from a source of random bytes.
crypto/ed25519/chainkd/util.go:12
↓ 1 callers
Function
OnLog
OnLog can be passed as an option to Validate. It adds a callback to be invoked when data is added to the transaction log.
protocol/txvm/option.go:19
↓ 1 callers
Method
Program
Program returns the program bytecode of the VM's current contract.
protocol/txvm/introspection.go:38
↓ 1 callers
Function
Proof
Proof returns the proofs required to validate an item at index i, not including the original item i. This errors when the requested index is out of bo
protocol/merkle/merkle.go:29
↓ 1 callers
Method
Read
Read squeezes an arbitrary number of bytes from the sponge.
crypto/sha3/sha3.go:163
↓ 1 callers
Method
ReadFrom
ReadFrom satisfies the io.ReaderFrom interface.
protocol/bc/hash.go:117
↓ 1 callers
Method
RestrictMaxTime
RestrictMaxTime sets the template's max time to the given value if it's earlier than the maxtime already present.
protocol/txbuilder/template.go:157
↓ 1 callers
Method
RestrictMinTime
RestrictMinTime sets the template's min time to the given value if it's later than the mintime already present.
protocol/txbuilder/template.go:148
↓ 1 callers
Function
Resumer
Resumer can be passed as an option to Validate. It acts like StopAfterFinalize, but additionally writes a function to the given pointer that can be us
protocol/txvm/option.go:84
↓ 1 callers
Method
Rollback
()
protocol/txbuilder/template.go:187
↓ 1 callers
Method
ScMulAdd
ScMulAdd computes xa+yB, where B is the ed25519 base point, and places the result in z, returning that.
crypto/ed25519/ecmath/point.go:56
↓ 1 callers
Method
SetTransactionTags
SetTransactionTags sets the template's transaction-level tags to the given value.
protocol/txbuilder/template.go:183
↓ 1 callers
Function
ShakeSum256
ShakeSum256 writes an arbitrary-length digest of data into hash.
crypto/sha3/shake.go:56
↓ 1 callers
Method
Sign
Sign signs the given message with priv. Ed25519 performs two passes over messages to be signed and therefore cannot handle pre-hashed messages. Thus o
crypto/ed25519/ed25519.go:55
↓ 1 callers
Function
Snapshot
Snapshot adds to b the snapshot of a pay-to-multisig-program contract as it appears in the UTXO set.
protocol/txbuilder/standard/input.go:56
↓ 1 callers
Method
Sub
Sub subtracts y from x, storing the result in z and returning that. Any or all of x, y, and z may be the same pointers.
crypto/ed25519/ecmath/point.go:30
↓ 1 callers
Method
ToProjective
(r *ProjectiveGroupElement)
crypto/ed25519/internal/edwards25519/edwards25519.go:701
↓ 1 callers
Method
UnmarshalJSON
UnmarshalJSON satisfies the json.Unmarshaler interface. If b is a JSON-encoded null, it copies the zero-value into h. Othwerwise, it decodes hex data
protocol/bc/hash.go:71
↓ 1 callers
Method
UnmarshalText
UnmarshalText fulfills the encoding.TextUnmarshaler interface.
protocol/bc/block.go:98
↓ 1 callers
Function
ValueType
(data []byte)
encoding/json/value.go:18
↓ 1 callers
Method
Write
Write absorbs more data into the hash's state. It produces an error if more data is written to the ShakeHash after writing
crypto/sha3/sha3.go:128
↓ 1 callers
Method
WriteTo
WriteTo satisfies the io.WriterTo interface.
protocol/bc/hash.go:111
↓ 1 callers
Function
addFinalizeMeta
(res *Result, tx *bc.Tx, logPos int)
protocol/txbuilder/txresult/result.go:318
↓ 1 callers
Function
addInputMeta
(input *Input, txIn bc.Input, tx *bc.Tx, logPos int)
protocol/txbuilder/txresult/result.go:207
↓ 1 callers
Function
addIssueMeta
(issuance *Issuance, txIss bc.Issuance, tx *bc.Tx, logPos int)
protocol/txbuilder/txresult/result.go:253
↓ 1 callers
Function
addOutputMeta
(out *Output, txOut bc.Output, tx *bc.Tx, logPos int)
protocol/txbuilder/txresult/result.go:151
↓ 1 callers
Function
addRetireMeta
(retirement *Retirement, tx *bc.Tx, logPos int)
protocol/txbuilder/txresult/result.go:304
↓ 1 callers
Function
assemble
()
cmd/asm/asm.go:22
↓ 1 callers
Method
assembleItems
()
protocol/txvm/asm/asm.go:129
↓ 1 callers
Method
assembleValue
()
protocol/txvm/asm/asm.go:165
↓ 1 callers
Function
bitAt
(b, bit byte)
protocol/patricia/patricia.go:259
↓ 1 callers
Function
bury
(b *txvmutil.Builder, stack []stackItem, n int)
protocol/txbuilder/template.go:675
↓ 1 callers
Method
bury
(n int64)
protocol/txvm/stack.go:66
↓ 1 callers
Function
caller
caller returns a string containing filename and line number of the nearest function invocation on the calling goroutine's stack, after skipping functi
log/stack.go:50
↓ 1 callers
Function
callerName
(skip int)
log/stack.go:38
↓ 1 callers
Function
checkEd25519
(msg, pubkey, sig Bytes)
protocol/txvm/crypto.go:72
↓ 1 callers
Method
checkTransactionTime
checkTransactionTime ensures that a transaction is fit to be included in a block generated at blockTimeMS.
protocol/builder.go:156
↓ 1 callers
Function
commonPrefix
(a, b []byte)
protocol/patricia/patricia.go:214
↓ 1 callers
Function
compareLogs
a is the log returned by the test, b is the expected log
protocol/txvm/complex_ops_test.go:1089
↓ 1 callers
Method
createContract
(prog []byte)
protocol/txvm/entries.go:153
↓ 1 callers
Function
deepValueEqual
(x, y reflect.Value, visited map[visit]bool)
testutil/deepequal.go:25
↓ 1 callers
Function
disassemble
()
cmd/asm/asm.go:34
↓ 1 callers
Method
encodeOutputLength
()
crypto/sha3/kmac.go:86
↓ 1 callers
Method
encodeOutputLength
()
crypto/sha3/tuple_hash.go:160
↓ 1 callers
Function
equal
equal returns 1 if b == c and 0 otherwise, assuming that b and c are non-negative.
crypto/ed25519/internal/edwards25519/edwards25519.go:931
↓ 1 callers
Function
fePow22523
(out, z *FieldElement)
crypto/ed25519/internal/edwards25519/edwards25519.go:561
↓ 1 callers
Function
flagNotBoolVar
(p *bool, name string, value bool, usage string)
cmd/hex/flag.go:12
↓ 1 callers
Function
geMixedSub
(r *CompletedGroupElement, p *ExtendedGroupElement, q *PreComputedGroupElement)
crypto/ed25519/internal/edwards25519/edwards25519.go:829
↓ 1 callers
Function
geSub
(r *CompletedGroupElement, p *ExtendedGroupElement, q *CachedGroupElement)
crypto/ed25519/internal/edwards25519/edwards25519.go:798
↓ 1 callers
Function
generate
(tb testing.TB, prev *bc.UnsignedBlock)
protocol/validation/validation_test.go:305
↓ 1 callers
Function
getOps
()
protocol/txvm/gen.go:38
↓ 1 callers
Function
getOps
()
protocol/txvm/op/gen.go:40
↓ 1 callers
Function
getStack
getStack is an allocating wrapper around runtime.Callers.
errors/stack.go:16
↓ 1 callers
Function
hashKeySalt
(out []byte, version byte, key, salt []byte)
crypto/ed25519/chainkd/chainkd.go:216
↓ 1 callers
Function
idTime
(b []byte)
protocol/state/snapshot.go:215
↓ 1 callers
Function
insert
(n *node, key []byte, hash *[32]byte)
protocol/patricia/patricia.go:118
↓ 1 callers
Method
inspect
()
protocol/txvm/entries.go:99
↓ 1 callers
Method
isDroppable
()
protocol/txvm/item.go:18
↓ 1 callers
Method
isPortable
()
protocol/txvm/item.go:17
↓ 1 callers
Function
isSpace
taken from std encoding/json
encoding/json/value.go:46
↓ 1 callers
Function
isSpace
(b byte)
cmd/hex/main.go:120
↓ 1 callers
Function
keyHash
duplicated from core/key/store.go.
protocol/txbuilder/txresult/txresult_test.go:17
↓ 1 callers
Method
logFinalize
(anchor []byte)
protocol/txvm/log.go:51
↓ 1 callers
Method
logInput
(snapshotID []byte)
protocol/txvm/log.go:47
↓ 1 callers
Method
logIssuance
(amount int64, assetID, anchor []byte)
protocol/txvm/log.go:59
↓ 1 callers
Method
logNonce
(blockID []byte, exp int64)
protocol/txvm/log.go:35
↓ 1 callers
Method
logOutput
(snapshotID []byte)
protocol/txvm/log.go:43
↓ 1 callers
Method
logRetirement
(amount int64, assetID, anchor []byte)
protocol/txvm/log.go:55
↓ 1 callers
Function
markHelper
(name string)
log/stack.go:32
↓ 1 callers
Function
merge
merge modifies the stack by combining the top two values to create a single value with the sum of the two amounts. If the sum of the values overflows
protocol/txbuilder/template.go:706
↓ 1 callers
Function
must
(err error)
cmd/vmhash/vmhash.go:21
↓ 1 callers
Function
mustDecodeBlockHex
(h string)
protocol/bc/block_test.go:288
↓ 1 callers
Function
mustDecodeHashPtr
(h string)
protocol/bc/block_test.go:297
↓ 1 callers
Function
negative
negative returns 1 if b < 0 and 0 otherwise.
crypto/ed25519/internal/edwards25519/edwards25519.go:938
↓ 1 callers
Function
newInitialBlock
(tb testing.TB)
protocol/validation/validation_test.go:291
↓ 1 callers
Function
newNotBoolValue
(val bool, p *bool)
cmd/hex/flag.go:16
↓ 1 callers
Method
padAndPermute
pads appends the domain separation bits in dsbyte, applies the multi-bitrate 10..1 padding rule, and permutes the state.
crypto/sha3/sha3.go:101
↓ 1 callers
Function
payToTxid
payToTxid produces a program (suitable for use as the argument to MultisigProgram) that verifies the tx has a specific id.
protocol/txvm/txvmtest/txvmtest.go:254
↓ 1 callers
Method
peek
(n int64)
protocol/txvm/stack.go:21
↓ 1 callers
Method
peekNth
(n int64)
protocol/txvm/vm.go:259
↓ 1 callers
Method
popN
(n int64)
protocol/txvm/stack.go:41
↓ 1 callers
Function
pushdata
(data []byte)
protocol/txvm/asm/asm.go:471
↓ 1 callers
Method
queueSnapshot
(ctx context.Context, s *state.Snapshot)
protocol/block.go:124
↓ 1 callers
Function
resolve
(items []interface{})
protocol/txvm/asm/asm.go:244
↓ 1 callers
Method
roll
(n int64)
protocol/txvm/stack.go:55
↓ 1 callers
Method
runHook
(h func(*VM))
protocol/txvm/hook.go:11
↓ 1 callers
Method
scanComment
()
protocol/txvm/asm/scanner.go:126
↓ 1 callers
Method
scanEscape
scanEscape parses an escape sequence where rune is the accepted escaped quote. In case of a syntax error, it stops at the offending character (without
protocol/txvm/asm/scanner.go:158
↓ 1 callers
Method
scanHex
(offs int)
protocol/txvm/asm/scanner.go:175
↓ 1 callers
Method
scanLabel
()
protocol/txvm/asm/scanner.go:111
↓ 1 callers
Method
scanNumber
()
protocol/txvm/asm/scanner.go:88
↓ 1 callers
Method
scanString
(delim rune)
protocol/txvm/asm/scanner.go:134
↓ 1 callers
Function
sign
(t *testing.T, tpl *Template)
protocol/txbuilder/txbuilder_test.go:449
↓ 1 callers
Method
skipWhitespace
()
protocol/txvm/asm/scanner.go:120
↓ 1 callers
Method
snapshot
()
protocol/txvm/contract.go:22
↓ 1 callers
Method
step
()
protocol/txvm/vm.go:158
↓ 1 callers
Method
uninspect
(Tuple)
protocol/txvm/entries.go:28
← previous
next →
401–500 of 1,025, ranked by callers