JQuery extension for TyDIDs Self-Sovereign Identity & Consent Management
npm install tydids-jquery-consentA jQuery extension that simplifies the process of adding GDPR compliance to existing webforms. It allows web developers to easily integrate GDPR compliance into their existing forms using decentralized and self-sovereign identities. This extension solves the problem of allowing data providers (web users) to revoke consent given at a later time.
Uses TyDIDs-Core. Backend/Middleware: TyDIDs-SSI-Consent-Router
Try on JSFiddle
``html`
`javascript`
$('#consentCheck').tydisConsent(); // #consentCheck is ID of checkbox field for GDPR Constent
This will add the necessary functionality to the checkbox. When the user checks the box, an SSI will be generated and downloaded. The value of the checkbox will be changed to the Identity of the SSI.
#### CLI
`bash`
npx tydids-core isgranted
#### Node JS
`javascript`
const provider = new ethers.providers.JsonRpcProvider(env._RPC_URL);
const bn = (await provider.getBlockNumber()).toString() * 1;
let sc = new ethers.Contract(env._revokeContract, env._revokeAbi, provider);
let rcp = await sc.revocations(identity);
let ts = rcp.toString() * 1;
console.log("isGranted("+identity+")@Consensus:"+bn);
if(ts > 0) {
console.log("Revoked at "+new Date(ts*1000).toISOString());
process.exit(1);
} else {
sc = new ethers.Contract(env._publishContract, env._publishAbi, provider);
rcp = await sc.publishs(identity);
ts = rcp.toString() * 1;
console.log("Granted at "+new Date(ts*1000).toISOString());
process.exit(0);
}
For details check TyDIDs-Core
#### Rest API
``
https://api.corrently.io/v2.0/tydids/status?identity=
html
`$3
`html
signature="signature"
payload="payload"
identity="identity"
submit="submit" >
`
signature, payload and identity might be the id of a hidden input field which will be filled after consent.
submit` is the id of a button which will be "disabled" during consent creation.
STROMDAO GmbH
Gerhard Weiser Ring 29
69256 Mauer
Germany
+49 6226 968 009 0
dev@stromdao.com
Handelsregister: HRB 728691 (Amtsgericht Mannheim)
https://stromdao.de/