What new hash opcodes does KIP-0017 add to Kaspa's scripting layer?

KIP-0017 introduces three new cryptographic hash opcodes into Kaspa's scripting engine: OpBlake2bWithKey, OpBlake3, and OpBlake3WithKey. An opcode is a single low-level instruction that transaction scripts and smart contracts can call — think of it as a named button on a calculator. Hash functions take input data and produce a fixed-length fingerprint; keyed variants mix in a secret key so only someone with that key can reproduce the same output. Adding these opcodes means Kaspa script authors can now use modern, fast hash algorithms — BLAKE2b-256 and BLAKE3 — directly inside on-chain logic without any workaround. This matters for beginners because it signals that Kaspa's scripting capabilities are growing: more opcodes means more types of contracts and custody arrangements become possible on the network.

Learn more ›