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

@bitgo-beta/utxo-lib

Package Overview
Dependencies
Maintainers
2
Versions
1110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitgo-beta/utxo-lib - npm Package Compare versions

Comparing version 2.4.2-beta.42 to 2.4.2-beta.43

4

dist/src/bitgo/Unspent.d.ts

@@ -7,3 +7,3 @@ /// <reference types="node" />

import { UtxoTransactionBuilder } from './UtxoTransactionBuilder';
import { ChainCode, RootWalletKeys, WalletUnspent } from './wallet';
import { ChainCode, RootWalletKeys, WalletUnspent, KeyName } from './wallet';
/**

@@ -86,3 +86,3 @@ * Public unspent data in BitGo-specific representation.

export declare function addChangeOutputToPsbt(psbt: UtxoPsbt<UtxoTransaction<bigint>>, rootWalletKeys: RootWalletKeys, chain: ChainCode, index: number, value: bigint): void;
export declare function addToPsbt(psbt: UtxoPsbt<UtxoTransaction<bigint>>, u: WalletUnspent<bigint>, rootWalletKeys: RootWalletKeys, signer: string, cosigner: string, network: Network): void;
export declare function addToPsbt(psbt: UtxoPsbt<UtxoTransaction<bigint>>, u: WalletUnspent<bigint>, rootWalletKeys: RootWalletKeys, signer: KeyName, cosigner: KeyName, network: Network): void;
/**

@@ -89,0 +89,0 @@ * Sum the values of the unspents.

@@ -211,2 +211,2 @@ "use strict";

exports.unspentSum = unspentSum;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVW5zcGVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9iaXRnby9VbnNwZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGlEQUFrRDtBQUVsRCx3Q0FBNEM7QUFDNUMsbURBQXFIO0FBSXJILHFDQUFrRztBQTBCbEcsU0FBZ0IsbUJBQW1CLENBQ2pDLENBQW1CO0lBRW5CLE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aGVzIGFtb3VudFR5cGVcbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIHVuc3BlbnRTdW08VE51bWJlciBleHRlbmRzIG51bWJlciB8IGJpZ2ludD4oXG4gIHVuc3BlbnRzOiBVbnNwZW50PFROdW1iZXI+W10sXG4gIGFtb3VudFR5cGU6ICdudW1iZXInIHwgJ2JpZ2ludCcgPSAnbnVtYmVyJ1xuKTogVE51bWJlciB7XG4gIGlmIChhbW91bnRUeXBlID09PSAnYmlnaW50Jykge1xuICAgIHJldHVybiB1bnNwZW50cy5yZWR1Y2UoKHN1bSwgdSkgPT4gc3VtICsgKHUudmFsdWUgYXMgYmlnaW50KSwgQmlnSW50KDApKSBhcyBUTnVtYmVyO1xuICB9IGVsc2Uge1xuICAgIGNvbnN0IHN1bSA9IHVuc3BlbnRzLnJlZHVjZSgoc3VtLCB1KSA9PiBzdW0gKyAodS52YWx1ZSBhcyBudW1iZXIpLCBOdW1iZXIoMCkpO1xuICAgIGlmICghTnVtYmVyLmlzU2FmZUludGVnZXIoc3VtKSkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKCd1bnNwZW50IHN1bSBpcyBub3QgYSBzYWZlIGludGVnZXIgbnVtYmVyLCBjb25zaWRlciB1c2luZyBiaWdpbnQnKTtcbiAgICB9XG4gICAgcmV0dXJuIHN1bSBhcyBUTnVtYmVyO1xuICB9XG59XG4iXX0=

@@ -15,2 +15,3 @@ /// <reference types="node" />

import { Triple } from '../types';
export declare type KeyName = 'user' | 'backup' | 'bitgo';
export declare function eqPublicKey(a: BIP32Interface, b: BIP32Interface): boolean;

@@ -17,0 +18,0 @@ /**

@@ -104,2 +104,2 @@ "use strict";

RootWalletKeys.defaultPrefix = '0/0';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiV2FsbGV0S2V5cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9iaXRnby93YWxsZXQv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aW4gd2FsbGV0S2V5c2ApO1xuICAgIH1cbiAgICByZXR1cm4gYCR7cHJlZml4fS8ke2NoYWlufS8ke2luZGV4fWA7XG4gIH1cblxuICAvKipcbiAgICogQHBhcmFtIGNoYWluXG4gICAqIEBwYXJhbSBpbmRleFxuICAgKiBAcmV0dXJuIHdhbGxldEtleXMgZm9yIGEgcGFydGljdWxhciBhZGRyZXNzIGlkZW50aWZpZWQgYnkgKGNoYWluLCBpbmRleClcbiAgICovXG4gIGRlcml2ZUZvckNoYWluQW5kSW5kZXgoY2hhaW46IG51bWJlciwgaW5kZXg6IG51bWJlcik6IERlcml2ZWRXYWxsZXRLZXlzIHtcbiAgICByZXR1cm4gbmV3IERlcml2ZWRXYWxsZXRLZXlzKFxuICAgICAgdGhpcyxcbiAgICAgIHRoaXMudHJpcGxlLm1hcCgoaykgPT4gdGhpcy5nZXREZXJpdmF0aW9uUGF0aChrLCBjaGFpbiwgaW5kZXgpKSBhcyBUcmlwbGU8c3RyaW5nPlxuICAgICk7XG4gIH1cbn1cbiJdfQ==
{
"name": "@bitgo-beta/utxo-lib",
"version": "2.4.2-beta.42",
"version": "2.4.2-beta.43",
"description": "Client-side Bitcoin JavaScript library",

@@ -49,3 +49,3 @@ "main": "./dist/src/index.js",

"dependencies": {
"@bitgo-beta/blake2b": "3.0.4-beta.42",
"@bitgo-beta/blake2b": "3.0.4-beta.43",
"@noble/secp256k1": "1.6.3",

@@ -85,3 +85,3 @@ "bip174": "npm:@bitgo/bip174@3.0.0",

"license": "MIT",
"gitHead": "dbe0f4450f21d9391420c451cf822b09199b5102"
"gitHead": "dd80795f35e939046ec812f24e13f3966d69a3ee"
}

Sorry, the diff of this file is not supported yet

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