@docknetwork/wallet-sdk-wasm 1.5.10 → 1.5.14
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/lib/services/blockchain/service-rpc.js +4 -0
- package/lib/services/blockchain/service-rpc.mjs +4 -0
- package/lib/services/blockchain/service.js +5 -4
- package/lib/services/blockchain/service.mjs +5 -4
- package/lib/services/credential/pex-helpers.js +20 -0
- package/lib/services/credential/pex-helpers.mjs +20 -1
- package/lib/services/credential/service.js +1 -1
- package/lib/services/credential/service.mjs +2 -2
- package/lib/services/credential/utils.js +4 -10
- package/lib/services/credential/utils.mjs +8 -8
- package/lib/services/dids/index.js +1 -16
- package/lib/services/dids/index.mjs +1 -16
- package/lib/services/dids/service-rpc.js +0 -3
- package/lib/services/dids/service-rpc.mjs +0 -3
- package/lib/services/dids/service.js +3 -26
- package/lib/services/dids/service.mjs +3 -25
- package/lib/services/edv/index.js +1 -16
- package/lib/services/edv/index.mjs +1 -16
- package/lib/services/edv/service.js +1 -16
- package/lib/services/edv/service.mjs +1 -16
- package/lib/services/util-crypto/service-rpc.js +2 -7
- package/lib/services/util-crypto/service-rpc.mjs +2 -7
- package/lib/src/services/blockchain/service.d.ts +1 -0
- package/lib/src/services/blockchain/service.d.ts.map +1 -1
- package/lib/src/services/credential/pex-helpers.d.ts +13 -1
- package/lib/src/services/credential/pex-helpers.d.ts.map +1 -1
- package/lib/src/services/dids/service-rpc.d.ts +0 -1
- package/lib/src/services/dids/service-rpc.d.ts.map +1 -1
- package/lib/src/services/dids/service.d.ts +5 -2
- package/lib/src/services/dids/service.d.ts.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/services/blockchain/service-rpc.js +4 -0
- package/src/services/blockchain/service.ts +5 -4
- package/src/services/credential/pex-helpers.js +20 -1
- package/src/services/credential/pex-helpers.test.js +114 -0
- package/src/services/credential/service.ts +2 -2
- package/src/services/credential/utils.js +8 -8
- package/src/services/dids/index.test.js +37 -14
- package/src/services/dids/service-rpc.ts +0 -3
- package/src/services/dids/service.ts +1 -9
- package/src/services/util-crypto/service-rpc.js +2 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/services/blockchain/service.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,cAAc,EAGf,MAAM,sCAAsC,CAAC;AAM9C,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAErC,eAAO,MAAM,oBAAoB,mCAAmC,CAAC;AAQrE,cAAM,cAAe,SAAQ,cAAc;IACzC,MAAM,MAAY;CACnB;AAED;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,IAAI,MAAC;IACL,OAAO,MAAC;IACR,QAAQ,MAAC;IACT,WAAW,MAAC;IACZ,iBAAiB,UAAS;IAC1B,QAAQ,EAAE,GAAG,CAAC;IACd,MAAM,CAAC,MAAM;;MAEX;IAEF,UAAU,oCAkDS,UAAU,0BA5C3B;;IAWF,2BAA2B,CAAC,eAAe,KAAA;;;;;;IAS3C;;;OAGG;IACG,qBAAqB;IAQ3B,iBAAiB;IAOjB;;;;OAIG;IACG,IAAI,CAAC,MAAM,EAAE,UAAU;
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/services/blockchain/service.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,cAAc,EAGf,MAAM,sCAAsC,CAAC;AAM9C,OAAO,EAAC,UAAU,EAAC,MAAM,WAAW,CAAC;AAErC,eAAO,MAAM,oBAAoB,mCAAmC,CAAC;AAQrE,cAAM,cAAe,SAAQ,cAAc;IACzC,MAAM,MAAY;CACnB;AAED;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,IAAI,MAAC;IACL,OAAO,MAAC;IACR,QAAQ,MAAC;IACT,WAAW,MAAC;IACZ,iBAAiB,UAAS;IAC1B,QAAQ,EAAE,GAAG,CAAC;IACd,MAAM,CAAC,MAAM;;MAEX;IAEF,UAAU,oCAkDS,UAAU,0BA5C3B;;IAWF,2BAA2B,CAAC,eAAe,KAAA;;;;;;IAS3C;;;OAGG;IACG,qBAAqB;IAQ3B,iBAAiB;IAOjB;;;;OAIG;IACG,IAAI,CAAC,MAAM,EAAE,UAAU;IAwD7B;;;OAGG;IACG,UAAU;IAYV,mBAAmB;IAUnB,UAAU,CAAC,GAAG,EAAE,MAAM;IAG5B;;;OAGG;IACG,cAAc;IAId,UAAU;IAIhB,mBAAmB,CAAC,iBAAiB,KAAA;CAOtC;AAED,eAAO,MAAM,iBAAiB,EAAE,iBAA2C,CAAC"}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Convert PEX request to bounds for each descriptor
|
|
3
|
+
* @param {*} pexRequest - The PEX request object containing input descriptors and constraints
|
|
4
|
+
* @param {*} selectedCredentials - Array of selected credentials corresponding to the input descriptors
|
|
5
|
+
* @param {*} removeFromRequest - if true, removes range proofs fields from the request. it might be dangerous if you will be using the proof request later
|
|
6
|
+
* because it will not have the range proofs fields anymore.
|
|
7
|
+
* @returns {Array} - Array of bounds for each descriptor, where each bound is an object with attributeName, min, and max
|
|
8
|
+
* @throws {Error} - If a field path is missing or empty
|
|
9
|
+
* @throws {Error} - If an unsupported format or type is encountered
|
|
10
|
+
* @throws {Error} - If a selected credential is expected but not found at the given index
|
|
11
|
+
*/
|
|
12
|
+
export function pexToBounds(pexRequest: any, selectedCredentials?: any, removeFromRequest?: any): any[];
|
|
2
13
|
export function getPexRequiredAttributes(pexRequest: any, selectedCredentials?: any[]): any;
|
|
3
14
|
export const EPSILON_NUMBER: 0.001;
|
|
4
15
|
export const EPSILON_INT: 1;
|
|
@@ -8,4 +19,5 @@ export const MAX_INTEGER: number;
|
|
|
8
19
|
export const MIN_INTEGER: -4294967295;
|
|
9
20
|
export const MAX_NUMBER: number;
|
|
10
21
|
export const MIN_NUMBER: -4294967294;
|
|
22
|
+
export function shouldSkipAttribute(attributeName: any): boolean;
|
|
11
23
|
//# sourceMappingURL=pex-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pex-helpers.d.ts","sourceRoot":"","sources":["../../../../src/services/credential/pex-helpers.js"],"names":[],"mappings":"AA8DA,
|
|
1
|
+
{"version":3,"file":"pex-helpers.d.ts","sourceRoot":"","sources":["../../../../src/services/credential/pex-helpers.js"],"names":[],"mappings":"AA8DA;;;;;;;;;;GAUG;AACH,wGAqMC;AAcD,4FAgCC;AA1TD,mCAAoC;AACpC,4BAA6B;AAE7B,mDAAoD;AACpD,mDAAoD;AACpD,iCAAoC;AACpC,sCAAuC;AACvC,gCAAmC;AACnC,qCAAsC;AA+Q/B,iEACoD"}
|
|
@@ -6,7 +6,6 @@ export declare class DIDServiceRPC extends RpcService {
|
|
|
6
6
|
getDIDResolution(params: GetDIDResolutionParams): Promise<any>;
|
|
7
7
|
generateKeyDoc(params: any): Promise<any>;
|
|
8
8
|
deriveKeyDoc(params: any): Promise<any>;
|
|
9
|
-
getDidDockDocument(did: any): Promise<any>;
|
|
10
9
|
createSignedJWT(params: any): Promise<any>;
|
|
11
10
|
}
|
|
12
11
|
//# sourceMappingURL=service-rpc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-rpc.d.ts","sourceRoot":"","sources":["../../../../src/services/dids/service-rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAEL,6BAA6B,EAC7B,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAElB,qBAAa,aAAc,SAAQ,UAAU;;IAI3C,uBAAuB,CAAC,MAAM,EAAE,6BAA6B;IAG7D,gBAAgB,CAAC,MAAM,EAAE,sBAAsB;IAG/C,cAAc,CAAC,MAAM,KAAA;IAGrB,YAAY,CAAC,MAAM,KAAA;IAGnB,
|
|
1
|
+
{"version":3,"file":"service-rpc.d.ts","sourceRoot":"","sources":["../../../../src/services/dids/service-rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAEL,6BAA6B,EAC7B,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAElB,qBAAa,aAAc,SAAQ,UAAU;;IAI3C,uBAAuB,CAAC,MAAM,EAAE,6BAA6B;IAG7D,gBAAgB,CAAC,MAAM,EAAE,sBAAsB;IAG/C,cAAc,CAAC,MAAM,KAAA;IAGrB,YAAY,CAAC,MAAM,KAAA;IAGnB,eAAe,CAAC,MAAM,KAAA;CAGvB"}
|
|
@@ -2,7 +2,11 @@ import { KeypairToDIDKeyDocumentParams, GetDIDResolutionParams } from './config'
|
|
|
2
2
|
declare class DIDService {
|
|
3
3
|
name: string;
|
|
4
4
|
constructor();
|
|
5
|
-
rpcMethods: (((params: KeypairToDIDKeyDocumentParams) => any) | ((params: GetDIDResolutionParams) => any)
|
|
5
|
+
rpcMethods: (((params: KeypairToDIDKeyDocumentParams) => any) | ((params: GetDIDResolutionParams) => any) | (({ payload, privateKeyDoc, headerInput }: {
|
|
6
|
+
payload: any;
|
|
7
|
+
privateKeyDoc: any;
|
|
8
|
+
headerInput: any;
|
|
9
|
+
}) => Promise<string>))[];
|
|
6
10
|
keypairToDIDKeyDocument(params: KeypairToDIDKeyDocumentParams): any;
|
|
7
11
|
getDIDResolution(params: GetDIDResolutionParams): any;
|
|
8
12
|
generateKeyDoc(params: any): Promise<{
|
|
@@ -28,7 +32,6 @@ declare class DIDService {
|
|
|
28
32
|
privateKeyDoc: any;
|
|
29
33
|
headerInput: any;
|
|
30
34
|
}): Promise<string>;
|
|
31
|
-
getDidDockDocument(did: any): Promise<any>;
|
|
32
35
|
}
|
|
33
36
|
export declare const didService: DIDService;
|
|
34
37
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/services/dids/service.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,6BAA6B,EAC7B,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAkDlB,cAAM,UAAU;IACd,IAAI,EAAE,MAAM,CAAC;;IAKb,UAAU,
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/services/dids/service.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,6BAA6B,EAC7B,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAkDlB,cAAM,UAAU;IACd,IAAI,EAAE,MAAM,CAAC;;IAKb,UAAU,aAOsB,6BAA6B,sBAMpC,sBAAsB;;;;8BAP7C;IACF,uBAAuB,CAAC,MAAM,EAAE,6BAA6B;IAM7D,gBAAgB,CAAC,MAAM,EAAE,sBAAsB;IAMzC,cAAc,CAAC,MAAM,KAAA;;;;;;;;;IAOrB,YAAY,CAAC,MAAM,KAAA;;;;;;;;;IAOnB,eAAe,CAAC,EAAC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAC;;;;KAAA;CAmB5D;AAED,eAAO,MAAM,UAAU,YAAmB,CAAC"}
|