Skip to content

Commit

Permalink
fix: print provision messages if auto-provision is triggered (openwal…
Browse files Browse the repository at this point in the history
…let-foundation#3077)

It was recently discovered that if you set a static seed, and you have
auto-provisioning enabled on the start command, there is no way to get
the verkey for the created DID. The verkey is never printed out to the
command line and I do not remember there being an API for retrieving the
verkey (one of those, "See it once, copy it, or forever lose it" kinds
of things).

After this point in the code, the only thing that "provision" enables
are the print statements talking about the did/verkey being created as
well as some basic profile information. It doesn't trigger any code that
would make changes to the system, those lines precede the line I've
added.

Signed-off-by: Colton Wolkins (Indicio work address) <[email protected]>
Co-authored-by: jamshale <[email protected]>
  • Loading branch information
TheTechmage and jamshale authored Jul 2, 2024
1 parent 40353cd commit 559b2f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aries_cloudagent/config/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async def wallet_config(
except ProfileNotFoundError:
if settings.get("auto_provision", False):
profile = await mgr.provision(context, profile_cfg)
provision = True
else:
raise

Expand Down

0 comments on commit 559b2f9

Please sign in to comment.