hyperledger-archives / indy-sdk

indy-sdk
https://wiki.hyperledger.org/display/indy
Apache License 2.0
666 stars 737 forks source link

I cannot find the newly registered DID in the ledger. #2599

Closed KangUkG closed 6 months ago

KangUkG commented 12 months ago

I am following the process outlined in https://github.com/hyperledger/indy-sdk/blob/main/docs/how-tos/write-did-and-query-verkey/README.md.

print('\n8. Sending NYM request to the ledger\n')
    nym_transaction_response = await ledger.sign_and_submit_request(pool_handle=pool_handle,
                                                                    wallet_handle=wallet_handle,
                                                                    submitter_did=steward_did,
                                                                    request_json=nym_transaction_request)
    print('NYM transaction response: ')
    pprint.pprint(json.loads(nym_transaction_response))

After this process, I obtained the following response value. This value is 'NMY transaction response'.

{'op': 'REPLY',
 'result': {'auditPath': ['EsY4hbw8MPXuyQTiq43pvwJqak6pGzfKwJKMXoi6uYS7',
                          'DNHM372JZJoGcxdHdmsj3QSSiomyeZux6ssJXxAJqyvd'],
            'reqSignature': {'type': 'ED25519',
                             'values': [{'from': 'Th7MpTaRZVRYnPiabds81Y',
                                         'value': '2m2mnzQUxnYDWcnmWMfSLj6qK5YzNhDffPhmSzBkxTFF33WpZSTp9dWSC45jwzJrPfqWeia5fc9wX47Lb4StY7fg'}]},
            'rootHash': 'EWDXDRG9W9e6C4M6u4Le9mxZMLmEvi5aWJyuk7sC8Ebv',
            'txn': {'data': {'dest': 'CYv6zWdvor2RDpPXvRoTqs',
                             'role': '101',
                             'verkey': '7J8MR192XZ7RqMxchvbvneqDqWZZHf8zxB56bqHc7MEH'},
                    'metadata': {'digest': '9c13c9b7ccf7d03181d52e2d8219275c9cbe77173e464077fd3dd9dc8a9d1ad0',
                                 'from': 'Th7MpTaRZVRYnPiabds81Y',
                                 'payloadDigest': 'f7f3385e00fd4f8d3df2236ed76918beaeecfc9fe9bd461610dbceeb96d9af73',
                                 'reqId': 1693725630310111000},
                    'protocolVersion': 2,
                    'type': '1'},
            'txnMetadata': {'seqNo': 11,
                            'txnId': '18556a61aab7656fe90d0cd1c68ca3fdf4ffb030d77023e708b2fbd2f340705c',
                            'txnTime': 1693725630},
            'ver': '1'}}

Subsequently, I checked the domain_transactions_genesis of the node running through Docker, but the newly created DID was not found. In which file can I find the newly registered DID and other information? Please let me know, I've been searching for a week.