MCPcopy Create free account

hub / github.com/chain/txvm / functions

Functions1,025 in github.com/chain/txvm

↓ 162 callersFunctionbits
(lit string)
protocol/patricia/patricia_test.go:684
↓ 112 callersFunctionmustDecodeHex
(s string)
protocol/txvm/simple_ops_test.go:1313
↓ 91 callersFunctionhashForLeaf
(item []byte)
protocol/patricia/patricia_test.go:690
↓ 83 callersFunctionNewHash
NewHash produces a hash from a 32-byte array.
protocol/bc/hash.go:19
↓ 73 callersMethodWrite
(p []byte)
crypto/sha3/kmac.go:47
↓ 63 callersFunctionWrap
Wrap adds a context message and stack trace to err and returns a new error with the new context. Arguments are handled as in fmt.Print. Use Root to re
errors/errors.go:66
↓ 57 callersFunctionFeMul
FeMul calculates h = f * g Can overlap h with f or g. Preconditions: |f| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc. |g| bounded by 1.1*2^26,
crypto/ed25519/internal/edwards25519/edwards25519.go:375
↓ 56 callersMethodOp
Op writes the provided opcode to b.
protocol/txvm/txvmutil/builder.go:71
↓ 55 callersMethodEqual
(x *Scalar)
crypto/ed25519/ecmath/scalar.go:88
↓ 55 callersFunctionhashPtr
(h [32]byte)
protocol/patricia/patricia_test.go:701
↓ 52 callersFunctionWithData
WithData returns a new error that wraps err as a chain error message containing a value of type map[string]interface{} as an extra data item. The map
errors/errors.go:146
↓ 49 callersFunctionFeSquare
FeSquare calculates h = f*f. Can overlap h with f. Preconditions: |f| bounded by 1.1*2^26,1.1*2^25,1.1*2^26,1.1*2^25,etc. Postconditions: |h| bounde
crypto/ed25519/internal/edwards25519/edwards25519.go:474
↓ 49 callersFunctionNew
New returns an error that formats as the given text.
errors/errors.go:10
↓ 48 callersMethodBytes
Bytes returns the hash as a byte slice.
protocol/bc/hash.go:85
↓ 45 callersMethodInsert
Insert inserts item into t. It is an error for item to be a prefix of an element in t or to contain an element in t as a prefix. If item itself is al
protocol/patricia/patricia.go:100
↓ 44 callersMethodError
It satisfies the error interface.
errors/errors.go:24
↓ 41 callersMethodpush
stack access
protocol/txvm/vm.go:191
↓ 40 callersFunctionmust
(err error)
cmd/block/block.go:377
↓ 37 callersFunctionload3
(in []byte)
crypto/ed25519/internal/edwards25519/edwards25519.go:76
↓ 35 callersMethodRootHash
RootHash returns the Merkle root of the tree.
protocol/patricia/patricia.go:206
↓ 35 callersFunctionhashForNonLeaf
(a, b [32]byte)
protocol/patricia/patricia_test.go:694
↓ 33 callersFunctionload4
(in []byte)
crypto/ed25519/internal/edwards25519/edwards25519.go:84
↓ 33 callersFunctionmust
(err error)
cmd/tx/main.go:511
↓ 30 callersFunctionFatalErr
FatalErr calls t.Fatal with err and a stack trace.
testutil/expect.go:16
↓ 30 callersMethodRead
(out []byte)
crypto/sha3/kmac.go:51
↓ 30 callersMethodSum
Sum applies padding to the hash state and then squeezes out the desired number of output bytes.
crypto/sha3/kmac.go:63
↓ 29 callersMethodString
()
protocol/txvm/item.go:16
↓ 28 callersMethodPushdataBytes
PushdataBytes writes instructions to b, pushing data onto the stack.
protocol/txvm/txvmutil/builder.go:31
↓ 26 callersFunctionerrorf
(msg string, arg ...interface{})
protocol/txvm/error.go:11
↓ 25 callersMethodAddOutput
AddOutput adds an Output to the template.
protocol/txbuilder/template.go:266
↓ 25 callersFunctionDeepEqual
DeepEqual is similar to reflect.DeepEqual, but treats nil as equal to empty maps and slices. Some of the implementation is cribbed from Go's reflect p
testutil/deepequal.go:19
↓ 25 callersMethodWrite
Write makes one call on the underlying writer if no error has previously occurred.
errors/writer.go:28
↓ 25 callersFunctionmustDecodeHash
(s string)
protocol/bc/merkle_test.go:47
↓ 24 callersFunctionMillis
Millis converts a time.Time to a number of milliseconds since 1970.
protocol/bc/time.go:6
↓ 23 callersMethodHeight
(context.Context)
protocol/protocol.go:100
↓ 23 callersFunctionmustDecodeHex
(s string)
protocol/bc/merkle_test.go:41
↓ 22 callersFunctionpretty
(t *Tree)
protocol/patricia/patricia_test.go:652
↓ 21 callersMethodBytes
Bytes produces xpub as a byte slice.
crypto/ed25519/chainkd/serialize.go:25
↓ 21 callersFunctionFeAdd
(dst, a, b *FieldElement)
crypto/ed25519/internal/edwards25519/edwards25519.go:28
↓ 21 callersMethodPushdataInt64
PushdataInt64 writes instructions to b pushing v onto the stack.
protocol/txvm/txvmutil/builder.go:47
↓ 21 callersMethodpopBytes
()
protocol/txvm/vm.go:227
↓ 20 callersMethodAdd
Add adds the points in x and y, 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:17
↓ 20 callersFunctionNewCommitmentsTx
NewCommitmentsTx takes a Tx object and returns a CommitmentsTx wrapped with the transaction's nonce and witness commitments.
protocol/bc/tx.go:107
↓ 20 callersMethodpopInt
()
protocol/txvm/vm.go:235
↓ 19 callersMethodAddInput
AddInput adds an Input to the template.
protocol/txbuilder/template.go:244
↓ 19 callersFunctionSetOutput
SetOutput sets the log output to w. If SetOutput hasn't been called, the default behavior is to write to stdout.
log/log.go:55
↓ 18 callersMethodApplyBlock
ApplyBlock updates s in place. It runs in three phases: PruneNonces, ApplyBlockHeader, and ApplyTx (the latter called in a loop for each transaction).
protocol/state/snapshot.go:80
↓ 18 callersFunctionFeSub
(dst, a, b *FieldElement)
crypto/ed25519/internal/edwards25519/edwards25519.go:41
↓ 18 callersFunctionRoot
Root returns the original error that was wrapped by one or more calls to Wrap. If e does not wrap other errors, it will be returned as-is.
errors/errors.go:31
↓ 18 callersFunctionWithDetailf
WithDetailf is like WithDetail, except it formats the detail message as in fmt.Printf. Function Detail will return the formatted text when called on t
errors/errors.go:102
↓ 17 callersMethodAddIssuance
AddIssuance adds an Issuance to the template.
protocol/txbuilder/template.go:224
↓ 17 callersMethodContains
Contains returns whether t contains item.
protocol/patricia/patricia.go:69
↓ 17 callersFunctionEmpty
Empty returns an empty state snapshot.
protocol/state/snapshot.go:69
↓ 17 callersFunctionSign
Sign signs the message with privateKey and returns a signature. It will panic if len(privateKey) is not PrivateKeySize.
crypto/ed25519/ed25519.go:97
↓ 17 callersFunctionWrapf
Wrapf is like Wrap, but arguments are handled as in fmt.Printf.
errors/errors.go:74
↓ 16 callersFunctionAssemble
Notation: word mnemonic 12345 number x'aa' or x"aa" hex data 'foo' or "foo" string [dup] quoted program {x, y, z} tupl
protocol/txvm/asm/asm.go:56
↓ 16 callersMethodHash
Hash will return the hash for this node.
protocol/patricia/patricia.go:283
↓ 16 callersFunctionVMHash
VMHash computes the hash of the "function" f applied to the byte string x.
protocol/txvm/crypto.go:86
↓ 16 callersFunctionValidate
Validate is the main entrypoint to txvm. It runs the given program, producing its transaction ID if it gets as far as a "finalize" instruction. Other
protocol/txvm/vm.go:100
↓ 15 callersMethodEncode
()
crypto/ed25519/ecmath/point.go:86
↓ 15 callersFunctionHashFromBytes
HashFromBytes creates a new Hash from a byte slice. The caller is responsible for ensuring the byte slice is of the right length. It will be 0-padde
protocol/bc/hash.go:39
↓ 15 callersMethodReset
Reset resets the ShakeHash to its initial state.
crypto/sha3/shake.go:31
↓ 15 callersFunctionisRegular
(name string)
log/rotation/file_test.go:234
↓ 14 callersMethodChild
Child produces the child of xprv with the given selector.
crypto/ed25519/chainkd/chainkd.go:61
↓ 14 callersMethodLen
()
protocol/txvm/stack.go:78
↓ 14 callersMethodnext
next reads the next Unicode char into s.ch. s.ch < 0 means end-of-file.
protocol/txvm/asm/scanner.go:52
↓ 13 callersMethodApplyTx
ApplyTx updates s in place.
protocol/state/snapshot.go:136
↓ 13 callersMethodToExtended
(r *ExtendedGroupElement)
crypto/ed25519/internal/edwards25519/edwards25519.go:769
↓ 13 callersMethodWrite
Write writes p to the log file f. It writes only complete lines to the underlying file. Incomplete lines are buffered in memory and written once a NL
log/rotation/file.go:51
↓ 13 callersMethodchargeCreate
(v Item)
protocol/txvm/vm.go:267
↓ 12 callersFunctionStack
Stack returns the stack trace of an error. If the error has no stack information, it returns an empty stack trace.
errors/stack.go:10
↓ 12 callersFunctionprettyNode
(n *node, depth int)
protocol/patricia/patricia_test.go:659
↓ 11 callersMethodGenerateBlock
GenerateBlock generates a valid, but unsigned, candidate block from the current pending transaction pool. It returns the new block and a snapshot of w
protocol/block.go:39
↓ 11 callersMethodchargeCopy
(v Data)
protocol/txvm/vm.go:287
↓ 10 callersMethodAssetID
AssetID computes the asset ID of the issuance.
protocol/txbuilder/template.go:87
↓ 10 callersMethodByte32
Byte32 returns the hash as a 32-byte array.
protocol/bc/hash.go:28
↓ 10 callersMethodFromBytes
(s *[32]byte)
crypto/ed25519/internal/edwards25519/edwards25519.go:717
↓ 10 callersFunctionGenerateKey
GenerateKey generates a public/private key pair using entropy from rand. If rand is nil, crypto/rand.Reader will be used.
crypto/ed25519/ed25519.go:65
↓ 10 callersFunctionMustAssemble
MustAssemble calls Assemble and panics on error.
protocol/txvm/asm/asm.go:72
↓ 10 callersFunctionNewChain
NewChain returns a new Chain using store as the underlying storage.
protocol/protocol.go:130
↓ 10 callersFunctionPrintkv
Printkv prints a structured log entry to stdout. Log fields are specified as a variadic sequence of alternating keys and values. Duplicate keys will
log/log.go:115
↓ 10 callersFunctionRoot
Root creates a merkle tree from a slice of byte slices and returns the root hash of the tree.
protocol/merkle/merkle.go:56
↓ 10 callersMethodToBytes
(s *[32]byte)
crypto/ed25519/internal/edwards25519/edwards25519.go:707
↓ 10 callersMethodTuple
Tuple executes fn, passing in a TupleBuilder that exposes pushdata operations. All operations performed on the TupleBuilder during fn are shadowed to
protocol/txvm/txvmutil/builder.go:81
↓ 10 callersMethodUnmarshalText
UnmarshalText satisfies the TextUnmarshaler interface. It decodes hex data from b into h.
protocol/bc/hash.go:58
↓ 10 callersMethodcharge
(n int64)
protocol/txvm/vm.go:182
↓ 9 callersMethodDecode
(e [32]byte)
crypto/ed25519/ecmath/point.go:92
↓ 9 callersFunctionEncode
Encode serializes an arbitrary data type in a program, which, when executed, produces that data.
protocol/txvm/item.go:105
↓ 9 callersFunctionNew
New returns a new MemStore.
protocol/prottest/memstore/memstore.go:24
↓ 9 callersMethodStackItem
StackItem returns an "inspected" copy of an item on the VM's current contract stack, by position. Position 0 is the bottom of the stack and StackLen()
protocol/txvm/introspection.go:28
↓ 9 callersFunctionVerify
Verify reports whether sig is a valid signature of message by publicKey. It will panic if len(publicKey) is not PublicKeySize.
crypto/ed25519/ed25519.go:146
↓ 9 callersFunctionempty
(t *testing.T)
protocol/state/snapshot_test.go:11
↓ 9 callersMethodpop
()
protocol/txvm/vm.go:203
↓ 9 callersMethodpopData
()
protocol/txvm/vm.go:211
↓ 8 callersFunctionAddInt64
AddInt64 returns a + b with an integer overflow check.
math/checked/checked.go:17
↓ 8 callersMethodAddRetirement
AddRetirement adds a Retirement to the template.
protocol/txbuilder/template.go:282
↓ 8 callersMethodBuild
TODO(jackson): Can we make this builder more ergonomic? https://github.com/interstellar/i10r/pull/2790#issuecomment-373210076 Build returns the assemb
protocol/txvm/txvmutil/builder.go:25
↓ 8 callersFunctionGeScalarMultBase
GeScalarMultBase computes h = a*B, where a = a[0]+256*a[1]+...+256^31 a[31] B is the Ed25519 base point (x,4/5) with x positive. Preconditions: a[31]
crypto/ed25519/internal/edwards25519/edwards25519.go:969
↓ 8 callersMethodHeight
Height returns the current height of the blockchain.
protocol/protocol.go:180
↓ 8 callersMethodMarshalJSON
MarshalJSON satisfies the json.Marshaler interface.
encoding/json/json.go:34
next →1–100 of 1,025, ranked by callers