10 lines
286 B
Nim
Raw Normal View History

2024-12-12 15:01:24 +01:00
import ../basics
import codexvalidator/transaction
import codexvalidator/hashing
suite "Transaction hashing":
test "transactions have a hash derived from the serialized bytes":
let transaction = Transaction.example
check transaction.hash == Hash.hash(transaction.toBytes())