Wallet
ebsi wallet create [--es256k-key <hex>] [--es256-key <hex>] [--sign-alg <alg>] [--did <did>] [--save]
ebsi wallet info
| Command | Description |
|---|---|
wallet create | Generates (or derives from --es256k-key) a secp256k1 key pair, optionally with a P-256 key, with its DID, JWK(s) and Ethereum address |
wallet info | Shows the DID, address, and per-curve kid and thumbprint of the configured key(s) |
| Option | Description |
|---|---|
--es256k-key <hex> | Use this secp256k1 key instead of generating one |
--es256-key <hex> | Also derive a P-256 key from this key |
--sign-alg <alg> | Which key signs VCs and VPs: ES256 or ES256K |
--did <did> | Use a specific EBSI DID instead of a random one |
--save | Save the key(s) and DID to the config file (plaintext, a warning is printed) |
- The secp256k1 key is generated only when none is configured. Otherwise the configured key is reused.
- The P-256 key is never generated. Pass it explicitly to derive it.
- A new random DID is generated on every
wallet createunless you provide--did(orEBSI_DID, or a saveddid). For a repeatable identity, pass both--es256k-keyand--did.
# Generate a key pair and save it
ebsi wallet create --save
# Show the identity of the configured key(s)
ebsi wallet info