@bitgo-beta/sdk-lib-mpc
Advanced tools
Comparing version 8.2.0-beta.1 to 8.2.0-beta.2
export * as EcdsaTypes from './types'; | ||
export * as EcdsaRangeProof from './rangeproof'; | ||
export * as EcdsaPallierProof from './pallierproof'; | ||
export declare const minModulusBitLength = 3072; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -22,5 +22,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EcdsaRangeProof = exports.EcdsaTypes = void 0; | ||
exports.minModulusBitLength = exports.EcdsaPallierProof = exports.EcdsaRangeProof = exports.EcdsaTypes = void 0; | ||
exports.EcdsaTypes = __importStar(require("./types")); | ||
exports.EcdsaRangeProof = __importStar(require("./rangeproof")); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdHNzL2VjZHNhL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxzREFBc0M7QUFDdEMsZ0VBQWdEIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogYXMgRWNkc2FUeXBlcyBmcm9tICcuL3R5cGVzJztcbmV4cG9ydCAqIGFzIEVjZHNhUmFuZ2VQcm9vZiBmcm9tICcuL3JhbmdlcHJvb2YnO1xuIl19 | ||
exports.EcdsaPallierProof = __importStar(require("./pallierproof")); | ||
exports.minModulusBitLength = 3072; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdHNzL2VjZHNhL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxzREFBc0M7QUFDdEMsZ0VBQWdEO0FBQ2hELG9FQUFvRDtBQUV2QyxRQUFBLG1CQUFtQixHQUFHLElBQUksQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGFzIEVjZHNhVHlwZXMgZnJvbSAnLi90eXBlcyc7XG5leHBvcnQgKiBhcyBFY2RzYVJhbmdlUHJvb2YgZnJvbSAnLi9yYW5nZXByb29mJztcbmV4cG9ydCAqIGFzIEVjZHNhUGFsbGllclByb29mIGZyb20gJy4vcGFsbGllcnByb29mJztcblxuZXhwb3J0IGNvbnN0IG1pbk1vZHVsdXNCaXRMZW5ndGggPSAzMDcyO1xuIl19 |
@@ -35,11 +35,19 @@ /// <reference types="node" /> | ||
/** | ||
* Generate a random number co-prime to x | ||
* Generate a random positive integer co-prime to x | ||
* @param x | ||
* @returns {Promise<bigint>} | ||
*/ | ||
export declare function randomCoPrimeTo(x: bigint): Promise<bigint>; | ||
export declare function randomPositiveCoPrimeTo(x: bigint): Promise<bigint>; | ||
/** | ||
* Generate a random positive integer coprime less than x with the same bit depth. | ||
* @param x | ||
* @returns {Promise<bigint>} | ||
*/ | ||
export declare function randomPositiveCoPrimeLessThan(x: bigint): Promise<bigint>; | ||
/** | ||
* Generate a random number of a given bitlength | ||
* @param bitlength | ||
* @returns {Promise<bigint>} | ||
*/ | ||
export declare function randomBigInt(bitlength: number): Promise<bigint>; | ||
//# sourceMappingURL=util.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.randomBigInt = exports.randomCoPrimeTo = exports.getPaillierPublicKey = exports.clamp = exports.bigIntFromU8ABE = exports.bigIntFromBufferBE = exports.bigIntToBufferBE = exports.bigIntFromBufferLE = exports.bigIntToBufferLE = exports.bigIntToHex = exports.hexToBigInt = exports.convertBigIntArrToHexArr = exports.convertHexArrToBigIntArr = void 0; | ||
exports.randomBigInt = exports.randomPositiveCoPrimeLessThan = exports.randomPositiveCoPrimeTo = exports.getPaillierPublicKey = exports.clamp = exports.bigIntFromU8ABE = exports.bigIntFromBufferBE = exports.bigIntToBufferBE = exports.bigIntFromBufferLE = exports.bigIntToBufferLE = exports.bigIntToHex = exports.hexToBigInt = exports.convertBigIntArrToHexArr = exports.convertHexArrToBigIntArr = void 0; | ||
const paillier_bigint_1 = require("paillier-bigint"); | ||
@@ -103,6 +103,7 @@ const bigint_crypto_utils_1 = require("bigint-crypto-utils"); | ||
/** | ||
* Generate a random number co-prime to x | ||
* Generate a random positive integer co-prime to x | ||
* @param x | ||
* @returns {Promise<bigint>} | ||
*/ | ||
async function randomCoPrimeTo(x) { | ||
async function randomPositiveCoPrimeTo(x) { | ||
while (true) { | ||
@@ -115,6 +116,24 @@ const y = await randomBigInt(bigint_crypto_utils_1.bitLength(x)); | ||
} | ||
exports.randomCoPrimeTo = randomCoPrimeTo; | ||
exports.randomPositiveCoPrimeTo = randomPositiveCoPrimeTo; | ||
/** | ||
* Generate a random positive integer coprime less than x with the same bit depth. | ||
* @param x | ||
* @returns {Promise<bigint>} | ||
*/ | ||
async function randomPositiveCoPrimeLessThan(x) { | ||
if (x <= BigInt(2)) { | ||
throw new Error('x must be larger than 2'); | ||
} | ||
while (true) { | ||
const y = await randomBigInt(bigint_crypto_utils_1.bitLength(x)); | ||
if (y > BigInt(0) && y < x && bigint_mod_arith_1.gcd(x, y) === BigInt(1)) { | ||
return y; | ||
} | ||
} | ||
} | ||
exports.randomPositiveCoPrimeLessThan = randomPositiveCoPrimeLessThan; | ||
/** | ||
* Generate a random number of a given bitlength | ||
* @param bitlength | ||
* @returns {Promise<bigint>} | ||
*/ | ||
@@ -125,2 +144,2 @@ async function randomBigInt(bitlength) { | ||
exports.randomBigInt = randomBigInt; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsLnRzIl0sIm5h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hwb3J0IGFzeW5jIGZ1bmN0aW9uIHJhbmRvbVBvc2l0aXZlQ29QcmltZUxlc3NUaGFuKHg6IGJpZ2ludCk6IFByb21pc2U8YmlnaW50PiB7XG4gIGlmICh4IDw9IEJpZ0ludCgyKSkge1xuICAgIHRocm93IG5ldyBFcnJvcigneCBtdXN0IGJlIGxhcmdlciB0aGFuIDInKTtcbiAgfVxuICB3aGlsZSAodHJ1ZSkge1xuICAgIGNvbnN0IHkgPSBhd2FpdCByYW5kb21CaWdJbnQoYml0TGVuZ3RoKHgpKTtcbiAgICBpZiAoeSA+IEJpZ0ludCgwKSAmJiB5IDwgeCAmJiBnY2QoeCwgeSkgPT09IEJpZ0ludCgxKSkge1xuICAgICAgcmV0dXJuIHk7XG4gICAgfVxuICB9XG59XG5cbi8qKlxuICogR2VuZXJhdGUgYSByYW5kb20gbnVtYmVyIG9mIGEgZ2l2ZW4gYml0bGVuZ3RoXG4gKiBAcGFyYW0gYml0bGVuZ3RoXG4gKiBAcmV0dXJucyB7UHJvbWlzZTxiaWdpbnQ+fVxuICovXG5leHBvcnQgYXN5bmMgZnVuY3Rpb24gcmFuZG9tQmlnSW50KGJpdGxlbmd0aDogbnVtYmVyKTogUHJvbWlzZTxiaWdpbnQ+IHtcbiAgcmV0dXJuIGJpZ0ludEZyb21CdWZmZXJCRShCdWZmZXIuZnJvbShhd2FpdCByYW5kQml0cyhiaXRsZW5ndGgsIHRydWUpKSk7XG59XG4iXX0= |
{ | ||
"name": "@bitgo-beta/sdk-lib-mpc", | ||
"version": "8.2.0-beta.1", | ||
"version": "8.2.0-beta.2", | ||
"description": "library functions for BitGo's MPC solution", | ||
@@ -51,3 +51,3 @@ "main": "./dist/src/index.js", | ||
}, | ||
"gitHead": "c58866a4eb52e1b7c8d187ce3734637a2bac7714" | ||
"gitHead": "9491398b94fe2ca8dded5f17055e8e50fa8c9a77" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected potential malware
Supply chain riskAI has identified this package as malware. This is a strong signal that the package may be malicious.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
9838154
45
2168
0
1