decentralised sync engine

fix: encode uri component before comparing

serenity 36e3375f a62c03b7

Changed files
+5 -1
src
lib
+5 -1
src/lib/handlers/latticeHandshake.ts
···
if (!storeAtUri.rKey) return;
-
if (!existingShardConnectionShardDids.includes(storeAtUri.rKey)) {
errors.push(
"Mismatch between claimant shard and channel storeAt. Request wants to validate for",
storeAtUri.rKey,
···
if (!storeAtUri.rKey) return;
+
if (
+
!existingShardConnectionShardDids.includes(
+
encodeURIComponent(storeAtUri.rKey),
+
)
+
) {
errors.push(
"Mismatch between claimant shard and channel storeAt. Request wants to validate for",
storeAtUri.rKey,