Phase B: identifier+key on the wire, JCS envelope signing (FRX/0.5), registry binding
This commit is contained in:
+3
-3
@@ -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": []}),
|
||||
|
||||
Reference in New Issue
Block a user