openwallet-foundation / acapy

ACA-Py is a foundation for building decentralized identity applications and services running in non-mobile environments.
https://aca-py.org
Apache License 2.0
419 stars 512 forks source link

Adding to the `--seed` option to create DIDs on start up for other DID Methods #3240

Open swcurran opened 2 months ago

swcurran commented 2 months ago

As noted by @PatStLouis in the [20240917]() ACA-Pug meeting, when the --seed option is used as a startup parameter, a key is created along with a did:sov DID that uses that key by ACA-Py. This issue is to discuss how to extend the startup parameter (and define an OpenAPI endpoint -- but without a seed) to create keys and bind them to DIDs. For example (and this is totally wrong -- just used as an example), extend --seed values to be "<seed>,<did method>,<did parameter>" -- e.g."123456,tdw,example.org"`. The intention of the issue is to cover:

For the OpenAPI endpoint, for security reasons, we won't pass in the seed (assuming that ACA-Py generates a seed on the fly).

Editorial: I'm using this issue to generate discussion and probably have some fundamentals wrong in the issue. Feel free to edit this issue description to improve the quality of the resulting conversation.

zoblazo commented 1 month ago

DID

DIDDoc

NYM

--seed

With all that said, it seems acapy should NOT mix the notions of seed, NYM and DID (or DID method) :

Then comes the concern of public did vs default did :