@tinycloud/sdk-services 2.11.0 → 3.0.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1258,7 +1258,10 @@ var EncryptionService = class extends BaseService {
1258
1258
  const descriptor = usable.data;
1259
1259
  const networkPublicKey = base64Decode(descriptor.publicEncryptionKey);
1260
1260
  const result = encryptToNetwork(this.crypto, {
1261
- networkId,
1261
+ // Discovery returns the node's canonical network identifier. Persist
1262
+ // that spelling in the envelope so a later response can be compared
1263
+ // byte-for-byte (notably for checksummed did:pkh principals).
1264
+ networkId: descriptor.networkId,
1262
1265
  networkPublicKey,
1263
1266
  plaintext,
1264
1267
  ...options?.aad !== void 0 ? { aad: options.aad } : {},