mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* [NOD-592] Remove TODOs related to fake nonces. * [NOD-592] Remove irrelevant TODOs from handleRescanBlocks and parseTxAcceptedVerboseNtfnParams. * [NOD-592] Fix TODO in handleGetTxOut. * [NOD-592] Remove irrelevant TODO from updateAddress. * [NOD-592] Move StandardVerifyFlags to a separate file. * [NOD-592] Remove TODOs in sign.go. * [NOD-592] Remove TODO in scriptval_test.go. * [NOD-592] Remove TODO in reachabilitystore.go. * [NOD-592] Remove XXXs. * [NOD-592] Fix a comment. * [NOD-557] Move AddAddressByIP out of AddressManager since it's used only for tests.. * [NOD-557] Remove rescan blocks. * [NOD-592] Fix handleGetTxOut.
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.