Skip to content

Commit

Permalink
updated license
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinejohn committed Apr 12, 2018
1 parent 2407df9 commit e080c66
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 28 deletions.
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2018 Kevin Johnson (KevinEJohn)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Chaum's Blind Signature

[![NPM Package](https://img.shields.io/npm/v/blind-signatures.svg?style=flat-square)](https://www.npmjs.org/package/blind-signatures)


### Two implementations of RSA Blind Signatures

Expand Down Expand Up @@ -44,7 +46,6 @@ console.log('Message:', Alice.message);
Alice.N = Bob.key.keyPair.n.toString();
Alice.E = Bob.key.keyPair.e.toString();
// N, E
const { blinded, r } = BlindSignature.blind({
message: Alice.message,
N: Alice.N,
Expand All @@ -55,7 +56,6 @@ Alice.r = r;
// Alice sends blinded to Bob
Bob.blinded = blinded;
// N, D (P, Q)
const signed = BlindSignature.sign({
blinded: Bob.blinded,
key: Bob.key,
Expand All @@ -64,7 +64,6 @@ const signed = BlindSignature.sign({
// Bob sends signed to Alice
Alice.signed = signed;
// N
const unblinded = BlindSignature.unblind({
signed: Alice.signed,
N: Alice.N,
Expand All @@ -73,7 +72,6 @@ const unblinded = BlindSignature.unblind({
Alice.unblinded = unblinded;
// Alice verifies
// N, E
const result = BlindSignature.verify({
unblinded: Alice.unblinded,
N: Alice.N,
Expand All @@ -91,7 +89,6 @@ Bob.unblinded = Alice.unblinded;
Bob.message = Alice.message;
// Bob verifies
// N, D
const result2 = BlindSignature.verify2({
unblinded: Bob.unblinded,
key: Bob.key,
Expand Down
36 changes: 18 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"signing"
],
"author": "Kevin Johnson (KevinEJohn)",
"license": "ISC",
"license": "MIT",
"dependencies": {
"js-sha3": "0.7.0",
"jsbn": "1.1.0",
Expand All @@ -29,8 +29,8 @@
"devDependencies": {
"babel-cli": "6.26.0",
"babel-preset-es2015": "6.24.1",
"prettier": "1.10.2",
"tape": "4.8.0"
"prettier": "1.11.1",
"tape": "4.9.0"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion rsablind.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const secureRandom = require('secure-random');
const BigInteger = require('jsbn').BigInteger;
const sha3 = require('js-sha3').sha3_256;
const NodeRSA = require('node-rsa');
const NodeRSA = require('node-rsa');

function keyGeneration(params) {
const key = new NodeRSA(params || { b: 2048 });
Expand Down
2 changes: 1 addition & 1 deletion rsablind2.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const secureRandom = require('secure-random');
const BigInteger = require('jsbn').BigInteger;
const sha3 = require('js-sha3').sha3_256;
const NodeRSA = require('node-rsa');
const NodeRSA = require('node-rsa');

function keyGeneration(params) {
const key = new NodeRSA(params || { b: 2048 });
Expand Down

0 comments on commit e080c66

Please sign in to comment.