@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.
- package/dist/encryption/index.cjs +4 -1
- package/dist/encryption/index.cjs.map +1 -1
- package/dist/encryption/index.js +4 -1
- package/dist/encryption/index.js.map +1 -1
- package/dist/index.cjs +69 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +68 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -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
|
-
|
|
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 } : {},
|