Crypto ref

Comment

Author: Admin | 2025-04-28

Script: The part of the script before and not including an OP_STATESEPARATOR. Useful for storing state data that can be changed by the contract. Code script The part of the script from and including an OP_STATESEPARATOR. If no state separator is present, the code script is the entire script. codeScriptHash: The double SHA-256 of the code script. Hash Functions SHA-512/256 is the hash function used by Radiant's proof of work algorithm. It is available in script as single and double hash functions. These can be used to validate Radiant block headers in script. Opcode Hex Input Output Description OP_SHA512_256 ce bytes hash SHA-512/256 OP_HASH512_256 cf bytes hash Double SHA-512/256 Induction Opcodes Opcode Hex Input Output Description OP_PUSHINPUTREF d0 ref ref Propagates a ref to an output. A ref of normal type must exist in an input or an input must have an outpoint matching the ref. Ref will be left on the stack. OP_PUSHINPUTREFSINGLETON d8 ref ref Propagates a singleton ref to an output. A ref of singleton type must exist in an input or an input must have an outpoint matching the ref. Ref will be left on the stack. OP_REQUIREINPUTREF d1 ref ref A ref of normal type must exist in an input. Ref is not propagated. Ref will be left on the stack. OP_DISALLOWPUSHINPUTREF d2 ref ref Requires a ref to not exist in any input. Leaves the ref on the stack. OP_DISALLOWPUSHINPUTREFSIBLING d3 ref ref Requires a ref to not exist in any input sibling. Leaves the ref on the stack. OP_REFTYPE_UTXO d9 ref type Get the type of a ref from transaction inputs. Returns 0 (not found), 1 (normal type) or 2 (singleton type). OP_REFTYPE_OUTPUT da ref type Get the type of a ref from transaction outputs. Returns 0 (not found), 1 (normal type) or 2 (singleton type). OP_REFHASHDATASUMMARY_UTXO d4 inputIndex summary For the input of the given index returns a hash256 of OP_REFHASHDATASUMMARY_OUTPUT d6 outputIndex summary For the output of the given index returns a hash256 of OP_REFDATASUMMARY_UTXO e1 inputIndex summary Return refs used within an input. Pushes a vector of the form .... If an input UTXO does not contain at least one reference, then the 36 byte zeroes are pushed. OP_REFDATASUMMARY_OUTPUT e2 outputIndex summary Return refs used within an output. Pushes a vector of the form .... If an input UTXO does not contain at least one reference, then the 36 byte

Add Comment