File tree Expand file tree Collapse file tree
src/domain/signing/domain/src/entities Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
1111
12+ /// Private keys are used to sign API responses.
13+ /// Supported algorithms: `ed25519`, `secp256k1`.
1214#[ derive( Debug , Clone ) ]
1315pub 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 /// ```
You can’t perform that action at this time.
0 commit comments