formatting

This commit is contained in:
Mark Spanbroek 2024-10-17 16:06:50 +02:00
parent 96295461ae
commit d478e438b0

View File

@ -7,12 +7,11 @@ import ./validator/rounds
export slots
type
Validator*[Signing, Hashing] = ref object
identity: Identity[Signing]
committee: Committee[Signing]
membership: CommitteeMember
rounds: Rounds[Hashing]
type Validator*[Signing, Hashing] = ref object
identity: Identity[Signing]
committee: Committee[Signing]
membership: CommitteeMember
rounds: Rounds[Hashing]
func new*(T: type Validator; identity: Identity, committee: Committee): ?!T =
let round = Round[T.Hashing].new(0, committee.size)