Skip to content

Commit 7841610

Browse files
committed
cli: add a note about submission key
nonce handling is assumed to be perfomed only by a single process in the network. Otherwise, there may be two processes that signed an extrinsic with the same nonce. This may lead to rejection of one of the extrinsics.
1 parent cc076e1 commit 7841610

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ikura/shim/src/cli.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ pub struct KeyManagementParams {
4848
///
4949
/// This key is enabled when running ikura-node in the local development mode.
5050
///
51+
/// NOTE: Submitting blobs is assumed to have complete control over the signing key. In case
52+
/// there is another process running with the same key, it may cause error during submission.
53+
///
5154
/// Cannot be used in conjunction with the `--submit-private-key` flag.
5255
#[arg(long)]
5356
pub submit_dev_alice: bool,
@@ -57,6 +60,9 @@ pub struct KeyManagementParams {
5760
/// The keyfile should be 32 bytes of unencrypted, hex-encoded sr25519
5861
/// seed material.
5962
///
63+
/// NOTE: Submitting blobs is assumed to have complete control over the signing key. In case
64+
/// there is another process running with the same key, it may cause error during submission.
65+
///
6066
/// Cannot be used in conjunction with the `--submit-dev-alice` flag.
6167
#[arg(long, value_name = "PATH")]
6268
pub submit_private_key: Option<std::path::PathBuf>,

0 commit comments

Comments
 (0)