@tinycloud/sdk-services 2.11.0-beta.8 → 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.
@@ -1192,7 +1192,10 @@ var EncryptionService = class extends BaseService {
1192
1192
  const descriptor = usable.data;
1193
1193
  const networkPublicKey = base64Decode(descriptor.publicEncryptionKey);
1194
1194
  const result = encryptToNetwork(this.crypto, {
1195
- networkId,
1195
+ // Discovery returns the node's canonical network identifier. Persist
1196
+ // that spelling in the envelope so a later response can be compared
1197
+ // byte-for-byte (notably for checksummed did:pkh principals).
1198
+ networkId: descriptor.networkId,
1196
1199
  networkPublicKey,
1197
1200
  plaintext,
1198
1201
  ...options?.aad !== void 0 ? { aad: options.aad } : {},