Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Fix RFQ example field vcs -> claims (#197)
Browse files Browse the repository at this point in the history
* Fix RFQ example field vcs -> claims

* Use private field in RFQ example
  • Loading branch information
Diane Huxley authored Dec 5, 2023
1 parent feeb568 commit dc92fda
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions specs/protocol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ The value of `private` **MUST** be a JSON object that matches the structure of `
"data": {
"offeringId": <OFFERING_ID>,
"payoutSubunits": "STR_VALUE",
"vcs": <PRESENTATION_SUBMISSION_HASH>, <---- hash
"claims": <PRESENTATION_SUBMISSION_HASH>, <---- hash
"payinMethod": {
"kind": "BTC_ADDRESS",
"paymentDetails": <OBJ_HASH> <---- hash
Expand All @@ -289,7 +289,7 @@ The value of `private` **MUST** be a JSON object that matches the structure of `
}
},
"private": {
"vcs": <PRESENTATION_SUBMISSION>, <---- actual
"claims": <PRESENTATION_SUBMISSION>, <---- actual
"payinMethod": {
"paymentDetails": <OBJ> <---- actual
},
Expand Down Expand Up @@ -345,6 +345,19 @@ See [here](#digests) for more details
"offeringId": "abcd123",
"payinMethod": {
"kind": "DEBIT_CARD",
"paymentDetails": "<HASH_PRIVATE_PAYIN_METHOD_PAYMENT_DETAILS>"
},
"payoutMethod": {
"kind": "BTC_ADDRESS",
"paymentDetails": "<HASH_PRIVATE_PAYOUT_METHOD_PAYMENT_DETAILS>"
},
"payinSubunits": "20000",
"claims": [
"<HASH_PRIVATE_CLAIMS_0>"
]
},
"private": {
"payinMethod": {
"paymentDetails": {
"cardNumber": "1234567890123456",
"expiryDate": "12/22",
Expand All @@ -353,12 +366,10 @@ See [here](#digests) for more details
}
},
"payoutMethod": {
"kind": "BTC_ADDRESS",
"paymentDetails": {
"btcAddress": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
}
},
"payinSubunits": "20000",
"claims": [
"eyJhbGciOiJFZERTQSJ9.eyJpc3MiOiJkaWQ6a2V5Ono2TWtzNE41WGRyRTZWaWVKc2dIOFNNU1Jhdm1Ub3g3NFJxb3JvVzdiWnpCTFFCaSIsInN1YiI6ImRpZDprZXk6ejZNa3M0TjVYZHJFNlZpZUpzZ0g4U01TUmF2bVRveDc0UnFvcm9XN2JaekJMUUJpIiwidmMiOnsiQGNvbnRleHQiOlsiaHR0cHM6Ly93d3cudzMub3JnLzIwMTgvY3JlZGVudGlhbHMvdjEiXSwiaWQiOiIxNjk0NjM2MzY4NDI5IiwidHlwZSI6IllvbG9DcmVkZW50aWFsIiwiaXNzdWVyIjoiZGlkOmtleTp6Nk1rczRONVhkckU2VmllSnNnSDhTTVNSYXZtVG94NzRScW9yb1c3Ylp6QkxRQmkiLCJpc3N1YW5jZURhdGUiOiIyMDIzLTA5LTEzVDIwOjE5OjI4LjQyOVoiLCJjcmVkZW50aWFsU3ViamVjdCI6eyJpZCI6ImRpZDprZXk6ejZNa3M0TjVYZHJFNlZpZUpzZ0g4U01TUmF2bVRveDc0UnFvcm9XN2JaekJMUUJpIiwiYmVlcCI6ImJvb3AifX19.cejevPPHPGhajd1oP4nfLpxRMKm801BzPdqjm9pQikaMEnh1WZXrap2j_kALZN_PCUddNtW1R_YY18UoERRJBw"
]
Expand Down

0 comments on commit dc92fda

Please sign in to comment.