From d9178d9f07140bfd32b76c10152f1db63dcfc9f0 Mon Sep 17 00:00:00 2001 From: John Szinger Date: Tue, 19 Dec 2023 13:57:57 -0500 Subject: [PATCH 1/2] update verify key to us Base64 encoding --- README.md | 2 +- publish_script/agent.schema.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 151b0a0..20a584c 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Each agent will go through specific onboarding steps outlined XXX here, and once { "id": "unique identifier matching [A-Z_]+ regular expression", "name": "Consumer Legible Agent App Name", - "verify_key": "Hex encoded Libsodium public verifying key for signed requests", + "verify_key": "Base64 encoded Libsodium public verifying key for signed requests", "web_url": "business's homepage", "technical_contact": "an email contact for the techical integration", "business_contact": "an email address for contacting a person within the business who is knowledgeable about the privacy program and DRP integration", diff --git a/publish_script/agent.schema.json b/publish_script/agent.schema.json index 30cd27a..c757971 100644 --- a/publish_script/agent.schema.json +++ b/publish_script/agent.schema.json @@ -9,7 +9,7 @@ "name": { "type": "string" }, "verify_key": { "type": "string", - "pattern": "[A-Fa-f0-9]+" + "pattern": "[a-zA-Z0-9\-_]+" }, "web_url": { "type": "string", From b0c56f697a87d3cb510a465adb38894c393708bf Mon Sep 17 00:00:00 2001 From: John Szinger Date: Tue, 19 Dec 2023 14:17:25 -0500 Subject: [PATCH 2/2] fix regex --- publish_script/agent.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publish_script/agent.schema.json b/publish_script/agent.schema.json index c757971..9a65be3 100644 --- a/publish_script/agent.schema.json +++ b/publish_script/agent.schema.json @@ -9,7 +9,7 @@ "name": { "type": "string" }, "verify_key": { "type": "string", - "pattern": "[a-zA-Z0-9\-_]+" + "pattern": "[a-zA-Z0-9+/]+" }, "web_url": { "type": "string",