@ocap/asset 1.25.5 → 1.26.0
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/esm/index.js +2 -1
- package/lib/index.js +2 -1
- package/package.json +10 -10
package/esm/index.js
CHANGED
@@ -201,7 +201,8 @@ export const preMintFromFactory = async ({ factory, inputs, owner, issuer, }) =>
|
|
201
201
|
let vcObj = render(get(template, vcRootPath));
|
202
202
|
delete vcObj.proof;
|
203
203
|
const vcStr = stableStringify(vcObj);
|
204
|
-
|
204
|
+
// eslint-disable-next-line no-await-in-loop
|
205
|
+
const signature = toBase64(await wallet.sign(vcStr));
|
205
206
|
vcObj.proof = {
|
206
207
|
type: proofTypes[typeInfo.pk],
|
207
208
|
created: extra.issuanceDate,
|
package/lib/index.js
CHANGED
@@ -212,7 +212,8 @@ const preMintFromFactory = async ({ factory, inputs, owner, issuer, }) => {
|
|
212
212
|
let vcObj = render((0, get_1.default)(template, vcRootPath));
|
213
213
|
delete vcObj.proof;
|
214
214
|
const vcStr = (0, vc_1.stableStringify)(vcObj);
|
215
|
-
|
215
|
+
// eslint-disable-next-line no-await-in-loop
|
216
|
+
const signature = (0, util_1.toBase64)(await wallet.sign(vcStr));
|
216
217
|
vcObj.proof = {
|
217
218
|
type: vc_1.proofTypes[typeInfo.pk],
|
218
219
|
created: extra.issuanceDate,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ocap/asset",
|
3
3
|
"description": "Utility to work with asset and factory on ArcBlock blockchain",
|
4
|
-
"version": "1.
|
4
|
+
"version": "1.26.0",
|
5
5
|
"author": {
|
6
6
|
"name": "wangshijun",
|
7
7
|
"email": "shijun@arcblock.io",
|
@@ -24,15 +24,15 @@
|
|
24
24
|
"json-stable-stringify": "^1.0.1",
|
25
25
|
"lodash": "^4.17.21",
|
26
26
|
"mustache": "^4.2.0",
|
27
|
-
"@arcblock/did": "1.
|
28
|
-
"@arcblock/did-util": "1.
|
29
|
-
"@arcblock/
|
30
|
-
"@arcblock/
|
31
|
-
"@ocap/contract": "1.
|
32
|
-
"@ocap/mcrypto": "1.
|
33
|
-
"@ocap/types": "1.
|
34
|
-
"@ocap/util": "1.
|
35
|
-
"@ocap/wallet": "1.
|
27
|
+
"@arcblock/did": "1.26.0",
|
28
|
+
"@arcblock/did-util": "1.26.0",
|
29
|
+
"@arcblock/validator": "1.26.0",
|
30
|
+
"@arcblock/vc": "1.26.0",
|
31
|
+
"@ocap/contract": "1.26.0",
|
32
|
+
"@ocap/mcrypto": "1.26.0",
|
33
|
+
"@ocap/types": "1.26.0",
|
34
|
+
"@ocap/util": "1.26.0",
|
35
|
+
"@ocap/wallet": "1.26.0"
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
38
|
"@arcblock/eslint-config-ts": "0.3.3",
|