Finally implement a practical Decentralized Identity solution. From the team that brought COOV, a South Korean Vaccine Pass Digital Wallet with 43M MAU.
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
import hopae from 'hopae'
// initialize
const wallet = hopae.init('wallet');
// connect with issuer
wallet.connect(issuerDID);
// get credentials
wallet.on('transferRequest', (vc) => {
// validate if the vc is issued right
wallet.validate(vc);
// user will see the popup for store request (optional)
wallet.requestStore(vc);
// store the credential to storage
wallet.store(vc);
})
// display all credentials
<div>
{
wallet.credentials.map((credential) =>
<CredentialCard vc={credential}/>)
}
<div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import hopae from 'hopae'
const wallet = hopae.init('verifier');
// (optional) set issuer whitelist
verifier.addKnownIssuers([Issuer1, Issuer2]);
// connect with holder
verifier.connect(holderDID)
verifier.requestPresent(requiredClaims)
verifier.on('verifyRequest', (vp, holderDID) => {
const verifyOptions = {
knownIssuersOnly: true,
holderShouldMatch: true
}
const result = verifier.verify(vp, holderDID, verifyOptions)})
})
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
import axios from 'axios'
const vp = 'eyJhbGciOiJFZERTQSJ9.eyJpZCI6ImRp...'
const result = await axios.post({
header: {
authorization: VERIFIER_API_KEY
},
body: {
vp,
holder: HOLDER_DID,
requiredClaims: ['ssn','name'],
// (optional) only if there is issuer whitelist
issuers: [ISSUER_1_DID, ISSUER_2_DID],
}
})
console.log(result);
/*
{
verified: true
issuer: 'did:hopae:0xDEADBEEF...',
holder: 'did:ethr:0x1234ABCD...',
vc: {
}
}
/*
Maximize performance with minimal resources using our optimized SDK, designed for lean yet powerful identity solutions.
Stay ahead with continuous access to the latest in digital identity technology, without extra costs.
Quickly integrate advanced identity verification, delivering immediate value to your users from day one.
Effortlessly grow your capabilities with our flexible, pay-as-you-go SDK that scales with your business needs.
Citizen vaccine pass to issue and verify vaccination record
mDL that is valid not just for verifying age or the right to drive, but mapped to the vehicle for access
mDL that is valid not just for verifying age or the right to drive, but mapped to the vehicle for access
Minister of SMEs, Startups of Korea, AWS, KISA, PIPC
COOV
Soc-2, ISO 270001