How does Kaspa's OpTxInputDaaScore let scripts use DAA score instead of block height?
OpTxInputDaaScore (0xc0) is a Kaspa script opcode that returns the DAA score of the block that created the UTXO being spent by a given input. DAA score — short for Difficulty Adjustment Algorithm score — is Kaspa's native measure of a block's position in the blockDAG; because Kaspa's DAG can have many parallel blocks at the same level, traditional block height does not map cleanly onto it the way it does in a single-chain blockchain. By surfacing this value inside script execution, developers can write spending conditions that depend on when a UTXO was mined relative to the DAG's progression. For beginners, the takeaway is that Kaspa's scripting primitives are designed around its blockDAG architecture, not copied wholesale from single-chain models.