2024-12-18 12:55:45 +01:00

19 lines
499 B
Nim

import codexvalidator/blocks
import ./hashing
import ./signatures
import ./transaction
proc example*(_: type CommitteeMember): CommitteeMember =
CommitteeMember(uint32.example.int)
proc example*(_: type BlockId): BlockId =
BlockId.init(CommitteeMember.example, uint64.example, Hash.example)
proc example*(_: type Block): Block =
Block(
author: CommitteeMember.example,
round: uint64.example,
parents: seq[BlockId].example,
transactions: seq[Signed[Transaction]].example
)