Skip to content

Commit 338756c

Browse files
committed
Apply suggestions from PR review
1 parent d2c190b commit 338756c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: storage/dkg.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ type DKGState interface {
7373
// - [storage.InvalidDKGStateTransitionError] - if the requested state transition is invalid.
7474
InsertMyBeaconPrivateKey(epochCounter uint64, key crypto.PrivateKey) error
7575

76-
// CommitMyBeaconPrivateKey commits the previously inserted random beacon private key for an epoch. Effectively, this method
77-
// transitions the state machine into the [flow.RandomBeaconKeyCommitted] state if the current state is [flow.DKGStateCompleted].
78-
// The caller needs to supply the [flow.EpochCommit] as evidence that the stored key is valid for the specified epoch. Repeated
79-
// calls for the same epoch are accepted (idempotent operation),if and only if the provided EpochCommit confirms the already
80-
// committed key.
76+
// CommitMyBeaconPrivateKey commits the previously inserted random beacon private key for an epoch. Effectively, this method
77+
// transitions the state machine into the [flow.RandomBeaconKeyCommitted] state if the current state is [flow.DKGStateCompleted].
78+
// The caller needs to supply the [flow.EpochCommit] as evidence that the stored key is valid for the specified epoch. Repeated
79+
// calls for the same epoch are accepted (idempotent operation),if and only if the provided EpochCommit confirms the already
80+
// committed key.
8181
// No errors are expected during normal operations.
8282
CommitMyBeaconPrivateKey(epochCounter uint64, commit *flow.EpochCommit) error
8383
}
@@ -95,7 +95,7 @@ type EpochRecoveryMyBeaconKey interface {
9595

9696
// UpsertMyBeaconPrivateKey overwrites the random beacon private key for the epoch that recovers the protocol
9797
// from Epoch Fallback Mode. The resulting state of this method call is [flow.RandomBeaconKeyCommitted].
98-
// State transitions are allowed if and only if the current state is not equal to [flow.RandomBeaconKeyCommitted].
98+
// State transitions are allowed if and only if the current state is not equal to [flow.RandomBeaconKeyCommitted].
9999
// Repeated calls for the same epoch are idempotent, if and only if the provided EpochCommit confirms the already
100100
// committed key (error otherwise).
101101
// No errors are expected during normal operations.

0 commit comments

Comments
 (0)