Skip to content

Commit cc7d8eb

Browse files
committed
kamu-signing: IdentityConfig: update comments
1 parent 66c9ab3 commit cc7d8eb

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

src/domain/signing/domain/src/entities/identity_config.rs

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,34 @@
99

1010
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1111

12+
/// Private keys are used to sign API responses.
13+
/// Supported algorithms: `ed25519`, `secp256k1`.
1214
#[derive(Debug, Clone)]
1315
pub struct IdentityConfig {
1416
/// Root private key that corresponds to the `authority` and is used to sign
15-
/// responses
17+
/// responses.
1618
///
1719
/// To generate, use:
18-
///
1920
/// ```sh
20-
/// ssh-keygen -t ed25519 -C "coo@abc.com"
21+
/// od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n' && echo
22+
/// ```
23+
/// or
24+
/// ```sh
25+
/// openssl rand -hex 32
2126
/// ```
2227
pub ed25519_private_key: odf::metadata::PrivateKey,
2328

2429
/// Secp256k1 private key used to sign EIP-712 typed data.
2530
///
31+
/// To generate, use:
32+
/// ```sh
33+
/// od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n' && echo
34+
/// ```
35+
/// or
36+
/// ```sh
37+
/// openssl rand -hex 32
38+
/// ```
39+
/// or
2640
/// ```sh
2741
/// cast wallet new
2842
/// ```

0 commit comments

Comments
 (0)