Skip to main content

Wallet

ebsi wallet create [--es256k-key <hex>] [--es256-key <hex>] [--sign-alg <alg>] [--did <did>] [--save]
ebsi wallet info
CommandDescription
wallet createGenerates (or derives from --es256k-key) a secp256k1 key pair, optionally with a P-256 key, with its DID, JWK(s) and Ethereum address
wallet infoShows the DID, address, and per-curve kid and thumbprint of the configured key(s)
OptionDescription
--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
--saveSave 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 create unless you provide --did (or EBSI_DID, or a saved did). For a repeatable identity, pass both --es256k-key and --did.
# Generate a key pair and save it
ebsi wallet create --save

# Show the identity of the configured key(s)
ebsi wallet info