Contracts 1.4.0: crosscode.link/1 and a public key in the v2 heartbeat
- crosscode.link/1 (link.connect / link.connected / link.disconnect), with signLink / verifyLink, PEM conversion, link secrets and nonces. - The v2 heartbeat can carry the install's publicKey; the reply says saved / matches / mismatch (Hub 2.2.0). Never a failed heartbeat. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -36,5 +36,6 @@
|
||||
"publicKey": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAsQbIsjVsJY9k9jLjMSbscXdD9wONmLw90MrMHptfmSQ=\n-----END PUBLIC KEY-----\n"
|
||||
}
|
||||
],
|
||||
"serverTime": "2026-11-03T10:15:00.120Z"
|
||||
"serverTime": "2026-11-03T10:15:00.120Z",
|
||||
"publicKeyStatus": "saved"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"schema": "crosscode.link/1",
|
||||
"type": "link.connect",
|
||||
"from": {
|
||||
"product": "events",
|
||||
"installId": "9a4c2f1e-7b3d-4e5a-8c6f-0d1e2f3a4b5c",
|
||||
"url": "https://events.hopefamily.co.za"
|
||||
},
|
||||
"to": {
|
||||
"installId": "3b0f6a52-6c1e-4b7a-9d0e-2f1a8c4b7e02"
|
||||
},
|
||||
"secret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
||||
"issuedAt": "2026-11-20T10:00:00.000Z",
|
||||
"nonce": "n0nce-AbCdEfGhIjKlMnOpQr",
|
||||
"signature": "QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQA"
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"schema": "crosscode.link/1",
|
||||
"type": "link.connected",
|
||||
"from": {
|
||||
"product": "website",
|
||||
"installId": "3b0f6a52-6c1e-4b7a-9d0e-2f1a8c4b7e02",
|
||||
"url": "https://www.hopefamily.co.za"
|
||||
},
|
||||
"to": {
|
||||
"installId": "9a4c2f1e-7b3d-4e5a-8c6f-0d1e2f3a4b5c"
|
||||
},
|
||||
"inReplyTo": "n0nce-AbCdEfGhIjKlMnOpQr",
|
||||
"issuedAt": "2026-11-20T10:00:00.400Z",
|
||||
"nonce": "n0nce-ZyXwVuTsRqPoNmLkJi",
|
||||
"signature": "QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQA"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"schema": "crosscode.link/1",
|
||||
"type": "link.disconnect",
|
||||
"from": {
|
||||
"product": "website",
|
||||
"installId": "3b0f6a52-6c1e-4b7a-9d0e-2f1a8c4b7e02",
|
||||
"url": "https://www.hopefamily.co.za"
|
||||
},
|
||||
"to": {
|
||||
"installId": "9a4c2f1e-7b3d-4e5a-8c6f-0d1e2f3a4b5c"
|
||||
},
|
||||
"issuedAt": "2026-12-01T08:00:00.000Z",
|
||||
"nonce": "n0nce-DiScOnNeCt0123456",
|
||||
"signature": "QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQA"
|
||||
}
|
||||
Reference in New Issue
Block a user