Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@mattrglobal/jsonld-signatures-bbs
Advanced tools
A JSON-LD linked data proof suite for creating and verifying BBS+ signatures and proofs
The following repository contains the specification and a reference implementation for generating linked data signatures using the BBS+ Signature Algorithm using BLS12-381 key pairs.
Due to the properties of a BBS+ Signatures a zero knowledge proof can be derived from the signature, whereby the party generating the proof can elect to selectively disclose statements from the originally signed payload.
To install
yarn install --frozen-lockfile
To run the tests
yarn test
The following is an example of a signed JSON-LD document featuring a BBS+ linked data signature.
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/citizenship/v1"
],
"type": ["VerifiableCredential", "PermanentResidentCard"],
"issuer": "did:example:28394728934792387",
"issuanceDate": "2019-12-03T12:19:52Z",
"expirationDate": "2029-12-03T12:19:52Z",
"credentialSubject": {
"type": ["PermanentResident", "Person"],
"givenName": "JOHN",
"familyName": "SMITH",
"gender": "Male",
"image": "data:image/png;base64,iVBORw0KGgo...kJggg==",
"residentSince": "2015-01-01",
"lprCategory": "C09",
"lprNumber": "999-999-999",
"commuterClassification": "C1",
"birthCountry": "Bahamas",
"birthDate": "1958-07-17"
},
"proof": {
"type": "BBSSignature2020",
"signature": "eyJhbGciOiJFZERTQSIsI...wRG2fNmAx60Vi4Ag",
"requiredRevealStatements": [ 1, 2, 3, 4, 10],
"proofPurpose": "assertionMethod",
"verificationMethod": "did:example:28394728934792387#keys-7f83he7s8",
"subjectVerificationMethod": "did:example13920596349402396#keys-5920692"
}
}
Whereby the subject is able to generate a zero knowledge proof, from the signed JSON-LD document of the form.
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/citizenship/v1"
],
"type": ["VerifiableCredential", "PermanentResidentCard"],
"issuer": "did:example:28394728934792387",
"issuanceDate": "2019-12-03T12:19:52Z",
"expirationDate": "2029-12-03T12:19:52Z",
"credentialSubject": {
"type": ["PermanentResident", "Person"],
"givenName": "JOHN",
"familyName": "SMITH",
"commuterClassification": "C1",
"birthCountry": "Bahamas",
"birthDate": "1958-07-17"
},
"proof": {
"type": "BBSSignatureProof2020",
"proof": "eyJhbGciOiJFZERTQSIsI...wRG2fNmAx60Vi4Ag",
"domain": "did:example:relying-party",
"subjectDomainProof": "eigqeivIenvIEiHtiW...6ChjkeIchjs"
"requiredRevealStatements": [ 1, 2, 3, 4, 10],
"revealedAttributes": [ 1, 2, 3, 4, 5 ],
"totalAttributes": 10,
"proofPurpose": "assertionMethod",
"verificationMethod": "did:example:28394728934792387#keys-7f83he7s8"
}
}
0.1.0 (2020-04-27)
Initial release
FAQs
A JSON-LD linked data proof suite for creating and verifying BBS+ signatures and proofs
The npm package @mattrglobal/jsonld-signatures-bbs receives a total of 1,598 weekly downloads. As such, @mattrglobal/jsonld-signatures-bbs popularity was classified as popular.
We found that @mattrglobal/jsonld-signatures-bbs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.