Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bitgo/sdk-core

Package Overview
Dependencies
Maintainers
14
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitgo/sdk-core - npm Package Compare versions

Comparing version 26.7.0 to 26.8.0

8

dist/src/account-lib/mpc/util.d.ts

@@ -1,3 +0,9 @@

import { bigIntFromBufferLE, bigIntToBufferLE, bigIntFromU8ABE, bigIntFromBufferBE, bigIntToBufferBE, clamp, getPaillierPublicKey } from '@bitgo/sdk-lib-mpc';
import { bigIntFromBufferLE, bigIntToBufferLE, bigIntFromU8ABE, bigIntFromBufferBE, bigIntToBufferBE, clamp, getPaillierPublicKey, DklsTypes } from '@bitgo/sdk-lib-mpc';
/**
* Combines serialized partial signatures from parties participating in DSG.
* @param round4DsgMessages - round 4 serialized broadcast messages payloads from participating parties
* @returns {DklsTypes.SerializedDklsSignature} - serialized final signature
*/
export declare function combineRound4DklsDsgMessages(round4DsgMessages: DklsTypes.SerializedBroadcastMessage[]): DklsTypes.SerializedDklsSignature;
/**
* @deprecated - use exported methods from @bitgo/sdk-lib-mpc instead

@@ -4,0 +10,0 @@ */

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPaillierPublicKey = exports.clamp = exports.bigIntToBufferBE = exports.bigIntFromBufferBE = exports.bigIntFromU8ABE = exports.bigIntToBufferLE = exports.bigIntFromBufferLE = void 0;
exports.getPaillierPublicKey = exports.clamp = exports.bigIntToBufferBE = exports.bigIntFromBufferBE = exports.bigIntFromU8ABE = exports.bigIntToBufferLE = exports.bigIntFromBufferLE = exports.combineRound4DklsDsgMessages = void 0;
const sdk_lib_mpc_1 = require("@bitgo/sdk-lib-mpc");

@@ -12,2 +12,21 @@ Object.defineProperty(exports, "bigIntFromBufferLE", { enumerable: true, get: function () { return sdk_lib_mpc_1.bigIntFromBufferLE; } });

Object.defineProperty(exports, "getPaillierPublicKey", { enumerable: true, get: function () { return sdk_lib_mpc_1.getPaillierPublicKey; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hY2NvdW50LWxpYi9tcGMvdXRpbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxvREFRNEI7QUFNMUIsbUdBYkEsZ0NBQWtCLE9BYUE7QUFDbEIsaUdBYkEsOEJBQWdCLE9BYUE7QUFDaEIsZ0dBYkEsNkJBQWUsT0FhQTtBQUNmLG1HQWJBLGdDQUFrQixPQWFBO0FBQ2xCLGlHQWJBLDhCQUFnQixPQWFBO0FBQ2hCLHNGQWJBLG1CQUFLLE9BYUE7QUFDTCxxR0FiQSxrQ0FBb0IsT0FhQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gIGJpZ0ludEZyb21CdWZmZXJMRSxcbiAgYmlnSW50VG9CdWZmZXJMRSxcbiAgYmlnSW50RnJvbVU4QUJFLFxuICBiaWdJbnRGcm9tQnVmZmVyQkUsXG4gIGJpZ0ludFRvQnVmZmVyQkUsXG4gIGNsYW1wLFxuICBnZXRQYWlsbGllclB1YmxpY0tleSxcbn0gZnJvbSAnQGJpdGdvL3Nkay1saWItbXBjJztcblxuLyoqXG4gKiBAZGVwcmVjYXRlZCAtIHVzZSBleHBvcnRlZCBtZXRob2RzIGZyb20gQGJpdGdvL3Nkay1saWItbXBjIGluc3RlYWRcbiAqL1xuZXhwb3J0IHtcbiAgYmlnSW50RnJvbUJ1ZmZlckxFLFxuICBiaWdJbnRUb0J1ZmZlckxFLFxuICBiaWdJbnRGcm9tVThBQkUsXG4gIGJpZ0ludEZyb21CdWZmZXJCRSxcbiAgYmlnSW50VG9CdWZmZXJCRSxcbiAgY2xhbXAsXG4gIGdldFBhaWxsaWVyUHVibGljS2V5LFxufTtcbiJdfQ==
/**
* Combines serialized partial signatures from parties participating in DSG.
* @param round4DsgMessages - round 4 serialized broadcast messages payloads from participating parties
* @returns {DklsTypes.SerializedDklsSignature} - serialized final signature
*/
function combineRound4DklsDsgMessages(round4DsgMessages) {
var _a;
const round4DsgMessagesDeser = round4DsgMessages.map(sdk_lib_mpc_1.DklsTypes.deserializeBroadcastMessage);
const signatureR = (_a = round4DsgMessagesDeser.find((m) => m.signatureR !== undefined)) === null || _a === void 0 ? void 0 : _a.signatureR;
if (!signatureR) {
throw Error('None of the round 4 Dkls messages contain a Signature.R value.');
}
const signatureDeser = sdk_lib_mpc_1.DklsUtils.combinePartialSignatures(round4DsgMessagesDeser.map((m) => m.payload), Buffer.from(signatureR).toString('hex'));
return {
R: Buffer.from(signatureDeser.R).toString('hex'),
S: Buffer.from(signatureDeser.S).toString('hex'),
};
}
exports.combineRound4DklsDsgMessages = combineRound4DklsDsgMessages;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hY2NvdW50LWxpYi9tcGMvdXRpbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxvREFVNEI7QUE2QjFCLG1HQXRDQSxnQ0FBa0IsT0FzQ0E7QUFDbEIsaUdBdENBLDhCQUFnQixPQXNDQTtBQUNoQixnR0F0Q0EsNkJBQWUsT0FzQ0E7QUFDZixtR0F0Q0EsZ0NBQWtCLE9Bc0NBO0FBQ2xCLGlHQXRDQSw4QkFBZ0IsT0FzQ0E7QUFDaEIsc0ZBdENBLG1CQUFLLE9Bc0NBO0FBQ0wscUdBdENBLGtDQUFvQixPQXNDQTtBQWpDdEI7Ozs7R0FJRztBQUNILFNBQWdCLDRCQUE0QixDQUMxQyxpQkFBeUQ7O0lBRXpELE1BQU0sc0JBQXNCLEdBQUcsaUJBQWlCLENBQUMsR0FBR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mNvbWJpbmVQYXJ0aWFsU2lnbmF0dXJlcyhcbiAgICByb3VuZDREc2dNZXNzYWdlc0Rlc2VyLm1hcCgobSkgPT4gbS5wYXlsb2FkKSxcbiAgICBCdWZmZXIuZnJvbShzaWduYXR1cmVSKS50b1N0cmluZygnaGV4JylcbiAgKTtcbiAgcmV0dXJuIHtcbiAgICBSOiBCdWZmZXIuZnJvbShzaWduYXR1cmVEZXNlci5SKS50b1N0cmluZygnaGV4JyksXG4gICAgUzogQnVmZmVyLmZyb20oc2lnbmF0dXJlRGVzZXIuUykudG9TdHJpbmcoJ2hleCcpLFxuICB9O1xufVxuXG4vKipcbiAqIEBkZXByZWNhdGVkIC0gdXNlIGV4cG9ydGVkIG1ldGhvZHMgZnJvbSBAYml0Z28vc2RrLWxpYi1tcGMgaW5zdGVhZFxuICovXG5leHBvcnQge1xuICBiaWdJbnRGcm9tQnVmZmVyTEUsXG4gIGJpZ0ludFRvQnVmZmVyTEUsXG4gIGJpZ0ludEZyb21VOEFCRSxcbiAgYmlnSW50RnJvbUJ1ZmZlckJFLFxuICBiaWdJbnRUb0J1ZmZlckJFLFxuICBjbGFtcCxcbiAgZ2V0UGFpbGxpZXJQdWJsaWNLZXksXG59O1xuIl19

4

dist/src/bitgo/address-book/address-book.js

@@ -15,3 +15,3 @@ "use strict";

*/
return structuredClone(this._listing);
return JSON.parse(JSON.stringify(this._listing));
}

@@ -143,2 +143,2 @@ /**

exports.AddressBook = AddressBook;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkcmVzcy1ib29rLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2JpdGdvL2FkZHJlc3MtYm9vay9hZGRyZXNzLWJvb2sudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBMEJBLE1BQWEsV0FBVztJQU90QixZQUFZLFlBQW9CLEVBQUUsS0FBZ0IsRUFBRSx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0xICYmIHRoaXMuX2xpc3RpbmcubGlzdGluZ0VudHJpZXMpIHtcbiAgICAgICAgdGhpcy5fbGlzdGluZy5saXN0aW5nRW50cmllc1tpbmRleF0gPSB7IC4uLnJlc3BvbnNlIH07XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLl9saXN0aW5nLmxpc3RpbmdFbnRyaWVzPy5wdXNoKHsgLi4ucmVzcG9uc2UgfSk7XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiByZXNwb25zZTtcbiAgfVxufVxuIl19
{
"name": "@bitgo/sdk-core",
"version": "26.7.0",
"version": "26.8.0",
"description": "core library functions for BitGoJS",

@@ -42,4 +42,4 @@ "main": "./dist/src/index.js",

"@bitgo/public-types": "2.1.0",
"@bitgo/sdk-lib-mpc": "^9.2.0",
"@bitgo/statics": "^48.6.0",
"@bitgo/sdk-lib-mpc": "^9.3.0",
"@bitgo/statics": "^48.7.0",
"@bitgo/utxo-lib": "^9.35.0",

@@ -80,3 +80,3 @@ "@noble/secp256k1": "1.6.3",

},
"gitHead": "19fa76ab0ab6f7ba767e10399220d3d8705fd609"
"gitHead": "29470bfea8b3cfd0321b25ebe6f33731da281380"
}

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 too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc