You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// ---- Used to commit encrypted commit-reveal v3 weight values to later be revealed.
253
-
///
254
-
/// # Args:
255
-
/// * `origin`: (`<T as frame_system::Config>::RuntimeOrigin`):
256
-
/// - The committing hotkey.
257
-
///
258
-
/// * `netuid` (`u16`):
259
-
/// - The u16 network identifier.
260
-
///
261
-
/// * `commit` (`Vec<u8>`):
262
-
/// - The encrypted compressed commit.
263
-
/// The steps for this are:
264
-
/// 1. Instantiate [`WeightsTlockPayload`]
265
-
/// 2. Serialize it using the `parity_scale_codec::Encode` trait
266
-
/// 3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]
267
-
/// to produce a [`TLECiphertext<TinyBLS381>`] type.
268
-
/// 4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait.
269
-
///
270
-
/// * reveal_round (`u64`):
271
-
/// - The drand reveal round which will be avaliable during epoch `n+1` from the current
272
-
/// epoch.
273
-
///
274
-
/// # Raises:
275
-
/// * `CommitRevealV3Disabled`:
276
-
/// - Attempting to commit when the commit-reveal mechanism is disabled.
277
-
///
278
-
/// * `TooManyUnrevealedCommits`:
279
-
/// - Attempting to commit when the user has more than the allowed limit of unrevealed commits.
0 commit comments