-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate json proof script and data changes
- Loading branch information
Vijay Shiyani
committed
Jun 6, 2024
1 parent
578991d
commit 132d4ba
Showing
5 changed files
with
46 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"given_name": "John", | ||
"last_name": "Doe" | ||
"credentialSubject": { | ||
"given_name": "John", | ||
"family_name": "Doe" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
{} | ||
{ | ||
"id": "1234567890", | ||
"studentID": "1234567890", | ||
"givenName": "John", | ||
"familyName": "Doe", | ||
"dateOfBirth": "1963-07-07" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { getJwtVcJsonProof, getSdJwtVcJsonProof } from '../src/utils/openid/vci.proof-jwt.js'; | ||
|
||
async function main() { | ||
const issuer = 'https://dvfmz2oh-dev.meeco.cloud'; | ||
const c_nonce = '98b27583-2609-49ed-b9bc-3cd9cdd29811'; | ||
|
||
const result = await getJwtVcJsonProof(issuer, c_nonce); | ||
console.log(result); | ||
} | ||
|
||
async function main1() { | ||
const issuer = 'https://dvfmz2oh-dev.meeco.cloud'; | ||
const c_nonce = '79493288-9221-4fc6-9c01-527995a3bb0d'; | ||
|
||
const result = await getSdJwtVcJsonProof(issuer, c_nonce); | ||
console.log(result); | ||
} | ||
|
||
await main(); | ||
|
||
await main1(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters