commit_weights

Function commit_weights 

Source
pub async fn commit_weights<S>(
    client: &OnlineClient<PolkadotConfig>,
    signer: &S,
    params: CommitRevealParams,
) -> Result<ExtrinsicResponse<[u8; 32]>, BittensorError>
Expand description

Commit weights hash for the commit-reveal scheme

In the commit-reveal scheme, validators first commit a hash of their weights, then reveal the actual weights later.