OutlierVentures / ANVIL

Agent Negotiation Verifiable Interaction Layer – an app in the Convergence Stack.
https://anvil.outlierventures.io
Apache License 2.0
18 stars 6 forks source link

indy.error.IndyError: ErrorCode.CommonInvalidStructure #1

Closed theoturner closed 5 years ago

theoturner commented 5 years ago

Intermittent error occurring at proof creation. Often fixed by running again.

WARNING:indy.libindy:_do_call: Function indy_prover_search_credentials_for_proof_req returned error 113
Traceback (most recent call last):
  File "claims.py", line 160, in <module>
    run_coroutine(run)
  File "/Users/theo/ANVIL/sovrin/sovrin_utilities.py", line 55, in run_coroutine
    loop.run_until_complete(coroutine())
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "claims.py", line 116, in run
    requested_predicates, non_issuer_attributes)
  File "/Users/theo/ANVIL/sovrin/proofs.py", line 36, in create_proof_of_credential
    prover['proof_request'], None)
  File "/usr/local/lib/python3.7/site-packages/indy/anoncreds.py", line 989, in prover_search_credentials_for_proof_req
    prover_search_credentials_for_proof_req.cb)
indy.error.IndyError: ErrorCode.CommonInvalidStructure
theoturner commented 5 years ago

Hyperledger Indy demands use of fully numeric nonces. Changing from a hex nonce to a numeric nonce fixed the issue.