@blockcerts/blockcerts-verifier 1.61.1 → 1.62.1
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/bundle-stats.html +1 -1
- package/dist/{EcdsaSecp256k1Signature2019-aV3C41Ue-_mP0Wq_n.js → EcdsaSecp256k1Signature2019-D8D2kh2C-D_9G-pvc.js} +1 -1
- package/dist/{Ed25519Signature2020-CL2yKnJW-NRYSGvkI.js → Ed25519Signature2020-ksyyWByQ-DJfkuzPo.js} +5 -5
- package/dist/{MerkleProof2017-CNSx436a-FBaGRIN1.js → MerkleProof2017-DJkEKNm5-DslQLgIV.js} +1 -1
- package/dist/{MerkleProof2019-DnbP3r0f-Cp4GWjQh.js → MerkleProof2019-CNv70A45-NTmYz6kF.js} +2 -2
- package/dist/checkCredentialSchemaConformity-DTqaxENC-DVWS3_Eh.js +1 -0
- package/dist/{checkRevocationStatusList2021-Cy-rWyh7-CVOeAbdp.js → checkRevocationStatusList2021-gJ08HuL8-BycWMYXc.js} +4 -4
- package/dist/{controlVerificationMethod-CXzAI0QS-b45qIaR4.js → controlVerificationMethod-1mtI3EJp-wABQpqsl.js} +1 -1
- package/dist/{did-key-common.esm-CJj7pea6-Er8YwHoJ.js → did-key-common.esm-C8caUy6x-CUGnGiom.js} +3 -3
- package/dist/{did-key-ed25519.esm-hEATvNhJ-CHAq7sf1.js → did-key-ed25519.esm-CmW3tWKP-Y6ZSpFNY.js} +1 -1
- package/dist/{did-key-secp256k1.esm-CIEM56eq-EQahxyFZ.js → did-key-secp256k1.esm-DzS1X49n-DBt648mN.js} +1 -1
- package/dist/{index-DWAZG7Ja-CBt_boC3.js → index-DCloIN9Y-xgvZvTQb.js} +2 -2
- package/dist/{jsonld-signatures-zDEkNjYR-D3vK8GYH.js → jsonld-signatures-BGggIvjB-DXkWdXeB.js} +4 -4
- package/dist/main.js +35 -25
- package/package.json +2 -2
- package/dist/checkCredentialSchemaConformity-QPmIWPLG-De1kKyvF.js +0 -1
- /package/dist/{HashlinkVerifier-MEwSZe4T-BdYYAALa.js → HashlinkVerifier-DsOipQXP-BdYYAALa.js} +0 -0
- /package/dist/{elliptic-DVE5q-l5-D-NH8siB.js → elliptic-Bnve3wuI-D-NH8siB.js} +0 -0
- /package/dist/{ensureNotRevoked-bD_ITwQb-DvMIgM4L.js → ensureNotRevoked-4-MbmLBE-DvMIgM4L.js} +0 -0
- /package/dist/{ensureValidIssuingKey-wRebznsK-frafTbMl.js → ensureValidIssuingKey-Chj896Xe-frafTbMl.js} +0 -0
- /package/dist/{index-CcA_A5fd-Dgus2xdV.js → index-BcoFZOIG-Dgus2xdV.js} +0 -0
- /package/dist/{index-yP42zfkJ-CHN5LgUq.js → index-RPby1iUS-CHN5LgUq.js} +0 -0
- /package/dist/{jsonld-Pr6hPH-i-D_C9ciG_.js → jsonld-Cm7t2ORw-D_C9ciG_.js} +0 -0
- /package/dist/{sha256-wKiO0px2-BYFBxJ7m.js → sha256-BU_-grHj-BYFBxJ7m.js} +0 -0
- /package/dist/{x25519-BzvT3haI-DcUk09rC.js → x25519-BmUS3FQ1-DcUk09rC.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as r}from"./index-RPby1iUS-CHN5LgUq.js";import{D as a,V as e,A as o,e as t}from"./main.js";async function i(i,s){Array.isArray(s)||(s=[s]);for(const c of s){const s=await a({url:c.id});let n;try{n=JSON.parse(s)}catch(r){throw console.error(r),new Error(`Specified schema at url: ${c.id} could not be parsed`)}if(!r.validator(n)(i))throw new e(o.checkCredentialSchemaConformity,t("errors","checkCredentialSchemaConformity"))}}export{i as default};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import{V as t,A as e,d as n,C as i,D as o,E as s,F as r}from"./main.js";import{e as a,d as c}from"./base64url-Cy03LJLt-vkTPfQOh.js";import{g as u,u as d}from"./pako.esm-DnD5dZGi-HambcU-w.js";
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright (c) 2020 Digital Bazaar, Inc. All rights reserved.
|
|
4
|
-
*/function
|
|
4
|
+
*/function h(t,e){if("number"!=typeof t)throw new TypeError(`"${e}" must be number.`)}function f(t,e){if(!(Number.isInteger(t)&&t>0))throw new TypeError(`"${e}" must be a positive integer.`)}function g(t,e){if("boolean"!=typeof t)throw new TypeError(`"${e}" must be a boolean.`)}function l(t,e){if(!(t instanceof Uint8Array))throw new TypeError(`"${e}" must be a Uint8Array.`)}
|
|
5
5
|
/*!
|
|
6
6
|
* Copyright (c) 2020-2023 Digital Bazaar, Inc. All rights reserved.
|
|
7
|
-
*/class
|
|
7
|
+
*/class w{constructor({length:t,buffer:e,leftToRightIndexing:n,littleEndianBits:i}={}){if(t&&e)throw new Error('Only one of "length" or "buffer" must be given.');if(void 0!==t?f(t,"length"):l(e,"buffer"),void 0!==i){if(void 0!==n)throw new Error('Using both "littleEndianBits" and "leftToRightIndexing" is not allowed.');g(i,"littleEndianBits"),n=i}void 0===n?n=!0:g(n,"leftToRightIndexing"),t?(this.bits=new Uint8Array(Math.ceil(t/8)),this.length=t):(this.bits=new Uint8Array(e.buffer),this.length=8*e.length),this.leftToRightIndexing=n}set(t,e){h(t,"position"),g(e,"on");const{length:n,leftToRightIndexing:i}=this,{index:o,bit:s}=b(t,n,i);e?this.bits[o]|=s:this.bits[o]&=255^s}get(t){h(t,"position");const{length:e,leftToRightIndexing:n}=this,{index:i,bit:o}=b(t,e,n);return!!(this.bits[i]&o)}async encodeBits(){return a(u(this.bits))}static async decodeBits({encoded:t}){return function(t,e){if("string"!=typeof t)throw new TypeError(`"${e}" must be a string.`)}(t,"encoded"),d(c(t))}async compressBits(){return u(this.bits)}static async uncompressBits({compressed:t}){return l(t,"compressed"),d(t)}}function b(t,e,n){if(function(t,e){if(!(Number.isInteger(t)&&t>=0))throw new TypeError(`"${e}" must be a non-negative integer.`)}(t,"position"),f(e,"length"),g(n,"leftToRightIndexing"),t>=e)throw new Error(`Position "${t}" is out of range "0-${e-1}".`);const i=t%8;return{index:Math.floor(t/8),bit:1<<(n?7-i:i)}}
|
|
8
8
|
/*!
|
|
9
9
|
* Copyright (c) 2020-2022 Digital Bazaar, Inc. All rights reserved.
|
|
10
|
-
*/class y{constructor({length:t,buffer:e}={}){this.bitstring=new
|
|
10
|
+
*/class y{constructor({length:t,buffer:e}={}){this.bitstring=new w({length:t,buffer:e}),this.length=this.bitstring.length}setRevoked(t,e){if("boolean"!=typeof e)throw new TypeError('"revoked" must be a boolean.');return this.bitstring.set(t,e)}isRevoked(t){return this.bitstring.get(t)}async encode(){return this.bitstring.encodeBits()}static async decode({encodedList:t}){const e=await w.decodeBits({encoded:t});return new y({buffer:e})}}
|
|
11
11
|
/*!
|
|
12
12
|
* Copyright (c) 2020-2022 Digital Bazaar, Inc. All rights reserved.
|
|
13
|
-
*/async function p({encodedList:t}){return y.decode({encodedList:t})}async function
|
|
13
|
+
*/async function p({encodedList:t}){return y.decode({encodedList:t})}async function v(i){const s=await o({url:i}).catch((o=>{throw console.error(o),new t(e.checkRevokedStatus,`${n.i18n.getText("revocation","noRevocationStatusList2021Found")} ${i}.`)}));if(s)try{return JSON.parse(s)}catch(o){throw console.error(o),new t(e.checkRevokedStatus,`${n.i18n.getText("revocation","noRevocationStatusList2021Found")} ${i}.`)}return s}async function m(i){const o=new s(i);await o.init();if((await o.verify()).status===r.FAILURE)throw new t(e.checkRevokedStatus,n.i18n.getText("revocation","revocationListAuthenticityFailure"))}async function R(o){Array.isArray(o)||(o=[o]);for(const s of o){const o=parseInt(s.statusListIndex,10),r=await v(s.statusListCredential);if(!r)throw new t(e.checkRevokedStatus,`${n.i18n.getText("revocation","noRevocationStatusList2021Found")} ${s.statusListCredential}.`);await m(r);const{encodedList:a}=r.credentialSubject;if((await p({encodedList:a})).isRevoked(o)){const o="revocation"===s.statusPurpose?i.REVOKED:i.SUSPENDED;throw new t(e.checkRevokedStatus,n.certificates.generateRevocationReason("",o))}}}export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as o,A as t,d as i}from"./main.js";import{b as r}from"./index-
|
|
1
|
+
import{V as o,A as t,d as i}from"./main.js";import{b as r}from"./index-BcoFZOIG-Dgus2xdV.js";function n(n,e=""){const s=function(o){return o.id}(n);if(s!==e.split("#")[0])throw new o(t.controlVerificationMethod,`${r} - ${i.i18n.getText("errors","controlVerificationMethod")}`)}export{n as default};
|