mirror of
https://github.com/Such-Software/adaptive-multi-protocol-gateway.git
synced 2026-10-17 07:31:32 +02:00
Add signed service manifest contract
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"payload": {
|
||||
"api": {
|
||||
"contract": "amp.example.customer-api",
|
||||
"schema_sha256": "1111111111111111111111111111111111111111111111111111111111111111",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"expires_at": "2036-01-01T00:00:00Z",
|
||||
"issued_at": "2026-01-01T00:00:00Z",
|
||||
"name": "AMP Service Manifest Golden Fixture",
|
||||
"root_public_key": "f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9",
|
||||
"routes": [
|
||||
{
|
||||
"auth": [
|
||||
"nip98"
|
||||
],
|
||||
"capabilities": [
|
||||
"catalog.read",
|
||||
"job.submit",
|
||||
"job.status"
|
||||
],
|
||||
"context": "clearnet",
|
||||
"endpoint": "https://ampgateway.site/",
|
||||
"interaction_tier": "transactional",
|
||||
"payments": [
|
||||
"server-invoice"
|
||||
],
|
||||
"priority": 10,
|
||||
"transport": "clearnet"
|
||||
},
|
||||
{
|
||||
"auth": [
|
||||
"nip98"
|
||||
],
|
||||
"capabilities": [
|
||||
"catalog.read",
|
||||
"job.submit",
|
||||
"job.status"
|
||||
],
|
||||
"context": "tor",
|
||||
"endpoint": "http://fy2zosxp4oqqcacxcegvwshtmsiiyztnwoinbm46yoig4o3kveidotyd.onion/",
|
||||
"interaction_tier": "transactional",
|
||||
"payments": [
|
||||
"server-invoice"
|
||||
],
|
||||
"priority": 20,
|
||||
"transport": "tor"
|
||||
}
|
||||
],
|
||||
"sequence": 1,
|
||||
"service_id": "amp:5603a5186ef45121612a9b5ff37ae53b81000881d864df7f367aeba037c0e346"
|
||||
},
|
||||
"schema": "amp.service-manifest.v1",
|
||||
"signature": {
|
||||
"algorithm": "BIP340-secp256k1",
|
||||
"canonicalization": "RFC8785-JCS",
|
||||
"public_key": "f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9",
|
||||
"value": "0c0edc3bc02c3697f7bffd9bd6c03558b400c586ef0d8daf48e8486d387aae5aee1e17a5243514e4254a534574d34362224df73a99f332e1747a648eb44c42b9"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user