-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
30 lines (19 loc) · 843 Bytes
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
USECASES
Content Management Systems -> need to check your age/property to see if you are an adult
i need to
generate atomic vc
generate sub signature
use ot to disclose
the subject’s DID in the credential, matches the DID of the subject who sent the presentation; ->use somebody else vc?
sign vc with your privat key so reciver can verify that is indeed you
solution sign with privatekey associated with your did
create json with signature of payload + issuer signature (metadata in the header)
avoid digital signature reuse/replay !
ensure nonce is new
ensure token is not expired
ensure receiver is correct
verify everything through the use of signature
Commands
npx hardhat hode
npx hardhat ignition deploy ./ignition/modules/deployDIDreg.ts --network localhost
npx hardhat run scripts/createAtomicVC.ts --network localhost