@verii/verifgen 1.0.0-pre.1754473517 → 1.0.0-pre.1754543687

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verii/verifgen",
3
- "version": "1.0.0-pre.1754473517",
3
+ "version": "1.0.0-pre.1754543687",
4
4
  "description": "A tool for creating verifiable credentials and verifiable presentations.",
5
5
  "repository": "https://github.com/LFDT-Verii/core",
6
6
  "main": "index.js",
@@ -29,13 +29,13 @@
29
29
  "prettier": "2.8.8"
30
30
  },
31
31
  "dependencies": {
32
- "@verii/blockchain-functions": "1.0.0-pre.1754473517",
33
- "@verii/common-functions": "1.0.0-pre.1754473517",
34
- "@verii/crypto": "1.0.0-pre.1754473517",
35
- "@verii/did-doc": "1.0.0-pre.1754473517",
36
- "@verii/jwt": "1.0.0-pre.1754473517",
37
- "@verii/vc-checks": "1.0.0-pre.1754473517",
38
- "@verii/verifiable-credentials": "1.0.0-pre.1754473517",
32
+ "@verii/blockchain-functions": "1.0.0-pre.1754543687",
33
+ "@verii/common-functions": "1.0.0-pre.1754543687",
34
+ "@verii/crypto": "1.0.0-pre.1754543687",
35
+ "@verii/did-doc": "1.0.0-pre.1754543687",
36
+ "@verii/jwt": "1.0.0-pre.1754543687",
37
+ "@verii/vc-checks": "1.0.0-pre.1754543687",
38
+ "@verii/verii-verification": "1.0.0-pre.1754543687",
39
39
  "bs58": "~6.0.0",
40
40
  "chalk": "~4.1.2",
41
41
  "commander": "~13.1.0",
@@ -43,5 +43,5 @@
43
43
  "lodash": "^4.17.21",
44
44
  "nanoid": "~3.3.4"
45
45
  },
46
- "gitHead": "ecec1f6c5d132530a1b28ec715bb627472e504c8"
46
+ "gitHead": "8e7d25a089f4398a2d754426613e56100dc2d29c"
47
47
  }
@@ -9,7 +9,7 @@ const {
9
9
  const { mapWithIndex } = require('@verii/common-functions');
10
10
  const { generateKeyPair } = require('@verii/crypto');
11
11
  const { getDidUriFromJwk } = require('@verii/did-doc');
12
- const { VnfProtocolVersions } = require('@verii/vc-checks');
12
+ const { VeriiProtocolVersions } = require('@verii/vc-checks');
13
13
 
14
14
  const common = require('./common');
15
15
 
@@ -44,7 +44,7 @@ const generatePresentation = async ({
44
44
  vendorOriginContext,
45
45
  });
46
46
  const generatePresentationJwtFunction =
47
- protocolVersion < VnfProtocolVersions.VNF_PROTOCOL_VERSION_2
47
+ protocolVersion < VeriiProtocolVersions.PROTOCOL_VERSION_2
48
48
  ? generatePresentationJwt(payload, privateKey)
49
49
  : generatePresentationJwt(
50
50
  payload,
@@ -93,7 +93,7 @@ const createPayload = ({
93
93
  };
94
94
 
95
95
  const getIssuer = ({ issuer, protocolVersion }) => {
96
- if (protocolVersion < VnfProtocolVersions.VNF_PROTOCOL_VERSION_2) {
96
+ if (protocolVersion < VeriiProtocolVersions.PROTOCOL_VERSION_2) {
97
97
  return issuer == null ? 'https://self-issued.me' : issuer.did.id;
98
98
  }
99
99
 
@@ -4,7 +4,7 @@ const { all, find, get, last, map } = require('lodash/fp');
4
4
  const {
5
5
  initDoVerifyCredentialChecks,
6
6
  initVerifyIssuerChain,
7
- } = require('@verii/verifiable-credentials');
7
+ } = require('@verii/verii-verification');
8
8
  const { decodePresentationJwt } = require('@verii/jwt');
9
9
  const { extractVerificationKey } = require('@verii/did-doc');
10
10
  const console = require('console');