CTV¶
ctv::hash()
¶
ctv::hash(tx: Transaction, input_index: Int = 0) -> Hash
Calculate the CTV template hash
Rust source code: src/stdlib/ctv.rs:N/A
ctv::verify()
¶
ctv::verify(tx: Transaction, input_index: Int = 0) -> Script
Returns a Script that verifies the CTV hash, then clears it from the stack
Short form for `ctv::hash(tx, input_index) OP_CTV OP_DROP`
Aliased as: ctv()
Minsc source code: src/stdlib/ctv.rs:N/A
ctv::check()
¶
ctv::check(tx: Transaction, input_index: Int = 0) -> Script
Returns a Script that checks the CTV hash, leaving it on the stack
Minsc source code: src/stdlib/ctv.rs:N/A
Aliased as: OP_CHECKTEMPLATEVERIFY