@@ -73,11 +73,11 @@ type DKGState interface {
73
73
// - [storage.InvalidDKGStateTransitionError] - if the requested state transition is invalid.
74
74
InsertMyBeaconPrivateKey (epochCounter uint64 , key crypto.PrivateKey ) error
75
75
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.
81
81
// No errors are expected during normal operations.
82
82
CommitMyBeaconPrivateKey (epochCounter uint64 , commit * flow.EpochCommit ) error
83
83
}
@@ -95,7 +95,7 @@ type EpochRecoveryMyBeaconKey interface {
95
95
96
96
// UpsertMyBeaconPrivateKey overwrites the random beacon private key for the epoch that recovers the protocol
97
97
// 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].
99
99
// Repeated calls for the same epoch are idempotent, if and only if the provided EpochCommit confirms the already
100
100
// committed key (error otherwise).
101
101
// No errors are expected during normal operations.
0 commit comments