Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

got Error!!! DID register to ledger using admin API on Multitenancy ACAPY_Agent #1358

Closed
bbmarley opened this issue Aug 18, 2021 · 3 comments

Comments

@bbmarley
Copy link

Getting an error !!!

I'm using Multitenancy ACAPY_Agent to Register DID to the ledger
(If I used http://localhost:9000 for register DID to ledger manually its working fine but I need to register using Admin API)

  • I created a Sub-wallet using /multitenancy/wallet got token as response
  • Using the Response token of subwallet API I created local DID using /wallet/did/create got DID and Verkey as response
  • Using DID and verkey I tried to register DID to ledger using admin API /ledger/register-nym I got an error with 403 Undocumented

register nym error response

@jeffdem
Copy link

jeffdem commented Aug 31, 2021

Hi bbmarley, in my opinion, you need a STEEWARD wallet already register on the ledger and use his BEARER to use the API /ledger/register-nym to register nym of others wallets

@ianco
Copy link
Contributor

ianco commented Sep 8, 2021

For aca-py to write to the ledger, it needs a DID in its wallet that is already registered on the ledger, with a role (like STEWARD or ENDORSER) with privileges to write to the ledger. The aca-py wallet's public DID is used to sign the transaction that is sent to the ledger. The error message wallet "mywallet" has no public DID means that your agent doesn't have a DID that can write to the ledger.

If you:

  • start up your agent with an already-registered DID (you can register the seed using http://localhost:9000 and then start your agent with the --seed parameter, this will create the DID in the aca-py wallet and then promote it as the public DID)

... then when you create a new DID, you can write to the ledger using the above endpoint.

Check out the demo code, which does all this (see https://github.com/hyperledger/aries-cloudagent-python/blob/main/demo/runners/support/agent.py#L462)

@swcurran
Copy link
Contributor

Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants