Phase B: identifier+key on the wire, JCS envelope signing (FRX/0.5), registry binding

This commit is contained in:
George Coles
2026-09-15 05:54:52 -04:00
parent 559c260639
commit d30e612be8
12 changed files with 159 additions and 89 deletions
+3 -3
View File
@@ -2,9 +2,9 @@ mod common;
use std::fs;
use common::{ask, client, collection, config_for, publish, spawn_relay};
use common::{ask, client, collection, config_for, publish, spawn_relay, test_envelope};
use frxd::index::LocalIndex;
use frxd::message::{EXPOSURE_FULL, Envelope, TYPE_RESPONSE};
use frxd::message::{EXPOSURE_FULL, TYPE_RESPONSE};
use frxd::node::Node;
#[tokio::test(flavor = "multi_thread", worker_threads = 4)]
@@ -106,7 +106,7 @@ async fn two_node_broadcast_query_flow() {
async fn relay_rejects_non_query_broadcasts() {
let relay_url = spawn_relay().await;
let key = frxd::crypto::Keypair::generate();
let envelope = Envelope::new(
let envelope = test_envelope(
&key,
TYPE_RESPONSE,
serde_json::json!({"qid": "x", "results": []}),