{"id":13631118,"url":"https://github.com/kevinejohn/blind-signatures","last_synced_at":"2025-12-30T01:37:54.260Z","repository":{"id":28567105,"uuid":"118293351","full_name":"kevinejohn/blind-signatures","owner":"kevinejohn","description":"Chaum's Blind Signatures","archived":false,"fork":false,"pushed_at":"2023-01-06T01:32:07.000Z","size":208,"stargazers_count":35,"open_issues_count":6,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-27T12:02:42.061Z","etag":null,"topics":["blind","blind-signatures","chaum","ecash","javascript","signature"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevinejohn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-21T00:52:37.000Z","updated_at":"2023-11-14T10:26:28.000Z","dependencies_parsed_at":"2023-01-14T09:04:11.741Z","dependency_job_id":null,"html_url":"https://github.com/kevinejohn/blind-signatures","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinejohn%2Fblind-signatures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinejohn%2Fblind-signatures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinejohn%2Fblind-signatures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinejohn%2Fblind-signatures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinejohn","download_url":"https://codeload.github.com/kevinejohn/blind-signatures/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249366036,"owners_count":21258294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blind","blind-signatures","chaum","ecash","javascript","signature"],"created_at":"2024-08-01T22:02:11.302Z","updated_at":"2025-12-30T01:37:54.201Z","avatar_url":"https://github.com/kevinejohn.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Chaum's Blind Signature\n\n[![NPM Package](https://img.shields.io/npm/v/blind-signatures.svg?style=flat-square)](https://www.npmjs.org/package/blind-signatures)\n\n\n### Two implementations of RSA Blind Signatures\n\n1. `./rsablind.js`\nhttps://en.wikipedia.org/wiki/Blind_signature\n\n2. `./rsablind2.js`\nhttps://github.com/arisath/Blind-RSA\n\nThe RSA key generation uses the node-only module `node-rsa` but everything else *should* work outside of node.js\n\n\n## Use\n\n`npm install --save blind-signatures`\n\n```\nconst BlindSignature = require('blind-signatures');\n\nconst Bob = {\n  key: BlindSignature.keyGeneration({ b: 2048 }), // b: key-length\n  blinded: null,\n  unblinded: null,\n  message: null,\n};\n\nconst Alice = {\n  message: 'Hello Chaum!',\n  N: null,\n  E: null,\n  r: null,\n  signed: null,\n  unblinded: null,\n};\n\n// Alice wants Bob to sign a message without revealing it's contents.\n// Bob can later verify he did sign the message\n\nconsole.log('Message:', Alice.message);\n\n// Alice gets N and E variables from Bob's key\nAlice.N = Bob.key.keyPair.n.toString();\nAlice.E = Bob.key.keyPair.e.toString();\n\nconst { blinded, r } = BlindSignature.blind({\n  message: Alice.message,\n  N: Alice.N,\n  E: Alice.E,\n}); // Alice blinds message\nAlice.r = r;\n\n// Alice sends blinded to Bob\nBob.blinded = blinded;\n\nconst signed = BlindSignature.sign({\n  blinded: Bob.blinded,\n  key: Bob.key,\n}); // Bob signs blinded message\n\n// Bob sends signed to Alice\nAlice.signed = signed;\n\nconst unblinded = BlindSignature.unblind({\n  signed: Alice.signed,\n  N: Alice.N,\n  r: Alice.r,\n}); // Alice unblinds\nAlice.unblinded = unblinded;\n\n// Alice verifies\nconst result = BlindSignature.verify({\n  unblinded: Alice.unblinded,\n  N: Alice.N,\n  E: Alice.E,\n  message: Alice.message,\n});\nif (result) {\n  console.log('Alice: Signatures verify!');\n} else {\n  console.log('Alice: Invalid signature');\n}\n\n// Alice sends Bob unblinded signature and original message\nBob.unblinded = Alice.unblinded;\nBob.message = Alice.message;\n\n// Bob verifies\nconst result2 = BlindSignature.verify2({\n  unblinded: Bob.unblinded,\n  key: Bob.key,\n  message: Bob.message,\n});\nif (result2) {\n  console.log('Bob: Signatures verify!');\n} else {\n  console.log('Bob: Invalid signature');\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinejohn%2Fblind-signatures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinejohn%2Fblind-signatures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinejohn%2Fblind-signatures/lists"}