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
1105
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.62 to 2.4.2-beta.63

dist/src/bitgo/parseInput.d.ts

1

dist/src/bitgo/index.d.ts

@@ -6,2 +6,3 @@ export * as bcashAddress from './bitcoincash';

export * from './dash';
export * from './parseInput';
export * from './signature';

@@ -8,0 +9,0 @@ export * from './transaction';

3

dist/src/bitgo/index.js

@@ -19,2 +19,3 @@ "use strict";

__exportStar(require("./dash"), exports);
__exportStar(require("./parseInput"), exports);
__exportStar(require("./signature"), exports);

@@ -30,2 +31,2 @@ __exportStar(require("./transaction"), exports);

__exportStar(require("./tnumber"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYml0Z28vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBLGdEQUE4QztBQUM5Qyx1Q0FBcUM7QUFDckMsbUVBQWlFO0FBQ2pFLG1EQUFpRDtBQUNqRCx5Q0FBdUI7QUFDdkIsOENBQTRCO0FBQzVCLGdEQUE4QjtBQUM5QiwwQ0FBd0I7QUFDeEIsNENBQTBCO0FBQzFCLDZDQUEyQjtBQUMzQixvREFBa0M7QUFDbEMsMkRBQXlDO0FBQ3pDLDJDQUF5QjtBQUN6QiwwQ0FBd0I7QUFDeEIsNENBQTBCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogYXMgYmNhc2hBZGRyZXNzIGZyb20gJy4vYml0Y29pbmNhc2gnO1xuZXhwb3J0ICogYXMga2V5dXRpbCBmcm9tIC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sMENBQXdCO0FBQ3hCLDRDQUEwQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGFzIGJjYXNoQWRkcmVzcyBmcm9tICcuL2JpdGNvaW5jYXNoJztcbmV4cG9ydCAqIGFzIGtleXV0aWwgZnJvbSAnLi9rZXl1dGlsJztcbmV4cG9ydCAqIGFzIG5vblN0YW5kYXJkSGFsZlNpZ25lZCBmcm9tICcuL25vblN0YW5kYXJkSGFsZlNpZ25lZCc7XG5leHBvcnQgKiBhcyBvdXRwdXRTY3JpcHRzIGZyb20gJy4vb3V0cHV0U2NyaXB0cyc7XG5leHBvcnQgKiBmcm9tICcuL2Rhc2gnO1xuZXhwb3J0ICogZnJvbSAnLi9wYXJzZUlucHV0JztcbmV4cG9ydCAqIGZyb20gJy4vc2lnbmF0dXJlJztcbmV4cG9ydCAqIGZyb20gJy4vdHJhbnNhY3Rpb24nO1xuZXhwb3J0ICogZnJvbSAnLi90eXBlcyc7XG5leHBvcnQgKiBmcm9tICcuL1Vuc3BlbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9VdHhvUHNidCc7XG5leHBvcnQgKiBmcm9tICcuL1V0eG9UcmFuc2FjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL1V0eG9UcmFuc2FjdGlvbkJ1aWxkZXInO1xuZXhwb3J0ICogZnJvbSAnLi93YWxsZXQnO1xuZXhwb3J0ICogZnJvbSAnLi96Y2FzaCc7XG5leHBvcnQgKiBmcm9tICcuL3RudW1iZXInO1xuIl19
/// <reference types="node" />
import { BIP32Interface } from 'bip32';
import { TxInput, TxOutput } from 'bitcoinjs-lib';
import { TxOutput } from 'bitcoinjs-lib';
import { UtxoTransaction } from './UtxoTransaction';
import { UtxoTransactionBuilder } from './UtxoTransactionBuilder';
import { ScriptType, ScriptType2Of3 } from './outputScripts';
import { ScriptType2Of3 } from './outputScripts';
import { Triple } from './types';
import { Network } from '../networks';
declare const inputTypes: readonly ["multisig", "nonstandard", "nulldata", "pubkey", "pubkeyhash", "scripthash", "witnesspubkeyhash", "witnessscripthash", "taproot", "taprootnofn", "witnesscommitment"];
declare type InputType = typeof inputTypes[number];
export declare function isPlaceholderSignature(v: number | Buffer): boolean;
export interface ParsedSignatureScript {
scriptType: ScriptType | 'p2pkh' | undefined;
isSegwitInput: boolean;
inputClassification: InputType;
p2shOutputClassification?: string;
}
export interface ParsedSignatureScriptUnknown extends ParsedSignatureScript {
scriptType: undefined;
}
export interface ParsedSignatureScriptP2PK extends ParsedSignatureScript {
scriptType: 'p2shP2pk';
inputClassification: 'scripthash';
}
export interface ParsedSignatureScriptP2PKH extends ParsedSignatureScript {
scriptType: 'p2pkh';
inputClassification: 'pubkeyhash';
signatures: [Buffer];
publicKeys: [Buffer];
pubScript?: Buffer;
}
export interface ParsedSignatureScript2Of3 extends ParsedSignatureScript {
scriptType: 'p2sh' | 'p2shP2wsh' | 'p2wsh';
inputClassification: 'scripthash' | 'witnessscripthash';
publicKeys: [Buffer, Buffer, Buffer];
signatures: [Buffer, Buffer] | [Buffer | 0, Buffer | 0, Buffer | 0];
pubScript: Buffer;
}
export interface ParsedSignatureScriptTaproot extends ParsedSignatureScript {
scriptType: 'p2tr';
inputClassification: 'taproot';
publicKeys: [Buffer] | [Buffer, Buffer];
signatures: [Buffer] | [Buffer, Buffer];
controlBlock: Buffer | undefined;
scriptPathLevel: number | undefined;
pubScript: Buffer;
}
export declare function getDefaultSigHash(network: Network, scriptType?: ScriptType2Of3): number;
/**
* Parse a transaction's signature script to obtain public keys, signatures, the sig script,
* and other properties.
*
* Only supports script types used in BitGo transactions.
*
* @param input
* @returns ParsedSignatureScript
*/
export declare function parseSignatureScript(input: TxInput): ParsedSignatureScriptUnknown | ParsedSignatureScriptP2PK | ParsedSignatureScriptP2PKH | ParsedSignatureScript2Of3 | ParsedSignatureScriptTaproot;
export declare function parseSignatureScript2Of3(input: TxInput): ParsedSignatureScript2Of3 | ParsedSignatureScriptTaproot;
/**
* Constraints for signature verifications.

@@ -119,5 +68,5 @@ * Parameters are conjunctive: if multiple parameters are set, a verification for an individual

export declare function verifySignatureWithPublicKey<TNumber extends number | bigint>(transaction: UtxoTransaction<TNumber>, inputIndex: number, prevOutputs: TxOutput<TNumber>[], publicKey: Buffer): boolean;
export declare function getDefaultSigHash(network: Network, scriptType?: ScriptType2Of3): number;
export declare function signInputP2shP2pk<TNumber extends number | bigint>(txBuilder: UtxoTransactionBuilder<TNumber>, vin: number, keyPair: BIP32Interface): void;
export declare function signInput2Of3<TNumber extends number | bigint>(txBuilder: UtxoTransactionBuilder<TNumber>, vin: number, scriptType: ScriptType2Of3, pubkeys: Triple<Buffer>, keyPair: BIP32Interface, cosigner: Buffer, amount: TNumber): void;
export {};
//# sourceMappingURL=signature.d.ts.map
{
"name": "@bitgo-beta/utxo-lib",
"version": "2.4.2-beta.62",
"version": "2.4.2-beta.63",
"description": "Client-side Bitcoin JavaScript library",

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

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

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

"license": "MIT",
"gitHead": "c0478576ca3a696755c70ed657a8b46af611743b"
"gitHead": "bd0e9d76d35211dc5714b2d38ebfb45a24946b1b"
}

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

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