MCPcopy Create free account

hub / github.com/chain/txvm / functions

Functions1,025 in github.com/chain/txvm

↓ 1 callersFunctionNewTemplate
(maxTime time.Time, tags []byte)
protocol/txbuilder/template.go:23
↓ 1 callersFunctionNewTupleHashXOF128
NewTupleHashXOF128 provides an arbitrary-length output.
crypto/sha3/tuple_hash.go:82
↓ 1 callersFunctionNewWriter
NewWriter returns a new Writer that writes to w until an error is returned.
errors/writer.go:7
↓ 1 callersFunctionNewXKeys
Utility functions NewXKeys produces a new keypair from a source of random bytes.
crypto/ed25519/chainkd/util.go:12
↓ 1 callersFunctionOnLog
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 callersMethodProgram
Program returns the program bytecode of the VM's current contract.
protocol/txvm/introspection.go:38
↓ 1 callersFunctionProof
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 callersMethodRead
Read squeezes an arbitrary number of bytes from the sponge.
crypto/sha3/sha3.go:163
↓ 1 callersMethodReadFrom
ReadFrom satisfies the io.ReaderFrom interface.
protocol/bc/hash.go:117
↓ 1 callersMethodRestrictMaxTime
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 callersMethodRestrictMinTime
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 callersFunctionResumer
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 callersMethodRollback
()
protocol/txbuilder/template.go:187
↓ 1 callersMethodScMulAdd
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 callersMethodSetTransactionTags
SetTransactionTags sets the template's transaction-level tags to the given value.
protocol/txbuilder/template.go:183
↓ 1 callersFunctionShakeSum256
ShakeSum256 writes an arbitrary-length digest of data into hash.
crypto/sha3/shake.go:56
↓ 1 callersMethodSign
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 callersFunctionSnapshot
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 callersMethodSub
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 callersMethodToProjective
(r *ProjectiveGroupElement)
crypto/ed25519/internal/edwards25519/edwards25519.go:701
↓ 1 callersMethodUnmarshalJSON
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 callersMethodUnmarshalText
UnmarshalText fulfills the encoding.TextUnmarshaler interface.
protocol/bc/block.go:98
↓ 1 callersFunctionValueType
(data []byte)
encoding/json/value.go:18
↓ 1 callersMethodWrite
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 callersMethodWriteTo
WriteTo satisfies the io.WriterTo interface.
protocol/bc/hash.go:111
↓ 1 callersFunctionaddFinalizeMeta
(res *Result, tx *bc.Tx, logPos int)
protocol/txbuilder/txresult/result.go:318
↓ 1 callersFunctionaddInputMeta
(input *Input, txIn bc.Input, tx *bc.Tx, logPos int)
protocol/txbuilder/txresult/result.go:207
↓ 1 callersFunctionaddIssueMeta
(issuance *Issuance, txIss bc.Issuance, tx *bc.Tx, logPos int)
protocol/txbuilder/txresult/result.go:253
↓ 1 callersFunctionaddOutputMeta
(out *Output, txOut bc.Output, tx *bc.Tx, logPos int)
protocol/txbuilder/txresult/result.go:151
↓ 1 callersFunctionaddRetireMeta
(retirement *Retirement, tx *bc.Tx, logPos int)
protocol/txbuilder/txresult/result.go:304
↓ 1 callersFunctionassemble
()
cmd/asm/asm.go:22
↓ 1 callersMethodassembleItems
()
protocol/txvm/asm/asm.go:129
↓ 1 callersMethodassembleValue
()
protocol/txvm/asm/asm.go:165
↓ 1 callersFunctionbitAt
(b, bit byte)
protocol/patricia/patricia.go:259
↓ 1 callersFunctionbury
(b *txvmutil.Builder, stack []stackItem, n int)
protocol/txbuilder/template.go:675
↓ 1 callersMethodbury
(n int64)
protocol/txvm/stack.go:66
↓ 1 callersFunctioncaller
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 callersFunctioncallerName
(skip int)
log/stack.go:38
↓ 1 callersFunctioncheckEd25519
(msg, pubkey, sig Bytes)
protocol/txvm/crypto.go:72
↓ 1 callersMethodcheckTransactionTime
checkTransactionTime ensures that a transaction is fit to be included in a block generated at blockTimeMS.
protocol/builder.go:156
↓ 1 callersFunctioncommonPrefix
(a, b []byte)
protocol/patricia/patricia.go:214
↓ 1 callersFunctioncompareLogs
a is the log returned by the test, b is the expected log
protocol/txvm/complex_ops_test.go:1089
↓ 1 callersMethodcreateContract
(prog []byte)
protocol/txvm/entries.go:153
↓ 1 callersFunctiondeepValueEqual
(x, y reflect.Value, visited map[visit]bool)
testutil/deepequal.go:25
↓ 1 callersFunctiondisassemble
()
cmd/asm/asm.go:34
↓ 1 callersMethodencodeOutputLength
()
crypto/sha3/kmac.go:86
↓ 1 callersMethodencodeOutputLength
()
crypto/sha3/tuple_hash.go:160
↓ 1 callersFunctionequal
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 callersFunctionfePow22523
(out, z *FieldElement)
crypto/ed25519/internal/edwards25519/edwards25519.go:561
↓ 1 callersFunctionflagNotBoolVar
(p *bool, name string, value bool, usage string)
cmd/hex/flag.go:12
↓ 1 callersFunctiongeMixedSub
(r *CompletedGroupElement, p *ExtendedGroupElement, q *PreComputedGroupElement)
crypto/ed25519/internal/edwards25519/edwards25519.go:829
↓ 1 callersFunctiongeSub
(r *CompletedGroupElement, p *ExtendedGroupElement, q *CachedGroupElement)
crypto/ed25519/internal/edwards25519/edwards25519.go:798
↓ 1 callersFunctiongenerate
(tb testing.TB, prev *bc.UnsignedBlock)
protocol/validation/validation_test.go:305
↓ 1 callersFunctiongetOps
()
protocol/txvm/gen.go:38
↓ 1 callersFunctiongetOps
()
protocol/txvm/op/gen.go:40
↓ 1 callersFunctiongetStack
getStack is an allocating wrapper around runtime.Callers.
errors/stack.go:16
↓ 1 callersFunctionhashKeySalt
(out []byte, version byte, key, salt []byte)
crypto/ed25519/chainkd/chainkd.go:216
↓ 1 callersFunctionidTime
(b []byte)
protocol/state/snapshot.go:215
↓ 1 callersFunctioninsert
(n *node, key []byte, hash *[32]byte)
protocol/patricia/patricia.go:118
↓ 1 callersMethodinspect
()
protocol/txvm/entries.go:99
↓ 1 callersMethodisDroppable
()
protocol/txvm/item.go:18
↓ 1 callersMethodisPortable
()
protocol/txvm/item.go:17
↓ 1 callersFunctionisSpace
taken from std encoding/json
encoding/json/value.go:46
↓ 1 callersFunctionisSpace
(b byte)
cmd/hex/main.go:120
↓ 1 callersFunctionkeyHash
duplicated from core/key/store.go.
protocol/txbuilder/txresult/txresult_test.go:17
↓ 1 callersMethodlogFinalize
(anchor []byte)
protocol/txvm/log.go:51
↓ 1 callersMethodlogInput
(snapshotID []byte)
protocol/txvm/log.go:47
↓ 1 callersMethodlogIssuance
(amount int64, assetID, anchor []byte)
protocol/txvm/log.go:59
↓ 1 callersMethodlogNonce
(blockID []byte, exp int64)
protocol/txvm/log.go:35
↓ 1 callersMethodlogOutput
(snapshotID []byte)
protocol/txvm/log.go:43
↓ 1 callersMethodlogRetirement
(amount int64, assetID, anchor []byte)
protocol/txvm/log.go:55
↓ 1 callersFunctionmarkHelper
(name string)
log/stack.go:32
↓ 1 callersFunctionmerge
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 callersFunctionmust
(err error)
cmd/vmhash/vmhash.go:21
↓ 1 callersFunctionmustDecodeBlockHex
(h string)
protocol/bc/block_test.go:288
↓ 1 callersFunctionmustDecodeHashPtr
(h string)
protocol/bc/block_test.go:297
↓ 1 callersFunctionnegative
negative returns 1 if b < 0 and 0 otherwise.
crypto/ed25519/internal/edwards25519/edwards25519.go:938
↓ 1 callersFunctionnewInitialBlock
(tb testing.TB)
protocol/validation/validation_test.go:291
↓ 1 callersFunctionnewNotBoolValue
(val bool, p *bool)
cmd/hex/flag.go:16
↓ 1 callersMethodpadAndPermute
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 callersFunctionpayToTxid
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 callersMethodpeek
(n int64)
protocol/txvm/stack.go:21
↓ 1 callersMethodpeekNth
(n int64)
protocol/txvm/vm.go:259
↓ 1 callersMethodpopN
(n int64)
protocol/txvm/stack.go:41
↓ 1 callersFunctionpushdata
(data []byte)
protocol/txvm/asm/asm.go:471
↓ 1 callersMethodqueueSnapshot
(ctx context.Context, s *state.Snapshot)
protocol/block.go:124
↓ 1 callersFunctionresolve
(items []interface{})
protocol/txvm/asm/asm.go:244
↓ 1 callersMethodroll
(n int64)
protocol/txvm/stack.go:55
↓ 1 callersMethodrunHook
(h func(*VM))
protocol/txvm/hook.go:11
↓ 1 callersMethodscanComment
()
protocol/txvm/asm/scanner.go:126
↓ 1 callersMethodscanEscape
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 callersMethodscanHex
(offs int)
protocol/txvm/asm/scanner.go:175
↓ 1 callersMethodscanLabel
()
protocol/txvm/asm/scanner.go:111
↓ 1 callersMethodscanNumber
()
protocol/txvm/asm/scanner.go:88
↓ 1 callersMethodscanString
(delim rune)
protocol/txvm/asm/scanner.go:134
↓ 1 callersFunctionsign
(t *testing.T, tpl *Template)
protocol/txbuilder/txbuilder_test.go:449
↓ 1 callersMethodskipWhitespace
()
protocol/txvm/asm/scanner.go:120
↓ 1 callersMethodsnapshot
()
protocol/txvm/contract.go:22
↓ 1 callersMethodstep
()
protocol/txvm/vm.go:158
↓ 1 callersMethoduninspect
(Tuple)
protocol/txvm/entries.go:28
← previousnext →401–500 of 1,025, ranked by callers