Skip to content

Commit cba3a39

Browse files
committed
doc
1 parent ddc51e5 commit cba3a39

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Diff for: pallets/subtensor/src/macros/dispatches.rs

+11-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,17 @@ mod dispatches {
186186
/// - The u16 network identifier.
187187
///
188188
/// * `commit` (`Vec<u8>`):
189-
/// - The encrypted weights commit.
189+
/// - The encrypted compressed commit.
190+
/// The steps for this are:
191+
/// 1. Instantiate [`WeightsPayload`]
192+
/// 2. Serialize it using the `parity_scale_codec::Encode` trait
193+
/// 3. Encrypt it following the steps (here)[https://github.com/ideal-lab5/tle/blob/f8e6019f0fb02c380ebfa6b30efb61786dede07b/timelock/src/tlock.rs#L283-L336]
194+
/// to produce a [`TLECiphertext<TinyBLS381>`] type.
195+
/// 4. Serialize and compress using the `ark-serialize` `CanonicalSerialize` trait.
196+
///
197+
/// * reveal_round (`u64`):
198+
/// - The drand reveal round which will be avaliable during epoch `n+1` from the current
199+
/// epoch.
190200
///
191201
/// # Raises:
192202
/// * `CommitRevealV3Disabled`:

0 commit comments

Comments
 (0)