@tinycloud/operations 0.3.2 → 0.3.3-beta.0

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.
package/dist/artifacts.js CHANGED
@@ -6538,7 +6538,10 @@ var EncryptionService = class extends BaseService {
6538
6538
  const descriptor = usable.data;
6539
6539
  const networkPublicKey = base64Decode2(descriptor.publicEncryptionKey);
6540
6540
  const result = encryptToNetwork(this.crypto, {
6541
- networkId,
6541
+ // Discovery returns the node's canonical network identifier. Persist
6542
+ // that spelling in the envelope so a later response can be compared
6543
+ // byte-for-byte (notably for checksummed did:pkh principals).
6544
+ networkId: descriptor.networkId,
6542
6545
  networkPublicKey,
6543
6546
  plaintext,
6544
6547
  ...options?.aad !== void 0 ? { aad: options.aad } : {},