@pagopa/io-react-native-wallet 0.4.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. package/README.md +128 -19
  2. package/lib/commonjs/index.js +16 -23
  3. package/lib/commonjs/index.js.map +1 -1
  4. package/lib/commonjs/pid/index.js +3 -8
  5. package/lib/commonjs/pid/index.js.map +1 -1
  6. package/lib/commonjs/pid/issuing.js +153 -176
  7. package/lib/commonjs/pid/issuing.js.map +1 -1
  8. package/lib/commonjs/rp/__test__/index.test.js +7 -5
  9. package/lib/commonjs/rp/__test__/index.test.js.map +1 -1
  10. package/lib/commonjs/rp/index.js +145 -155
  11. package/lib/commonjs/rp/index.js.map +1 -1
  12. package/lib/commonjs/rp/types.js +1 -21
  13. package/lib/commonjs/rp/types.js.map +1 -1
  14. package/lib/commonjs/trust/index.js +24 -5
  15. package/lib/commonjs/trust/index.js.map +1 -1
  16. package/lib/commonjs/trust/types.js +102 -9
  17. package/lib/commonjs/trust/types.js.map +1 -1
  18. package/lib/commonjs/utils/crypto.js +46 -0
  19. package/lib/commonjs/utils/crypto.js.map +1 -0
  20. package/lib/commonjs/utils/dpop.js +14 -7
  21. package/lib/commonjs/utils/dpop.js.map +1 -1
  22. package/lib/commonjs/wallet-instance-attestation/index.js +3 -3
  23. package/lib/commonjs/wallet-instance-attestation/issuing.js +42 -60
  24. package/lib/commonjs/wallet-instance-attestation/issuing.js.map +1 -1
  25. package/lib/module/index.js +4 -6
  26. package/lib/module/index.js.map +1 -1
  27. package/lib/module/pid/index.js +1 -1
  28. package/lib/module/pid/index.js.map +1 -1
  29. package/lib/module/pid/issuing.js +152 -180
  30. package/lib/module/pid/issuing.js.map +1 -1
  31. package/lib/module/rp/__test__/index.test.js +3 -3
  32. package/lib/module/rp/__test__/index.test.js.map +1 -1
  33. package/lib/module/rp/index.js +141 -154
  34. package/lib/module/rp/index.js.map +1 -1
  35. package/lib/module/rp/types.js +0 -20
  36. package/lib/module/rp/types.js.map +1 -1
  37. package/lib/module/trust/index.js +19 -5
  38. package/lib/module/trust/index.js.map +1 -1
  39. package/lib/module/trust/types.js +100 -7
  40. package/lib/module/trust/types.js.map +1 -1
  41. package/lib/module/utils/crypto.js +40 -0
  42. package/lib/module/utils/crypto.js.map +1 -0
  43. package/lib/module/utils/dpop.js +13 -5
  44. package/lib/module/utils/dpop.js.map +1 -1
  45. package/lib/module/wallet-instance-attestation/index.js +2 -2
  46. package/lib/module/wallet-instance-attestation/index.js.map +1 -1
  47. package/lib/module/wallet-instance-attestation/issuing.js +40 -58
  48. package/lib/module/wallet-instance-attestation/issuing.js.map +1 -1
  49. package/lib/typescript/index.d.ts +4 -6
  50. package/lib/typescript/index.d.ts.map +1 -1
  51. package/lib/typescript/pid/index.d.ts +1 -1
  52. package/lib/typescript/pid/index.d.ts.map +1 -1
  53. package/lib/typescript/pid/issuing.d.ts +43 -88
  54. package/lib/typescript/pid/issuing.d.ts.map +1 -1
  55. package/lib/typescript/rp/index.d.ts +41 -87
  56. package/lib/typescript/rp/index.d.ts.map +1 -1
  57. package/lib/typescript/rp/types.d.ts +10 -906
  58. package/lib/typescript/rp/types.d.ts.map +1 -1
  59. package/lib/typescript/sd-jwt/index.d.ts +1 -1
  60. package/lib/typescript/sd-jwt/index.d.ts.map +1 -1
  61. package/lib/typescript/trust/index.d.ts +806 -3
  62. package/lib/typescript/trust/index.d.ts.map +1 -1
  63. package/lib/typescript/trust/types.d.ts +9655 -297
  64. package/lib/typescript/trust/types.d.ts.map +1 -1
  65. package/lib/typescript/utils/crypto.d.ts +10 -0
  66. package/lib/typescript/utils/crypto.d.ts.map +1 -0
  67. package/lib/typescript/utils/dpop.d.ts +10 -2
  68. package/lib/typescript/utils/dpop.d.ts.map +1 -1
  69. package/lib/typescript/wallet-instance-attestation/index.d.ts +2 -2
  70. package/lib/typescript/wallet-instance-attestation/index.d.ts.map +1 -1
  71. package/lib/typescript/wallet-instance-attestation/issuing.d.ts +18 -31
  72. package/lib/typescript/wallet-instance-attestation/issuing.d.ts.map +1 -1
  73. package/lib/typescript/wallet-instance-attestation/types.d.ts +4 -4
  74. package/package.json +2 -2
  75. package/src/index.ts +14 -13
  76. package/src/pid/index.ts +1 -1
  77. package/src/pid/issuing.ts +233 -232
  78. package/src/rp/__test__/index.test.ts +3 -3
  79. package/src/rp/index.ts +172 -194
  80. package/src/rp/types.ts +0 -24
  81. package/src/sd-jwt/index.ts +1 -1
  82. package/src/trust/index.ts +106 -5
  83. package/src/trust/types.ts +152 -34
  84. package/src/utils/crypto.ts +41 -0
  85. package/src/utils/dpop.ts +17 -7
  86. package/src/wallet-instance-attestation/index.ts +2 -2
  87. package/src/wallet-instance-attestation/issuing.ts +51 -63
  88. package/lib/commonjs/pid/metadata.js +0 -49
  89. package/lib/commonjs/pid/metadata.js.map +0 -1
  90. package/lib/module/pid/metadata.js +0 -41
  91. package/lib/module/pid/metadata.js.map +0 -1
  92. package/lib/typescript/pid/metadata.d.ts +0 -482
  93. package/lib/typescript/pid/metadata.d.ts.map +0 -1
  94. package/src/pid/metadata.ts +0 -46
package/README.md CHANGED
@@ -15,8 +15,76 @@ npm install @pagopa/io-react-native-wallet
15
15
 
16
16
  ## Usage
17
17
 
18
+ Refer to Example App for actual usages.
19
+
20
+ <details>
21
+ <summary>Handling cryptographic assets</summary>
22
+
23
+ User flows implementions make use of tokens signed using asymmetric key pairs. Such cryptographic keys are managed by the device according to its specifications. It's not the intention of this package to handle such cryptographic assets and their peculiarities; instead, an handy interface is used to provide the right abstraction to allow responsibilities segregation:
24
+
25
+ - the application knows who to generate/store/delete keys;
26
+ - the package knows when and where to use them.
27
+
28
+ The interface is `CryptoContext` inherited from the `@pagopa/io-react-native-jwt` package.
29
+
30
+ This package provides an helper to build a `CryptoContext` object bound to a given key tag
31
+
32
+ ```ts
33
+ import { createCryptoContextFor } from "@pagopa/io-react-native-wallet";
34
+
35
+ const ctx = createCryptoContextFor("my-tag");
36
+ ```
37
+
38
+ Be sure the key for `my-tag` already exists.
39
+
40
+ </details>
41
+
42
+ <details>
43
+ <summary>Making HTTP requests</summary>
44
+
45
+ This package is compatibile with any http client which implements [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). Functions that makes http requests allow for an optional `appFetch` parameter to provide a custom http client implementation. If not provided, the built-in implementation on the runtime is used.
46
+
47
+ </details>
48
+
18
49
  ### PID
19
50
 
51
+ #### Issuing
52
+
53
+ ```ts
54
+ import {
55
+ PID,
56
+ createCryptoContextFor,
57
+ getCredentialIssuerEntityConfiguration,
58
+ } from "@pagopa/io-react-native-wallet";
59
+
60
+ // Obtain PID metadata
61
+ const pidEntityConfiguration = await getCredentialIssuerEntityConfiguration(
62
+ "https://pid-provider.example"
63
+ );
64
+
65
+ // Auth Token request
66
+ const authRequest = PID.Issuing.authorizeIssuing({ wiaCryptoContext });
67
+ const authConf = await authRequest(
68
+ /* signed instance attestation */ instanceAttestation,
69
+ /* the relative wallet provided */ walletProviderBaseUrl,
70
+ pidEntityConfiguration
71
+ );
72
+
73
+ // Credential request
74
+ const credentialRequest = PID.Issuing.getCredential({ pidCryptoContext });
75
+ const pid = await credentialRequest(
76
+ authConf,
77
+ pidEntityConfiguration,
78
+ /* Some personal data */
79
+ {
80
+ birthDate: "01/01/1990",
81
+ fiscalCode: "AAABBB00A00A000A",
82
+ name: "NAME",
83
+ surname: "SURNAME",
84
+ }
85
+ );
86
+ ```
87
+
20
88
  #### Encode and Decode
21
89
 
22
90
  ```ts
@@ -34,28 +102,26 @@ PID.SdJwt.verify("<token>");
34
102
  #### Issuing
35
103
 
36
104
  ```ts
37
- import { WalletInstanceAttestation } from "@pagopa/io-react-native-wallet";
38
-
39
- const issuing = new WalletInstanceAttestation.Issuing(yourWalletProviderUrl);
40
-
41
- // Generate keys
42
- const publicKey = await yourCustomPublicKey("TEE_KEY_TAG");
43
-
44
- const walletInstanceAttestationRequest =
45
- await issuing.getAttestationRequestToSign(publicKey);
46
-
47
- //Sign with TEE
48
- const signature = await yourCustomSignatureFunction(
49
- walletInstanceAttestationRequest,
50
- "TEE_KEY_TAG"
105
+ import {
106
+ WalletInstanceAttestation,
107
+ createCryptoContextFor,
108
+ getWalletProviderEntityConfiguration,
109
+ } from "@pagopa/io-react-native-wallet";
110
+ // create crypto context for the key pair associated with the Wallet Instance Attestation
111
+ const wiaCryptoContext = createCryptoContextFor("wia-keytag");
112
+
113
+ // obtain Wallet Provider metadata
114
+ const entityConfiguration = await getWalletProviderEntityConfiguration(
115
+ "https://wallet-provider.example"
51
116
  );
52
117
 
53
- const walletInstanceAttestation = await issuing.getAttestation(
54
- walletInstanceAttestationRequest,
55
- signature
56
- );
118
+ // prepare the request
119
+ const wiaRequest = WalletInstanceAttestation.getAttestation({
120
+ wiaCryptoContext,
121
+ });
57
122
 
58
- console.log(walletInstanceAttestation);
123
+ // request the signed Wallet Instance Attestation to the Wallet Provider
124
+ const signedWIA = await wiaRequest(entityConfiguration);
59
125
  ```
60
126
 
61
127
  #### Encode and Decode
@@ -66,6 +132,49 @@ import { WalletInstanceAttestation } from "io-react-native-wallet";
66
132
  WalletInstanceAttestation.decode("<token>");
67
133
  ```
68
134
 
135
+ ### Relying Party
136
+
137
+ #### Credential presentation (PID)
138
+
139
+ ```ts
140
+ import {
141
+ RelyingPartySolution,
142
+ createCryptoContextFor,
143
+ getRelyingPartyEntityConfiguration,
144
+ } from "@pagopa/io-react-native-wallet";
145
+
146
+ // create crypto context for the key pair associated with the Wallet Instance Attestation
147
+ const wiaCryptoContext = createCryptoContextFor("wia-keytag");
148
+ // create crypto context for the key pair associated with PID stored in the device
149
+ const pidCryptoContext = createCryptoContextFor("pid-keytag");
150
+
151
+ // resolve RP's entity configuration
152
+ const entityConfiguration = await getRelyingPartyEntityConfiguration(
153
+ "https://relying-party.example"
154
+ );
155
+
156
+ // get request object
157
+ const getRequestObject = RelyingPartySolution.getRequestObject({
158
+ wiaCryptoContext,
159
+ });
160
+ const requestObj = await getRequestObject(
161
+ /* signed instance attestation */ walletInstanceAttestation,
162
+ /* url to request authorization to */ authorizationUrl,
163
+ entityConfiguration
164
+ );
165
+
166
+ // Submit authorization response
167
+ const sendAuthorizationResponse =
168
+ RelyingPartySolution.sendAuthorizationResponse({
169
+ pidCryptoContext,
170
+ });
171
+
172
+ const result = await sendAuthorizationResponse(requestObj, [
173
+ /* signed PID token */ pidToken,
174
+ /* array of claims to disclose from PID */ claims,
175
+ ]);
176
+ ```
177
+
69
178
  ## Example
70
179
 
71
180
  ### NodeJS and Ruby
@@ -3,48 +3,41 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "EntityConfiguration", {
6
+ exports.WalletInstanceAttestation = exports.RelyingPartySolution = exports.RP = exports.PID = exports.Errors = void 0;
7
+ Object.defineProperty(exports, "createCryptoContextFor", {
7
8
  enumerable: true,
8
9
  get: function () {
9
- return _types2.EntityConfiguration;
10
+ return _crypto.createCryptoContextFor;
10
11
  }
11
12
  });
12
- Object.defineProperty(exports, "EntityStatement", {
13
+ Object.defineProperty(exports, "getCredentialIssuerEntityConfiguration", {
13
14
  enumerable: true,
14
15
  get: function () {
15
- return _types2.EntityStatement;
16
+ return _trust.getCredentialIssuerEntityConfiguration;
16
17
  }
17
18
  });
18
- exports.RP = exports.PID = exports.Errors = void 0;
19
- Object.defineProperty(exports, "RelyingPartySolution", {
20
- enumerable: true,
21
- get: function () {
22
- return RP.RelyingPartySolution;
23
- }
24
- });
25
- Object.defineProperty(exports, "RpEntityConfiguration", {
19
+ Object.defineProperty(exports, "getEntityConfiguration", {
26
20
  enumerable: true,
27
21
  get: function () {
28
- return _types.RpEntityConfiguration;
22
+ return _trust.getEntityConfiguration;
29
23
  }
30
24
  });
31
- Object.defineProperty(exports, "TrustAnchorEntityConfiguration", {
25
+ Object.defineProperty(exports, "getRelyingPartyEntityConfiguration", {
32
26
  enumerable: true,
33
27
  get: function () {
34
- return _types2.TrustAnchorEntityConfiguration;
28
+ return _trust.getRelyingPartyEntityConfiguration;
35
29
  }
36
30
  });
37
- exports.WalletInstanceAttestation = void 0;
38
- Object.defineProperty(exports, "getEntityConfiguration", {
31
+ Object.defineProperty(exports, "getTrustAnchorEntityConfiguration", {
39
32
  enumerable: true,
40
33
  get: function () {
41
- return _trust.getEntityConfiguration;
34
+ return _trust.getTrustAnchorEntityConfiguration;
42
35
  }
43
36
  });
44
- Object.defineProperty(exports, "getUnsignedDPop", {
37
+ Object.defineProperty(exports, "getWalletProviderEntityConfiguration", {
45
38
  enumerable: true,
46
39
  get: function () {
47
- return _dpop.getUnsignedDPop;
40
+ return _trust.getWalletProviderEntityConfiguration;
48
41
  }
49
42
  });
50
43
  Object.defineProperty(exports, "verifyTrustChain", {
@@ -57,15 +50,15 @@ require("react-native-url-polyfill/auto");
57
50
  var PID = _interopRequireWildcard(require("./pid"));
58
51
  exports.PID = PID;
59
52
  var RP = _interopRequireWildcard(require("./rp"));
53
+ var RelyingPartySolution = RP;
60
54
  exports.RP = RP;
55
+ exports.RelyingPartySolution = RP;
61
56
  var Errors = _interopRequireWildcard(require("./utils/errors"));
62
57
  exports.Errors = Errors;
63
58
  var WalletInstanceAttestation = _interopRequireWildcard(require("./wallet-instance-attestation"));
64
59
  exports.WalletInstanceAttestation = WalletInstanceAttestation;
65
- var _dpop = require("./utils/dpop");
66
- var _types = require("./rp/types");
67
60
  var _trust = require("./trust");
68
- var _types2 = require("./trust/types");
61
+ var _crypto = require("./utils/crypto");
69
62
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
70
63
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
71
64
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["require","PID","_interopRequireWildcard","exports","RP","Errors","WalletInstanceAttestation","_dpop","_types","_trust","_types2","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEAA,OAAA;AAEA,IAAAC,GAAA,GAAAC,uBAAA,CAAAF,OAAA;AAA6BG,OAAA,CAAAF,GAAA,GAAAA,GAAA;AAC7B,IAAAG,EAAA,GAAAF,uBAAA,CAAAF,OAAA;AAA2BG,OAAA,CAAAC,EAAA,GAAAA,EAAA;AAC3B,IAAAC,MAAA,GAAAH,uBAAA,CAAAF,OAAA;AAAyCG,OAAA,CAAAE,MAAA,GAAAA,MAAA;AACzC,IAAAC,yBAAA,GAAAJ,uBAAA,CAAAF,OAAA;AAA2EG,OAAA,CAAAG,yBAAA,GAAAA,yBAAA;AAC3E,IAAAC,KAAA,GAAAP,OAAA;AAEA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAV,OAAA;AAIuB,SAAAW,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAV,wBAAAc,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA"}
1
+ {"version":3,"names":["require","PID","_interopRequireWildcard","exports","RP","RelyingPartySolution","Errors","WalletInstanceAttestation","_trust","_crypto","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set"],"sourceRoot":"../../src","sources":["index.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CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA"}
@@ -3,16 +3,11 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "Issuing", {
7
- enumerable: true,
8
- get: function () {
9
- return _issuing.Issuing;
10
- }
11
- });
12
- exports.SdJwt = void 0;
6
+ exports.SdJwt = exports.Issuing = void 0;
13
7
  var SdJwt = _interopRequireWildcard(require("./sd-jwt"));
14
8
  exports.SdJwt = SdJwt;
15
- var _issuing = require("./issuing");
9
+ var Issuing = _interopRequireWildcard(require("./issuing"));
10
+ exports.Issuing = Issuing;
16
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["SdJwt","_interopRequireWildcard","require","exports","_issuing","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set"],"sourceRoot":"../../../src","sources":["pid/index.ts"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAkCC,OAAA,CAAAH,KAAA,GAAAA,KAAA;AAClC,IAAAI,QAAA,GAAAF,OAAA;AAAoC,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA"}
1
+ {"version":3,"names":["SdJwt","_interopRequireWildcard","require","exports","Issuing","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set"],"sourceRoot":"../../../src","sources":["pid/index.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAkCC,OAAA,CAAAH,KAAA,GAAAA,KAAA;AAClC,IAAAI,OAAA,GAAAH,uBAAA,CAAAC,OAAA;AAAqCC,OAAA,CAAAC,OAAA,GAAAA,OAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,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