mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-07-30 15:23:19 +00:00

* [NOD-721] Defer unlocks * [NOD-721] Add functions with locks to rpcmodel * [NOD-721] Defer unlocks * [NOD-721] Add filterDataWithLock function * [NOD-721] Defer unlocks * [NOD-721] Defer .Close() * [NOD-721] Fix access to wsc.filterData without a lock * [NOD-721] De-anonymize some anonymous functions * [NOD-721] Remove redundant assignments * [NOD-721] Remove redundant assignments * [NOD-721] Remove redundant assignments * [NOD-721] Get rid of submitOld, and break handleGetBlockTemplateLongPoll to smaller functions * [NOD-721] Rename existsUnspentOutpoint->existsUnspentOutpointNoLock, existsUnspentOutpointWithLock->existsUnspentOutpoint * [NOD-721] Rename filterDataWithLock->FilterData * [NOD-721] Fixed comments
txscript
Package txscript implements the kaspa transaction script language. There is a comprehensive test suite.
Kaspa Scripts
Kaspa provides a stack-based, FORTH-like language for the scripts in the kaspa transactions. This language is not turing complete although it is still fairly powerful.
Examples
-
Standard Pay-to-pubkey-hash Script
Demonstrates creating a script which pays to a kaspa address. It also prints the created script hex and uses the DisasmString function to display the disassembled script. -
Extracting Details from Standard Scripts
Demonstrates extracting information from a standard public key script.