MCPcopy Index your code
hub / github.com/btcsuite/btcd / scriptNum

TypeAlias scriptNum

txscript/scriptnum.go:58–58  ·  view source on GitHub ↗

scriptNum represents a numeric value used in the scripting engine with special handling to deal with the subtle semantics required by consensus. All numbers are stored on the data and alternate stacks encoded as little endian with a sign bit. All numeric opcodes such as OP_ADD, OP_SUB, and OP_MUL,

Source from the content-addressed store, hash-verified

56// Since all numeric opcodes involve pulling data from the stack and
57// interpreting it as an integer, it provides the required behavior.
58type scriptNum int64
59
60// checkMinimalDataEncoding returns whether or not the passed byte array adheres
61// to the minimal encoding requirements.

Callers 15

TestStackFunction · 0.85
MakeScriptNumFunction · 0.85
opcode1NegateFunction · 0.85
opcodeNFunction · 0.85
opcodeDepthFunction · 0.85
opcodeSizeFunction · 0.85
opcodeNotFunction · 0.85
opcodeBoolAndFunction · 0.85
opcodeBoolOrFunction · 0.85
opcodeNumEqualFunction · 0.85
opcodeNumNotEqualFunction · 0.85
opcodeLessThanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected