diff --git a/README.md b/README.md index 74b5513cb..46ea75b5c 100644 --- a/README.md +++ b/README.md @@ -177,7 +177,7 @@ performing the preprocessing may be different than the ones carrying out the onl If preprocessing is not used, and `crypto_provider` option is set to true during instance creation, JIFF will acquire all required corelated randomness and preprocessing material from the server. This yields an asymetric trust model, where the computation is secure -against a dishonest majority of non-server parties, but insecure against coalitions of one or more party plus the server. Conretely, this +against a dishonest majority of non-server parties, but insecure against coalitions of one or more party plus the server. Concretely, this reduces to more traditional models in certain cases. For example, if the computation is made out of two parties and a server, this becomes equivalent to 3-party computation with honest majority. diff --git a/lib/common/helpers.js b/lib/common/helpers.js index 5fbab5a01..85e114ea9 100644 --- a/lib/common/helpers.js +++ b/lib/common/helpers.js @@ -43,7 +43,7 @@ exports.random = function (max) { } }; -// actual mode +// actual mod exports.mod = function (x, y) { if (x < 0) { return (x % y) + y; diff --git a/lib/ext/jiff-client-bignumber.js b/lib/ext/jiff-client-bignumber.js index de0a90a24..ae90f32ec 100644 --- a/lib/ext/jiff-client-bignumber.js +++ b/lib/ext/jiff-client-bignumber.js @@ -271,7 +271,7 @@ throw new Error('Please apply bignumber before negative number extensions'); } if (jiff.has_extension('fixedpoint')) { - throw new Error('Please apply bignumber before negative number extensions'); + throw new Error('Please apply bignumber before fixedpoint extensions'); } // Turn things into their BigNumber equivalent diff --git a/lib/ext/jiff-client-websockets.js b/lib/ext/jiff-client-websockets.js index a6f9cd63e..40292781d 100644 --- a/lib/ext/jiff-client-websockets.js +++ b/lib/ext/jiff-client-websockets.js @@ -188,7 +188,7 @@ onError(msg.data); break; default: - console.log('Uknown protocol, ' + msg.socketProtocol + ', received'); + console.log('Unknown protocol, ' + msg.socketProtocol + ', received'); } }