Skip to content

Instantly share code, notes, and snippets.

@csuwildcat
Last active May 23, 2023 16:42
Show Gist options
  • Save csuwildcat/1b886122e7204bf6ebdb898a81eb69c8 to your computer and use it in GitHub Desktop.
Save csuwildcat/1b886122e7204bf6ebdb898a81eb69c8 to your computer and use it in GitHub Desktop.
{
"interface": "Protocols"
"method": "Configure",
"definition": {
"protocol": "https://tbd.website/protocols/tbdex",
"types": {
"request": {
"schema": "https://tbd.website/protocols/tbdex/RequestForQuote",
"dataFormat": [
"application/json"
]
},
"quote": {
"schema": "https://tbd.website/protocols/tbdex/Quote",
"dataFormat": [
"application/json"
]
},
"accept": {
"schema": "https://tbd.website/protocols/tbdex/Accept",
"dataFormat": [
"application/json"
]
},
"paymentRequest": {
"schema": "https://tbd.website/protocols/tbdex/PaymentRequest",
"dataFormat": [
"application/json"
]
},
"paymentReceipt": {
"schema": "https://tbd.website/protocols/tbdex/PaymentReceipt",
"dataFormat": [
"application/json"
]
},
"close": {
"schema": "https://tbd.website/protocols/tbdex/Close",
"dataFormat": [
"application/json"
]
}
},
"structure": {
"request": {
"$encryption": "required",
"$actions": [
{
"who": "anyone",
"to": "create"
}
],
"close": {
"$encryption": "required",
"$actions": [
{
"who": "participants",
"to": "create"
}
]
},
"quote": {
"$encryption": "required",
"$actions": [
{
"who": "recipient",
"of": "request",
"to": "create"
}
],
"accept": {
"$encryption": "required",
"$actions": [
{
"who": "author",
"of": "request",
"to": "create"
}
],
"paymentRequest": {
"$encryption": "required",
"$actions": [
{
"who": "author",
"of": "request",
"to": "create"
}
]
"PaymentReceipt": {
"$encryption": "required",
"$actions": [
{
"who": "author",
"of": "request",
"to": "create"
}
]
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment