mirror of
https://github.com/logos-storage/logos-storage-nim-validator.git
synced 2026-01-03 14:03:07 +00:00
10 lines
286 B
Nim
10 lines
286 B
Nim
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())
|