@eluvio/elv-client-js 4.2.20 → 4.2.22
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/ElvClient-min.js +1 -1
- package/dist/ElvClient-node-min.js +1 -1
- package/dist/ElvFrameClient-min.js +1 -1
- package/dist/ElvPermissionsClient-min.js +1 -1
- package/dist/ElvWalletClient-min.js +1 -1
- package/dist/ElvWalletClient-node-min.js +1 -1
- package/dist/src/AuthorizationClient.js +7 -12
- package/dist/src/ContentObjectAudit.js +2 -1
- package/dist/src/ContentObjectVerification.js +281 -0
- package/dist/src/ElvClient.js +25 -13
- package/dist/src/FrameClient.js +1 -1
- package/dist/src/HttpClient.js +90 -47
- package/dist/src/NetworkUrls.js +8 -0
- package/dist/src/RemoteSigner.js +170 -70
- package/dist/src/abr_profiles/abr_profile_live_drm.js +0 -10
- package/dist/src/client/ContentAccess.js +1196 -1154
- package/dist/src/client/ContentManagement.js +67 -41
- package/dist/src/client/LiveConf.js +171 -84
- package/dist/src/client/LiveStream.js +5216 -2118
- package/dist/src/client/NTP.js +172 -77
- package/dist/src/live_recording_config_profiles/live_recording_config_default.js +45 -0
- package/package.json +1 -1
- package/src/ElvClient.js +3 -1
- package/src/HttpClient.js +7 -0
- package/src/RemoteSigner.js +71 -7
- package/src/client/ContentAccess.js +7 -3
- package/src/client/ContentManagement.js +6 -2
|
@@ -680,7 +680,9 @@ exports.CopyContentObject = async function({libraryId, originalVersionHash, opti
|
|
|
680
680
|
const userCapKey = `eluv.caps.iusr${this.utils.AddressToHash(this.signer.address)}`;
|
|
681
681
|
|
|
682
682
|
if(metadata[userCapKey]) {
|
|
683
|
-
const userConkKey =
|
|
683
|
+
const userConkKey = this.signer.remoteSigner ?
|
|
684
|
+
await this.signer.DecryptCap(metadata[userCapKey]) :
|
|
685
|
+
await this.Crypto.DecryptCap(metadata[userCapKey], this.signer._signingKey().privateKey);
|
|
684
686
|
userConkKey.qid = objectId;
|
|
685
687
|
|
|
686
688
|
await this.ReplaceMetadata({
|
|
@@ -733,7 +735,9 @@ exports.CreateNonOwnerCap = async function({objectId, libraryId, publicKey, writ
|
|
|
733
735
|
throw Error("No user cap found for current user");
|
|
734
736
|
}
|
|
735
737
|
|
|
736
|
-
const userConk =
|
|
738
|
+
const userConk = this.signer.remoteSigner ?
|
|
739
|
+
await this.signer.DecryptCap(userCapValue) :
|
|
740
|
+
await this.Crypto.DecryptCap(userCapValue, this.signer._signingKey().privateKey);
|
|
737
741
|
|
|
738
742
|
const publicAddress = this.utils.PublicKeyToAddress(publicKey);
|
|
739
743
|
|