aries-cloudagent-python: Presentation Request is not verified but no errors

I am trying to work through the open api demo here: https://github.com/hyperledger/aries-cloudagent-python/blob/master/demo/AriesOpenAPIDemo.md

But using the act-py CLI instead. I run into difficulty when requesting presentation of an issued credential. It does not perform as described in the demo documentation. I cannot see anything that I am doing wrong so I am stuck. Some help would be appreciated.

Basically everything works until I have Faber request a presentation the issued credential from Alice. Despite no errors with a successful send the GET presentation_exchange/{id} state never changes its always request_sent not verified. When looking at the Alice side of the exchange is shows request_received but nothing else happens.

Note (see below) that Alice has both –auto-respond-presentation-request
–auto-verify-presentation \

So I can’t figure out why Alice is not responding?

P.S. In working through the swagger api the id on both sides of a connection or exchange are different for each side. While its possible to figure from the order of events what responses belong to a given connection/exchange it seems like it would be much easier if the API included the ids from the other side. Indeed its somewhat tedious if there are multiple exchanges etc. I fear that this manual matchup would be error prone and could get really complicated and problematic if there were more than one agent talking at the same time. I assume (maybe this is a big assumption) that under the hood each agent is keeping track of the ids from the other side of any connection or exchange but only exposing in the API their side. It would be helpful to understand why only one side shows up in the API. After the incepting event both sides should have both sets of ids or am I missing something fundamental here?

Full Details

---------
Setup Operation
---------

------
1- Run the local indy ledger (see instructions below) using docker.
------

$ cd /Data/Code/public/hyperledger/indy/indy-sdk/
$ docker run -itd -p 9701-9708:9701-9708 indy_pool
$ docker container ls
 ...  xenodochial_hermann
$ docker container stop xenodochial_hermann

-----------
2- Run the von-network web server ledger browser
---------

$ cd /Data/Code/public/hyperledger/aries/von-network/
$ GENESIS_FILE=/Data/Code/public/hyperledger/aries/cloudagentpy/demo/local-genesis.txt PORT=9000 REGISTER_NEW_DIDS=true python3 -m server.server

^-C ^-C to stop
If rebuild indy pool pull latest von-network

Web browser to 
http://localhost:9000

------------
3- Use von-network browser to create public did for agents 
-------------

 Faber

Wallet Seed:  0123456789ABCDEF0123456789ABCDEF
Seed: 0123456789ABCDEF0123456789ABCDEF
DID: 3avoBCqDMFHFaKUHug9s8W
Verkey: 2QiWG18JjfjUFQMk8xdmhyphRzmbveaYbGM3R8iPbiBx

Note DID is same as ledger NYM

Ledger
#13
Message Wrapper
Transaction ID: 3avoBCqDMFHFaKUHug9s8W:1:b6bf7bc8d96f3ea9d132c83b3da8e7760e420138485657372db4d6a981d3fd9e
Transaction time: 8/26/2019, 2:33:32 PM (1566851612)
Signed by: 3avoBCqDMFHFaKUHug9s8W
Root hash: 7QGypVJth4YWsSqvvyQwCPceFqtYiu3Z5m9Zndw7tS2v
Audit path: Buty8XtWwoUviCeqZLe9yNkuAvfG6Usd7cpExB7zn1b4, DNHM372JZJoGcxdHdmsj3QSSiomyeZux6ssJXxAJqyvd
Metadata
From nym: 3avoBCqDMFHFaKUHug9s8W
Request ID: 1566851612886907000
Digest: c0caa1f3590632d25fb4557579cb345d1f07c3799adff2df6e286c60fd4b5d80
Transaction
Type: ATTRIB
Nym: 3avoBCqDMFHFaKUHug9s8W
Attribute data: {"endpoint":{"endpoint":"http://localhost:8020"}}
Raw Data 
{
  "auditPath": [
    "Buty8XtWwoUviCeqZLe9yNkuAvfG6Usd7cpExB7zn1b4",
    "DNHM372JZJoGcxdHdmsj3QSSiomyeZux6ssJXxAJqyvd"
  ],
  "reqSignature": {
    "type": "ED25519",
    "values": [
      {
        "from": "3avoBCqDMFHFaKUHug9s8W",
        "value": "3c1hgAxEbZnyiXQ86uByUwbFyfX1Hg26LRt8f1P65pQC79whdWbFcS2Cuda3B9iPRBULsqERk6o6qLY4ifUyVeYB"
      }
    ]
  },
  "rootHash": "7QGypVJth4YWsSqvvyQwCPceFqtYiu3Z5m9Zndw7tS2v",
  "txn": {
    "data": {
      "dest": "3avoBCqDMFHFaKUHug9s8W",
      "raw": "{\"endpoint\":{\"endpoint\":\"http://localhost:8020\"}}"
    },
    "metadata": {
      "digest": "c0caa1f3590632d25fb4557579cb345d1f07c3799adff2df6e286c60fd4b5d80",
      "from": "3avoBCqDMFHFaKUHug9s8W",
      "payloadDigest": "c6b3ead524d41c835ca27c9ef7e5236a5e854c5afcef517f698896e59d2d20ae",
      "reqId": 1566851612886907000
    },
    "protocolVersion": 2,
    "type": "100"
  },
  "txnMetadata": {
    "seqNo": 13,
    "txnId": "3avoBCqDMFHFaKUHug9s8W:1:b6bf7bc8d96f3ea9d132c83b3da8e7760e420138485657372db4d6a981d3fd9e",
    "txnTime": 1566851612
  },
  "ver": "1"
}



Alice

Wallet Seed:  ABCDEF0123456789ABCDEF0123456789
Seed: ABCDEF0123456789ABCDEF0123456789
DID: KfoDwEpcJoNCdb6Akeeb9w
Verkey: BBAM5UQdhfFvSdihv4SbEcV3zAyLZ2dEs3WwBnh2cHw2

Note DID is same as ledger NYM

Ledger
#14
Message Wrapper
Transaction ID: KfoDwEpcJoNCdb6Akeeb9w:1:b6bf7bc8d96f3ea9d132c83b3da8e7760e420138485657372db4d6a981d3fd9e
Transaction time: 8/26/2019, 2:33:52 PM (1566851632)
Signed by: KfoDwEpcJoNCdb6Akeeb9w
Root hash: 8aqevg9vrWEFZK5QGhwAydZ7sR4MMqRQj2kq46PdXLwn
Audit path: AUBMjrDhmz9uCKrwK2tUz5eW62FZoZNwh1RUDnFJz2VZ, Buty8XtWwoUviCeqZLe9yNkuAvfG6Usd7cpExB7zn1b4, DNHM372JZJoGcxdHdmsj3QSSiomyeZux6ssJXxAJqyvd
Metadata
From nym: KfoDwEpcJoNCdb6Akeeb9w
Request ID: 1566851632037517000
Digest: 362abd5da0f9b25868f9c1374f44dfa0c3b872e6ce94b5221b88a45796f903af
Transaction
Type: ATTRIB
Nym: KfoDwEpcJoNCdb6Akeeb9w
Attribute data: {"endpoint":{"endpoint":"http://localhost:8030"}}
Raw Data 
{
  "auditPath": [
    "AUBMjrDhmz9uCKrwK2tUz5eW62FZoZNwh1RUDnFJz2VZ",
    "Buty8XtWwoUviCeqZLe9yNkuAvfG6Usd7cpExB7zn1b4",
    "DNHM372JZJoGcxdHdmsj3QSSiomyeZux6ssJXxAJqyvd"
  ],
  "reqSignature": {
    "type": "ED25519",
    "values": [
      {
        "from": "KfoDwEpcJoNCdb6Akeeb9w",
        "value": "3CGGkZfN4pMpp8MY9JxmUjejWpYK4AshnV9NJZGw1f5Z7sXwETATpbQWsgv3sxz8Qe1e7rDLJXs22eJK2JGW2wwV"
      }
    ]
  },
  "rootHash": "8aqevg9vrWEFZK5QGhwAydZ7sR4MMqRQj2kq46PdXLwn",
  "txn": {
    "data": {
      "dest": "KfoDwEpcJoNCdb6Akeeb9w",
      "raw": "{\"endpoint\":{\"endpoint\":\"http://localhost:8030\"}}"
    },
    "metadata": {
      "digest": "362abd5da0f9b25868f9c1374f44dfa0c3b872e6ce94b5221b88a45796f903af",
      "from": "KfoDwEpcJoNCdb6Akeeb9w",
      "payloadDigest": "441d40fe946056a1f65067712fdf444c568dd84941cbc2f5d742547f492adeb2",
      "reqId": 1566851632037517000
    },
    "protocolVersion": 2,
    "type": "100"
  },
  "txnMetadata": {
    "seqNo": 14,
    "txnId": "KfoDwEpcJoNCdb6Akeeb9w:1:b6bf7bc8d96f3ea9d132c83b3da8e7760e420138485657372db4d6a981d3fd9e",
    "txnTime": 1566851632
  },
  "ver": "1"
}

---------
4- Run web hook server leopy
---------
/Data/Code/public/hyperledger/aries/leopy/src/leopy/leopyd.py

$ cd /Data/Code/public/hyperledger/aries/leopy/src/
$  python3 -m leopy.leopyd -v 1



------------
5- Run aca-py CLI
-------------

In another terminal run the aca-py cli .
Agent's "Admin interface" provides the swagger API.


a) Run Agent
b) Create Invitation using swagger
    POST /connections/create-invitation


Faber with webhook controller

$ aca-py start \
--inbound-transport http 0.0.0.0 8020 \
--outbound-transport http \
--log-level debug \
--endpoint http://localhost:8020 \
--label FaberAgent  \
--seed 0123456789ABCDEF0123456789ABCDEF \
--ledger-pool-name localindypool \
--admin 0.0.0.0 8021 \
--admin-insecure-mode \
--public-invites \
--auto-accept-invites \
--auto-accept-requests \
--auto-ping-connection \
--auto-respond-messages \
--auto-respond-credential-offer \
--auto-respond-presentation-request \
--auto-verify-presentation \
--wallet-key super_agent-1 \
--wallet-name super_agent_1 \
--wallet-type indy \
--genesis-url http://localhost:9000/genesis \
--webhook-url http://localhost:8080 \


Alice

$ aca-py start \
--inbound-transport http 0.0.0.0 8030 \
--outbound-transport http \
--log-level debug \
--endpoint http://localhost:8030 \
--label AliceAgent \
--seed ABCDEF0123456789ABCDEF0123456789 \
--ledger-pool-name localindypool \
--admin 0.0.0.0 8031 \
--admin-insecure-mode \
--public-invites \
--auto-accept-invites \
--auto-accept-requests \
--auto-ping-connection \
--auto-respond-messages \
--auto-respond-credential-offer \
--auto-respond-presentation-request \
--auto-verify-presentation \
--wallet-key super_agent-2 \
--wallet-name super_agent_2 \
--wallet-type indy \
--genesis-url http://localhost:9000/genesis \





------------
Open API Demo but with aca-py 0.3.1
------------

https://github.com/hyperledger/aries-cloudagent-python/blob/master/demo/AriesOpenAPIDemo.md


With Webhook to leopy server
On Faber swagger :8021

/connections/create-invitation
$ curl -X POST "http://127.0.0.1:8021/connections/create-invitation" -H "accept: application/json"


Using swagger to create invitation on faber's admin interface :8020
POST /connections/create-invitation

Copy the entire block of the invitation object, from the curly brackets {}, 
excluding the trailing comma.


response

{
    "@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/invitation",
    "@id": "9d6b48ad-133b-4705-b765-5e501a393a74",
    "label": "FaberAgent",
    "serviceEndpoint": "http://localhost:8020",
    "recipientKeys": [
      "5gHfSQJmmc6kJgfYJq49uN4Rn4ebMrpEva1tEDWD2Mwc"
    ]
  }
  

Event
Sink: /topic/connections/ POST
JSON:
{
  "topic": "connections",
  "data": {
    "routing_state": "none",
    "state": "invitation",
    "invitation_mode": "once",
    "invitation_key": "5gHfSQJmmc6kJgfYJq49uN4Rn4ebMrpEva1tEDWD2Mwc",
    "updated_at": "2019-08-26 20:36:19.350923Z",
    "created_at": "2019-08-26 20:36:19.350923Z",
    "initiator": "self",
    "accept": "auto",
    "connection_id": "538f387a-91e2-49b7-9892-dbf7688ba5a7"
  }
}

Go to Alice's swagger and receive the invitation
copy invitation response above

POST /connections/receive-invitation

Response
{
  "created_at": "2019-08-26 20:40:09.616234Z",
  "invitation_key": "5gHfSQJmmc6kJgfYJq49uN4Rn4ebMrpEva1tEDWD2Mwc",
  "routing_state": "none",
  "state": "request",
  "updated_at": "2019-08-26 20:40:09.635759Z",
  "invitation_mode": "once",
  "request_id": "1f55bf98-f3fc-4613-82e3-6cf159598d24",
  "my_did": "JK7aKyr22cQ4B1tpeiT1ti",
  "connection_id": "4193344d-c71b-4628-b582-2531feb1770e",
  "their_label": "FaberAgent",
  "accept": "auto",
  "initiator": "external"
}

Faber Webhook
Sink: /topic/connections/ POST
JSON:
{
  "topic": "connections",
  "data": {
    "routing_state": "none",
    "state": "request",
    "invitation_mode": "once",
    "invitation_key": "5gHfSQJmmc6kJgfYJq49uN4Rn4ebMrpEva1tEDWD2Mwc",
    "updated_at": "2019-08-26 20:40:09.731731Z",
    "created_at": "2019-08-26 20:36:19.350923Z",
    "their_did": "JK7aKyr22cQ4B1tpeiT1ti",
    "initiator": "self",
    "accept": "auto",
    "connection_id": "538f387a-91e2-49b7-9892-dbf7688ba5a7",
    "their_label": "AliceAgent"
  }
}
Sink: /topic/connections/ POST
JSON:
{
  "topic": "connections",
  "data": {
    "routing_state": "none",
    "state": "response",
    "invitation_mode": "once",
    "invitation_key": "5gHfSQJmmc6kJgfYJq49uN4Rn4ebMrpEva1tEDWD2Mwc",
    "updated_at": "2019-08-26 20:40:09.768822Z",
    "created_at": "2019-08-26 20:36:19.350923Z",
    "their_did": "JK7aKyr22cQ4B1tpeiT1ti",
    "initiator": "self",
    "my_did": "5jpjNPYVE1LpH6JRQgx5Qd",
    "accept": "auto",
    "connection_id": "538f387a-91e2-49b7-9892-dbf7688ba5a7",
    "their_label": "AliceAgent"
  }
}
Sink: /topic/connections/ POST
JSON:
{
  "topic": "connections",
  "data": {
    "routing_state": "none",
    "state": "active",
    "invitation_mode": "once",
    "invitation_key": "5gHfSQJmmc6kJgfYJq49uN4Rn4ebMrpEva1tEDWD2Mwc",
    "updated_at": "2019-08-26 20:40:09.901121Z",
    "created_at": "2019-08-26 20:36:19.350923Z",
    "their_did": "JK7aKyr22cQ4B1tpeiT1ti",
    "initiator": "self",
    "my_did": "5jpjNPYVE1LpH6JRQgx5Qd",
    "accept": "auto",
    "connection_id": "538f387a-91e2-49b7-9892-dbf7688ba5a7",
    "their_label": "AliceAgent"
  }
}

----------------
Connection Success
--------------

Faber: "connection_id": "538f387a-91e2-49b7-9892-dbf7688ba5a7"
Alice: "connection_id": "4193344d-c71b-4628-b582-2531feb1770e"


Looks like the wallet preserved the connection from last time since two active
connections

--------
Create Schema
------------

Swagger Faber
POST /schemas  Sends a schema to the ledger

{
  "schema_name": "string",
  "attributes": [
    "string"
  ],
  "schema_version": "string"
}


{
  "schema_name": "fabername",
  "schema_version": "0.1.0",
  "attributes": 
  [
    "name"
  ]
}

Response
{
  "schema_id": "KfoDwEpcJoNCdb6Akeeb9w:2:fabername:0.1.0"
}

schema_id is same as ledger transaction id

No Webhook events

Ledger

#15
Message Wrapper
Transaction ID: KfoDwEpcJoNCdb6Akeeb9w:2:fabername:0.1.0
Transaction time: 8/26/2019, 2:50:33 PM (1566852633)
Signed by: KfoDwEpcJoNCdb6Akeeb9w
Root hash: 8wYSjDWcGFL7WmUzxrogDKGmNwhjYN1bMT9Fgz9PGRaK
Audit path: 3SUQ7PPz1QJv1bDVTPcth3MijLRWuTDEdSf1Af7mPU2e, Buty8XtWwoUviCeqZLe9yNkuAvfG6Usd7cpExB7zn1b4, DNHM372JZJoGcxdHdmsj3QSSiomyeZux6ssJXxAJqyvd
Metadata
From nym: KfoDwEpcJoNCdb6Akeeb9w
Request ID: 1566852633000474000
Digest: aed9ad709ff4748fa944b9f706b6ffb94fda2425b9b65b8486a1c31a7facde9f
Transaction
Type: SCHEMA
Schema name: fabername
Schema version: 0.1.0
Schema attributes:
name
Raw Data 
{
  "auditPath": [
    "3SUQ7PPz1QJv1bDVTPcth3MijLRWuTDEdSf1Af7mPU2e",
    "Buty8XtWwoUviCeqZLe9yNkuAvfG6Usd7cpExB7zn1b4",
    "DNHM372JZJoGcxdHdmsj3QSSiomyeZux6ssJXxAJqyvd"
  ],
  "reqSignature": {
    "type": "ED25519",
    "values": [
      {
        "from": "KfoDwEpcJoNCdb6Akeeb9w",
        "value": "5bndEAFVWmszr1NH1xTgW2zyScyU8SvEFyv5diAwCQZu1i9buBRNAL9vYvoqByrPdJV1Bm8EGptmnV2btik2qSFf"
      }
    ]
  },
  "rootHash": "8wYSjDWcGFL7WmUzxrogDKGmNwhjYN1bMT9Fgz9PGRaK",
  "txn": {
    "data": {
      "data": {
        "attr_names": [
          "name"
        ],
        "name": "fabername",
        "version": "0.1.0"
      }
    },
    "metadata": {
      "digest": "aed9ad709ff4748fa944b9f706b6ffb94fda2425b9b65b8486a1c31a7facde9f",
      "from": "KfoDwEpcJoNCdb6Akeeb9w",
      "payloadDigest": "ba113c455ccb2968244c55be6268007e4588a59f016a93b2c6d3c16a037c918b",
      "reqId": 1566852633000474000
    },
    "protocolVersion": 2,
    "type": "101"
  },
  "txnMetadata": {
    "seqNo": 15,
    "txnId": "KfoDwEpcJoNCdb6Akeeb9w:2:fabername:0.1.0",
    "txnTime": 1566852633
  },
  "ver": "1"
}


---------
Register Credential Definition
----------

Faber
POST /credential-definitions   Sends a credential definition to the ledger

{
  "schema_id": "string"
}

Post Cred Def
{
    "schema_id": "KfoDwEpcJoNCdb6Akeeb9w:2:fabername:0.1.0"
}

    
Response 

{
  "credential_definition_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default"
}

Cred Def ID and ledger transaction id are the same

No webhook events

Ledger

#16
Message Wrapper
Transaction ID: 3avoBCqDMFHFaKUHug9s8W:3:CL:15:default
Transaction time: 8/26/2019, 2:55:10 PM (1566852910)
Signed by: 3avoBCqDMFHFaKUHug9s8W
Root hash: EsgWdgYfyvoKBhrTMMMwYSR9TkmyLzKe8mBr4sTYUG67
Audit path: 7Tuy1FXSZVnZzvoAXQtQt2zTdV7hW1SQ8SUT9QtttmmN, 3SUQ7PPz1QJv1bDVTPcth3MijLRWuTDEdSf1Af7mPU2e, Buty8XtWwoUviCeqZLe9yNkuAvfG6Usd7cpExB7zn1b4, DNHM372JZJoGcxdHdmsj3QSSiomyeZux6ssJXxAJqyvd
Metadata
From nym: 3avoBCqDMFHFaKUHug9s8W
Request ID: 1566852910163825000
Digest: 17bca1c453ba561ad32e4990c2cbf56d05a291513a96de4a09fbac11d6c9fe5f
Transaction
Type: CRED_DEF
Reference: 15
Signature type: CL
Tag: default
Attributes:
master_secret
name
Raw Data 
{
  "auditPath": [
    "7Tuy1FXSZVnZzvoAXQtQt2zTdV7hW1SQ8SUT9QtttmmN",
    "3SUQ7PPz1QJv1bDVTPcth3MijLRWuTDEdSf1Af7mPU2e",
    "Buty8XtWwoUviCeqZLe9yNkuAvfG6Usd7cpExB7zn1b4",
    "DNHM372JZJoGcxdHdmsj3QSSiomyeZux6ssJXxAJqyvd"
  ],
  "reqSignature": {
    "type": "ED25519",
    "values": [
      {
        "from": "3avoBCqDMFHFaKUHug9s8W",
        "value": "4hyG61JwDTgEg9Mamsw14vr84PNxZ4TnV8bHoHoNK6bwPUfxBRph483PFn4yARtJ6R5VZpsaNNHq2DBxDZFMHDba"
      }
    ]
  },
  "rootHash": "EsgWdgYfyvoKBhrTMMMwYSR9TkmyLzKe8mBr4sTYUG67",
  "txn": {
    "data": {
      "data": {
        "primary": {
          "n": "103683558263804371480333775906833789599774205874746897841611087238331498759113352612536355097153641239378647440407873043260086374173939286704080345842342837216564897516504314731812724638100773252467608434907565697577238628224270376738086779947074754918226875104605897836077558172289573864633513056841766718729131661489313691494149573976602836817523503100608695990538550062986064692653869382789993336370977831751396768187350516652120969594087401497194367131666542050832541116852258434184763764304099166962851279868982484744049261254498874675122596213192000798089938983135077269489437526318752653370398687586653912317917",
          "r": {
            "master_secret": "20058644457480476909366195109052187967752877766023239786395198772049825187367612889649236262836350888985922536840066640232947613646700568229527984698030765893517701755988672843866924639742439298873589315986028103324752800148255556505812828867781440407716109759231788990864770065678835907879481158713695835196651909922135325117483999611518808596291632537027890650492220403567094100555601954589448121101589857805484492124718543792466275892143030785037918577454963135008900012498025730518943569745647185080797756325191499403763183864097544871362639995598696079448909051763366761909483287077690143653267945204951687403319",
            "name": "101541587487317699358006173089239918980813782251626906628971899046055937192898528317509322408823804160947097575414757431717283511801024270590677334062282683062491420528786176327304236656563521408017964307368195483493408508675375160473395345986029033790609945750782892090349934423675873247767887457958219600786575993546247578253166881524236727768538715413501200200095488446172330302642971817252831684400198702675340151186780041071381935496568094561665472254004805214613449662370347987405778348334545345216659728732893579386525033094405974420075318849203285287586820611890200472261025173812106926037498712717562839713812"
          },
          "rctxt": "46477230569176432560673209159444545848466968272377757926858221693494060475883085797770431985854703221324728472332701492032840529153372050478107185408538745236272077810412971640416565591789138527252383661709091126674562941920582970807347312429725566815133352945015811910433936349427565996556843346538431777266633440716567844371714359513259717152732129549963226471482891895759833408465443475060009682962773345347952940784243581627808336847810328122400843658944711317908411322410412503719470793189845979107315381711112820007096686134153529668034660814896745482582485488486426178986505775988249220244965380091251846555143",
          "s": "20828339001945202990856308094662850174567836462341384867063450998097523651810734709920420296655205720666433575163960961766866168660350004835519661005557367774366580453016722320368919917104578221457380945762527909851964051585936439208154733686043400036283877435517688458471186108272399726969119082716027299505969816783444673916047045566960485310374693263159042303254885092819694299056727658779616693245504829076092127412143239308542043855949188256197757851469484809120674077771594267960550839363468328862608495776028474753814386025287367524061807601190797374318549228497387681280629369087575698831514905349597739444882",
          "z": "98966767137079696580456385093658840055890096797382371195035198164046791873203258984520327754689831544805343622723768758052933255367633665755062647767059697218386913137905172489539114214340735085436988264125082784416899809455389953648270627343502164714352695628778868430973351133172620075445445160770977909062523124329695625464676063020552681727199695921967703401566178013596211868105597661740630396215315618466654378793095113056207336140627194449110186617747077926385382562653134007461011154765506767620478292053822548974245217830550091009714983853334838008922506255144339086405932330281897451487901723101142182549394"
        }
      },
      "ref": 15,
      "signature_type": "CL",
      "tag": "default"
    },
    "metadata": {
      "digest": "17bca1c453ba561ad32e4990c2cbf56d05a291513a96de4a09fbac11d6c9fe5f",
      "from": "3avoBCqDMFHFaKUHug9s8W",
      "payloadDigest": "6550c9d3b95322a24ac86d0fc269c991f7c61cc1f0bb1226117003fe27371660",
      "reqId": 1566852910163825000
    },
    "protocolVersion": 2,
    "type": "102"
  },
  "txnMetadata": {
    "seqNo": 16,
    "txnId": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default",
    "txnTime": 1566852910
  },
  "ver": "1"
}


Notes

OK, the one time setup work for issuing a credential complete. 
We can now issue 1 or a million credentials without having to do those steps again. 
Astute readers might note that we did not setup a revocation registry, 
so we cannot revoke the credentials we issue with that credential definition. 
You can’t have everything in an easy demo (and we’re still working on enabling that).



-------------
Issue Credential
------------
Faber

POST /credential_exchange/send    Sends a credential and automates the entire flow

{
  "connection_id": "538f387a-91e2-49b7-9892-dbf7688ba5a7",
  "credential_definition_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default",
  "credential_values": {"name": "Alice Jones"}
}

Response
{
  "created_at": "2019-08-26 21:35:58.557709Z",
  "credential_exchange_id": "81eccbed-6803-451c-951d-2d135dfa3741",
  "schema_id": "KfoDwEpcJoNCdb6Akeeb9w:2:fabername:0.1.0",
  "connection_id": "538f387a-91e2-49b7-9892-dbf7688ba5a7",
  "state": "offer_sent",
  "updated_at": "2019-08-26 21:35:58.557709Z",
  "auto_issue": true,
  "credential_offer": {
    "schema_id": "KfoDwEpcJoNCdb6Akeeb9w:2:fabername:0.1.0",
    "cred_def_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default",
    "key_correctness_proof": {
      "c": "105835522100817049279115890207661235959813861417542347921955016516499698460408",
      "xz_cap": "1638410429849068989186889886329186415503237595966138239326684715522306176939330430422962672635868280243364686157095845946855029759003202229849823369549672435347542347310116363153191778701074666549590622528565922643845459639346822272507202221265812273915276087838802367593814067319456174951725981285465872668804098254211976860311382669285349578818157199002875666800666446356669413162433033247577238934208937963747304444128697891906485633917779181097180891193813187210430415208454609002515583887914364332380562008017400911109748458911158043146375046496669294969933051875073198539080944750906007049541876256606442615972630798553606560575292682889278021859167231774358807663808872220996947800248293",
      "xr_cap": [
        [
          "name",
          "2212790099987316622238013756877890508925740303728480902368255518679851241809667621080863637673008984010614955985128137614148029684347689909707459907916556309387654059359756426736719874522005004401570478975779268727068856001949706361437011734013562874452334026853232737603867894422839993244385280894108080889803897004184189576923382136916690773564610387645194831063163142042547339599531122132647978380751598647968385685317726686690041015652465761427098912576022207624349768618863904006182443979006705174714444653030564823500671060909130107714013704425173107572488111362933172177878848614750711559544670198377925828197026625719050934813362114960044632184060631909610360647839650091257314984066087"
        ],
        [
          "master_secret",
          "440045062106029681289316032592875758739070795133528029791351804720090360444954389456368947483772178089013920510857183982992020677726662859633322071465468507383499119294357282369486426242251668786234577534494997180652712914791113032475116902356157270058421024986428917457678911888755160380647906835082778219542124218396960761707604194634835759159383200675778077130054953252195233963123672931101402388749963521771132602208729355867271159447477045600628092315007652059906062486276195651768995377953917119405617168714035214672845120759894295600738759112884548057562897308431153679656007198628335401693943981265208995512239809273639959907992194511192024716589689281515003980601784440092947703579012"
        ]
      ]
    },
    "nonce": "900640897750233209326279"
  },
  "credential_values": {
    "name": "Alice Jones"
  },
  "initiator": "self",
  "credential_definition_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default"
}

Webhook Events

Sink: /topic/credentials/ POST
JSON:
{
  "topic": "credentials",
  "data": {
    "created_at": "2019-08-26 21:35:58.557709Z",
    "credential_exchange_id": "81eccbed-6803-451c-951d-2d135dfa3741",
    "schema_id": "KfoDwEpcJoNCdb6Akeeb9w:2:fabername:0.1.0",
    "connection_id": "538f387a-91e2-49b7-9892-dbf7688ba5a7",
    "state": "offer_sent",
    "updated_at": "2019-08-26 21:35:58.557709Z",
    "auto_issue": true,
    "credential_offer": {
      "schema_id": "KfoDwEpcJoNCdb6Akeeb9w:2:fabername:0.1.0",
      "cred_def_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default",
      "key_correctness_proof": {
        "c": "105835522100817049279115890207661235959813861417542347921955016516499698460408",
        "xz_cap": "1638410429849068989186889886329186415503237595966138239326684715522306176939330430422962672635868280243364686157095845946855029759003202229849823369549672435347542347310116363153191778701074666549590622528565922643845459639346822272507202221265812273915276087838802367593814067319456174951725981285465872668804098254211976860311382669285349578818157199002875666800666446356669413162433033247577238934208937963747304444128697891906485633917779181097180891193813187210430415208454609002515583887914364332380562008017400911109748458911158043146375046496669294969933051875073198539080944750906007049541876256606442615972630798553606560575292682889278021859167231774358807663808872220996947800248293",
        "xr_cap": [
          [
            "name",
            "2212790099987316622238013756877890508925740303728480902368255518679851241809667621080863637673008984010614955985128137614148029684347689909707459907916556309387654059359756426736719874522005004401570478975779268727068856001949706361437011734013562874452334026853232737603867894422839993244385280894108080889803897004184189576923382136916690773564610387645194831063163142042547339599531122132647978380751598647968385685317726686690041015652465761427098912576022207624349768618863904006182443979006705174714444653030564823500671060909130107714013704425173107572488111362933172177878848614750711559544670198377925828197026625719050934813362114960044632184060631909610360647839650091257314984066087"
          ],
          [
            "master_secret",
            "440045062106029681289316032592875758739070795133528029791351804720090360444954389456368947483772178089013920510857183982992020677726662859633322071465468507383499119294357282369486426242251668786234577534494997180652712914791113032475116902356157270058421024986428917457678911888755160380647906835082778219542124218396960761707604194634835759159383200675778077130054953252195233963123672931101402388749963521771132602208729355867271159447477045600628092315007652059906062486276195651768995377953917119405617168714035214672845120759894295600738759112884548057562897308431153679656007198628335401693943981265208995512239809273639959907992194511192024716589689281515003980601784440092947703579012"
          ]
        ]
      },
      "nonce": "900640897750233209326279"
    },
    "credential_values": {
      "name": "Alice Jones"
    },
    "initiator": "self",
    "credential_definition_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default"
  }
}

Sink: /topic/credentials/ POST
JSON:
{
  "topic": "credentials",
  "data": {
    "thread_id": "44be94e4-32a4-4715-a6bc-cf50b83962b8",
    "created_at": "2019-08-26 21:35:58.557709Z",
    "credential_exchange_id": "81eccbed-6803-451c-951d-2d135dfa3741",
    "schema_id": "KfoDwEpcJoNCdb6Akeeb9w:2:fabername:0.1.0",
    "connection_id": "538f387a-91e2-49b7-9892-dbf7688ba5a7",
    "state": "request_received",
    "credential_request": {
      "prover_did": "JK7aKyr22cQ4B1tpeiT1ti",
      "cred_def_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default",
      "blinded_ms": {
        "u": "87977274422539756428398982152728763967893378490006466225005855032942648512938822253250702184631882523244693106670115136142657749341726739772658141274590035020488132310818048108353881020878546516756570331272390215787799759624429815215694077562257816280569482195263947843471288201481133127530084281220942280813295820912079690821560028470845046767585870324398132613815123815530474164869996711042845753699803357910318111923905797852158413258982451476240768118366183265632401244115244885765335477116828891421996558140867590856259951996573473784531856255525756090581992718536599573735840481867113853395345170865228762324835",
        "ur": null,
        "hidden_attributes": [
          "master_secret"
        ],
        "committed_attributes": {}
      },
      "blinded_ms_correctness_proof": {
        "c": "49435512587065793629029630268067773083513338057308769910118748103464837582333",
        "v_dash_cap": "741822394987849785886893311754754149432987755587430658567742785646057402484381771541051410041424940929004734674471037096919494294178501330916858867416673532521650255259131362392803027344216661344786412967758110132285080019467198015470008749324051576142594938303672969778983852301746176845443041531660608634752896345707503415733368334890216862364395352030316895934068784729822275540296807759288460522394825101736509515172000112562569083495718641609115894113006187619595183414276880186182120863919263320710213731219210964271556970553633458496842183281962643828400331734815618512332206345080615112113133994447453463033556814884711033928346854818082016875288233317250277002714876640561543013559917353502168361166117072868",
        "m_caps": {
          "master_secret": "31929071113725263560251983491985858095828236643251796661049974490467719473103363424624040611064816374369877539864245835049065504041635407162549607101593500916708499389926485993570"
        },
        "r_caps": {}
      },
      "nonce": "492380915769852717212514"
    },
    "updated_at": "2019-08-26 21:35:59.242522Z",
    "auto_issue": true,
    "credential_offer": {
      "schema_id": "KfoDwEpcJoNCdb6Akeeb9w:2:fabername:0.1.0",
      "cred_def_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default",
      "key_correctness_proof": {
        "c": "105835522100817049279115890207661235959813861417542347921955016516499698460408",
        "xz_cap": "1638410429849068989186889886329186415503237595966138239326684715522306176939330430422962672635868280243364686157095845946855029759003202229849823369549672435347542347310116363153191778701074666549590622528565922643845459639346822272507202221265812273915276087838802367593814067319456174951725981285465872668804098254211976860311382669285349578818157199002875666800666446356669413162433033247577238934208937963747304444128697891906485633917779181097180891193813187210430415208454609002515583887914364332380562008017400911109748458911158043146375046496669294969933051875073198539080944750906007049541876256606442615972630798553606560575292682889278021859167231774358807663808872220996947800248293",
        "xr_cap": [
          [
            "name",
            "2212790099987316622238013756877890508925740303728480902368255518679851241809667621080863637673008984010614955985128137614148029684347689909707459907916556309387654059359756426736719874522005004401570478975779268727068856001949706361437011734013562874452334026853232737603867894422839993244385280894108080889803897004184189576923382136916690773564610387645194831063163142042547339599531122132647978380751598647968385685317726686690041015652465761427098912576022207624349768618863904006182443979006705174714444653030564823500671060909130107714013704425173107572488111362933172177878848614750711559544670198377925828197026625719050934813362114960044632184060631909610360647839650091257314984066087"
          ],
          [
            "master_secret",
            "440045062106029681289316032592875758739070795133528029791351804720090360444954389456368947483772178089013920510857183982992020677726662859633322071465468507383499119294357282369486426242251668786234577534494997180652712914791113032475116902356157270058421024986428917457678911888755160380647906835082778219542124218396960761707604194634835759159383200675778077130054953252195233963123672931101402388749963521771132602208729355867271159447477045600628092315007652059906062486276195651768995377953917119405617168714035214672845120759894295600738759112884548057562897308431153679656007198628335401693943981265208995512239809273639959907992194511192024716589689281515003980601784440092947703579012"
          ]
        ]
      },
      "nonce": "900640897750233209326279"
    },
    "credential_values": {
      "name": "Alice Jones"
    },
    "initiator": "self",
    "credential_definition_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default"
  }
}

Sink: /topic/credentials/ POST
JSON:
{
  "topic": "credentials",
  "data": {
    "thread_id": "44be94e4-32a4-4715-a6bc-cf50b83962b8",
    "created_at": "2019-08-26 21:35:58.557709Z",
    "credential_exchange_id": "81eccbed-6803-451c-951d-2d135dfa3741",
    "schema_id": "KfoDwEpcJoNCdb6Akeeb9w:2:fabername:0.1.0",
    "connection_id": "538f387a-91e2-49b7-9892-dbf7688ba5a7",
    "state": "issued",
    "credential_request": {
      "prover_did": "JK7aKyr22cQ4B1tpeiT1ti",
      "cred_def_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default",
      "blinded_ms": {
        "u": "87977274422539756428398982152728763967893378490006466225005855032942648512938822253250702184631882523244693106670115136142657749341726739772658141274590035020488132310818048108353881020878546516756570331272390215787799759624429815215694077562257816280569482195263947843471288201481133127530084281220942280813295820912079690821560028470845046767585870324398132613815123815530474164869996711042845753699803357910318111923905797852158413258982451476240768118366183265632401244115244885765335477116828891421996558140867590856259951996573473784531856255525756090581992718536599573735840481867113853395345170865228762324835",
        "ur": null,
        "hidden_attributes": [
          "master_secret"
        ],
        "committed_attributes": {}
      },
      "blinded_ms_correctness_proof": {
        "c": "49435512587065793629029630268067773083513338057308769910118748103464837582333",
        "v_dash_cap": "741822394987849785886893311754754149432987755587430658567742785646057402484381771541051410041424940929004734674471037096919494294178501330916858867416673532521650255259131362392803027344216661344786412967758110132285080019467198015470008749324051576142594938303672969778983852301746176845443041531660608634752896345707503415733368334890216862364395352030316895934068784729822275540296807759288460522394825101736509515172000112562569083495718641609115894113006187619595183414276880186182120863919263320710213731219210964271556970553633458496842183281962643828400331734815618512332206345080615112113133994447453463033556814884711033928346854818082016875288233317250277002714876640561543013559917353502168361166117072868",
        "m_caps": {
          "master_secret": "31929071113725263560251983491985858095828236643251796661049974490467719473103363424624040611064816374369877539864245835049065504041635407162549607101593500916708499389926485993570"
        },
        "r_caps": {}
      },
      "nonce": "492380915769852717212514"
    },
    "updated_at": "2019-08-26 21:35:59.775438Z",
    "auto_issue": true,
    "credential": {
      "schema_id": "KfoDwEpcJoNCdb6Akeeb9w:2:fabername:0.1.0",
      "cred_def_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default",
      "rev_reg_id": null,
      "values": {
        "name": {
          "raw": "Alice Jones",
          "encoded": "72896232743708443677449555551687504476536417389324439453514323796296385992918"
        }
      },
      "signature": {
        "p_credential": {
          "m_2": "6180689762572968608932465894423098355754959241756463768475942046517539739855",
          "a": "86060852769532842380497801598095654686003325041750075923342476995838075615469598973164619536740139764689698352872397937911427425319328434268065281024807732843140910619689452678149546220785492103586388521387055615735089437305499477250667440918073813695021533895226046763533810528405195638361326280664935729386012344421678313616618764596696672764327620393070318988223388544520533047611216135550884674558908552071245563842572871874340046403243669715187597296674574382111287875611747526809738043673821026832155359643563594948612932648127212096948020715660958291146456718709555679244380685880266626174697508978718707861987",
          "e": "259344723055062059907025491480697571938277889515152306249728583105665800713306759149981690559193987143012367913206299323899696942213235956742929855506033458324635439651833554242037",
          "v": "6528411053893512829591104122840017435819198426081713889047960501885949013036667325861182567925708162880267254653202772933712789148286281166880914071696742669928485740894239686134280982185623756474146606421007240010244982217345743883019718832853003700287306269048496697311180566522883236369497966665149708420746085602879925483484786578579215909534168911190507033791858158025896767350409132776107737074833016975347543958236253718208731246677305143359068457139350329311558477705994011507444693438461297979856794667570599615589210167072353011842415902630152484863849306931387676255713998272940235730057936781286229268114117056721691994181489802521121494906790410521085395782020875444396116726764323743949118266336008396555690989794036850113402118912903924758129049993841667914291224623398139638114347716152401852654212975513"
        },
        "r_credential": null
      },
      "signature_correctness_proof": {
        "se": "7389101072849649824454671619934481206390408696172374776706132130830852505553777512621699224128585982066510652760350841585818494845565804185005032215728058013772053943380233596885789458174438430377660746079601697197992642202346397877890266334362420122097081087341631407919368902425398528797169890796752573579141783677492332582564917048795536081179768030204759284466513976418502580400829233573757872665015674641498269039709463314850619314971639460384249395359527219174233919940848883500891384270224135664374739575068970646003005767851429127501212816039832039983072204772684186909722582028934222526812450725827815967735",
        "c": "72514346210534670489440934429267714141473882452528609952871165388629684123215"
      },
      "rev_reg": null,
      "witness": null
    },
    "credential_offer": {
      "schema_id": "KfoDwEpcJoNCdb6Akeeb9w:2:fabername:0.1.0",
      "cred_def_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default",
      "key_correctness_proof": {
        "c": "105835522100817049279115890207661235959813861417542347921955016516499698460408",
        "xz_cap": "1638410429849068989186889886329186415503237595966138239326684715522306176939330430422962672635868280243364686157095845946855029759003202229849823369549672435347542347310116363153191778701074666549590622528565922643845459639346822272507202221265812273915276087838802367593814067319456174951725981285465872668804098254211976860311382669285349578818157199002875666800666446356669413162433033247577238934208937963747304444128697891906485633917779181097180891193813187210430415208454609002515583887914364332380562008017400911109748458911158043146375046496669294969933051875073198539080944750906007049541876256606442615972630798553606560575292682889278021859167231774358807663808872220996947800248293",
        "xr_cap": [
          [
            "name",
            "2212790099987316622238013756877890508925740303728480902368255518679851241809667621080863637673008984010614955985128137614148029684347689909707459907916556309387654059359756426736719874522005004401570478975779268727068856001949706361437011734013562874452334026853232737603867894422839993244385280894108080889803897004184189576923382136916690773564610387645194831063163142042547339599531122132647978380751598647968385685317726686690041015652465761427098912576022207624349768618863904006182443979006705174714444653030564823500671060909130107714013704425173107572488111362933172177878848614750711559544670198377925828197026625719050934813362114960044632184060631909610360647839650091257314984066087"
          ],
          [
            "master_secret",
            "440045062106029681289316032592875758739070795133528029791351804720090360444954389456368947483772178089013920510857183982992020677726662859633322071465468507383499119294357282369486426242251668786234577534494997180652712914791113032475116902356157270058421024986428917457678911888755160380647906835082778219542124218396960761707604194634835759159383200675778077130054953252195233963123672931101402388749963521771132602208729355867271159447477045600628092315007652059906062486276195651768995377953917119405617168714035214672845120759894295600738759112884548057562897308431153679656007198628335401693943981265208995512239809273639959907992194511192024716589689281515003980601784440092947703579012"
          ]
        ]
      },
      "nonce": "900640897750233209326279"
    },
    "credential_values": {
      "name": "Alice Jones"
    },
    "initiator": "self",
    "credential_definition_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default"
  }
}

Alice
Get /credentials
{
  "results": [
    {
      "referent": "a38248ab-f2e9-47f5-a5e7-ac475ea06b35",
      "attrs": {
        "name": "Alice Jones"
      },
      "schema_id": "3avoBCqDMFHFaKUHug9s8W:2:faber:0.1.0",
      "cred_def_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:13:default",
      "rev_reg_id": null,
      "cred_rev_id": null
    }
  ]
}

------------
Requesting Proof
--------------

Faber request presentation (proof) of credential from Alice
Alice presents (proof) of credential to Faber

Alice now has her Faber credential. Let’s have the Faber agent send a request 
for a presentation (a proof) using that credential. 
This should be pretty easy for you at this point.

From the Faber browser tab, get ready to execute the 
 endpoint. Replace the pre-populated text with the following. 
 In doing so, use the techniques we used in issuing the credential 
 to replace the string values for each instance of cred_def_id (there are three) 
 and connection_id.
 

Faber
POST /presentation_exchange/send_request


{  
  "connection_id": "538f387a-91e2-49b7-9892-dbf7688ba5a7",
  "version": "1.0.0",
  "name": "Proof of Name",
  "requested_attributes": 
  [
    {
      "name": "Alice Jones",
      "restrictions": 
      [
        {"cred_def_id" : "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default"}
      ]
    }
  ],
  "requested_predicates": 
  [

  ]
}


Response

{
  "state": "request_sent",
  "thread_id": "b16296d0-b9e3-47d6-919b-83c76030df9f",
  "presentation_request": {
    "name": "Proof of Name",
    "version": "1.0.0",
    "nonce": "43920717856735666242804213433487724698",
    "requested_attributes": {
      "15f10ee1-2dbb-45c6-b25b-b3e5e4c37647": {
        "name": "Alice Jones",
        "restrictions": [
          {
            "cred_def_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default"
          }
        ]
      }
    },
    "requested_predicates": {}
  },
  "updated_at": "2019-08-26 21:53:56.764847Z",
  "created_at": "2019-08-26 21:53:56.764847Z",
  "initiator": "self",
  "connection_id": "538f387a-91e2-49b7-9892-dbf7688ba5a7",
  "presentation_exchange_id": "afbc0823-fdfb-42c7-b3a5-d4b3eb9c7d1f"
}

Webhook events
Sink: /topic/presentations/ POST
JSON:
{
  "topic": "presentations",
  "data": {
    "state": "request_sent",
    "thread_id": "b16296d0-b9e3-47d6-919b-83c76030df9f",
    "presentation_request": {
      "name": "Proof of Name",
      "version": "1.0.0",
      "nonce": "43920717856735666242804213433487724698",
      "requested_attributes": {
        "15f10ee1-2dbb-45c6-b25b-b3e5e4c37647": {
          "name": "Alice Jones",
          "restrictions": [
            {
              "cred_def_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default"
            }
          ]
        }
      },
      "requested_predicates": {}
    },
    "updated_at": "2019-08-26 21:53:56.764847Z",
    "created_at": "2019-08-26 21:53:56.764847Z",
    "initiator": "self",
    "connection_id": "538f387a-91e2-49b7-9892-dbf7688ba5a7",
    "presentation_exchange_id": "afbc0823-fdfb-42c7-b3a5-d4b3eb9c7d1f"
  }
}

presentation_exchange_id = afbc0823-fdfb-42c7-b3a5-d4b3eb9c7d1f

Note that in the response, the state is request_sent. 
That is because when the HTTP response was generated 
(immediately after sending the request), Alice’s agent had not yet responded 
to the request. We’ll have to do another request to verify the presentation worked. 
Copy the value of the presentation_exchange_id field from the response and 
use it in executing the GET /presentation_exchange/{id} endpoint. 
That should return a result showing a status of verified. Proof positive!

-----------
Verify Presentation request
----------
Faber

GET /presentation_exchange/{id}   Fetch a single presentation exchange record

afbc0823-fdfb-42c7-b3a5-d4b3eb9c7d1f


Response

{
  "state": "request_sent",
  "thread_id": "b16296d0-b9e3-47d6-919b-83c76030df9f",
  "presentation_request": {
    "name": "Proof of Name",
    "version": "1.0.0",
    "nonce": "43920717856735666242804213433487724698",
    "requested_attributes": {
      "15f10ee1-2dbb-45c6-b25b-b3e5e4c37647": {
        "name": "Alice Jones",
        "restrictions": [
          {
            "cred_def_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default"
          }
        ]
      }
    },
    "requested_predicates": {}
  },
  "updated_at": "2019-08-26 21:53:56.764847Z",
  "created_at": "2019-08-26 21:53:56.764847Z",
  "initiator": "self",
  "connection_id": "538f387a-91e2-49b7-9892-dbf7688ba5a7",
  "presentation_exchange_id": "afbc0823-fdfb-42c7-b3a5-d4b3eb9c7d1f"
}

No Webhook events


Notes

As with the issue credential process, the agents handled some of the 
presentation steps without bothering the controller. 
In this case, Alice’s agent processed the presentation request automatically 
because it was started with the --auto-respond-presentation-request parameter set, 
and her wallet contained exactly one credential that satisfied the 
presentation-request from the Faber agent. Similarly, the Faber agent was 
started with the --auto-verify-presentation parameter and so on receipt of 
the presentation, it verified the presentation and updated the status accordingly.

This fails each time state is not changed

Alice

GET /presentation_exchange Fetch all presentation exchange records

{
  "results": [
    {
      "state": "request_received",
      "presentation_exchange_id": "d59b3d59-c8c2-41b1-a0dc-e59f76db255b",
      "presentation_request": {
        "name": "faber",
        "version": "0.1.0",
        "nonce": "229616456018769739853239541551604309973",
        "requested_attributes": {
          "6a7ddfb6-c52c-4bee-b0b4-6d3bf5b87b5c": {
            "name": "name",
            "restrictions": [
              {
                "cred_def_id": "3avoBCqDMFHFaKUHug9s8W:2:faber:0.1.0"
              }
            ]
          }
        },
        "requested_predicates": {
          "333ba7b1-7b8b-4c02-ae50-b3852f650f31": {}
        }
      },
      "thread_id": "eaa8c7e1-1982-4d2f-a0bb-a828bcc08f9b",
      "connection_id": "1a87156b-1ccc-49f9-b553-4ec70c3fe22b",
      "initiator": "external"
    },
    {
      "created_at": "2019-08-26 21:53:56.820394Z",
      "state": "request_received",
      "presentation_exchange_id": "262fa664-b50d-4c8c-b5b8-305683292884",
      "updated_at": "2019-08-26 21:53:56.820394Z",
      "presentation_request": {
        "name": "Proof of Name",
        "version": "1.0.0",
        "nonce": "43920717856735666242804213433487724698",
        "requested_attributes": {
          "15f10ee1-2dbb-45c6-b25b-b3e5e4c37647": {
            "name": "Alice Jones",
            "restrictions": [
              {
                "cred_def_id": "3avoBCqDMFHFaKUHug9s8W:3:CL:15:default"
              }
            ]
          }
        },
        "requested_predicates": {}
      },
      "thread_id": "b16296d0-b9e3-47d6-919b-83c76030df9f",
      "connection_id": "4193344d-c71b-4628-b582-2531feb1770e",
      "initiator": "external"
    }
  ]
}




About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 45 (14 by maintainers)

Most upvoted comments