aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/harness
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/tests/harness')
-rw-r--r--packages/meshbay-hub/tests/harness/chat_send_probe.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/meshbay-hub/tests/harness/chat_send_probe.py b/packages/meshbay-hub/tests/harness/chat_send_probe.py
index e5cfc8b..e7f1dae 100644
--- a/packages/meshbay-hub/tests/harness/chat_send_probe.py
+++ b/packages/meshbay-hub/tests/harness/chat_send_probe.py
@@ -172,7 +172,9 @@ function makeTransport(name, chatReply) {
tp._gekRaw = hex('__GEK_HEX__');
tp.chatEpoch = 1;
tp._identity = { pkEdB64: DEVICE_PK_B64,
- sign: (bytes) => window.MeshBayKeys.signBytes(SK_ED_B64, bytes) };
+ signAs: (kind, fields) => window.MeshBayKeys.signBytes(SK_ED_B64,
+ window.MeshBayCrypto.transcriptFor(kind, fields,
+ { pkEdB64: DEVICE_PK_B64 })) };
tp.devicePk = DEVICE_PK_B64;
tp._send = (obj) => {
log.push('sent ' + obj.type);