Socket
Socket
Sign inDemoInstall

@bitgo-forks/bitcoinjs-lib

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitgo-forks/bitcoinjs-lib - npm Package Compare versions

Comparing version 7.1.0-master.8 to 7.1.0-master.9

2

package.json
{
"name": "@bitgo-forks/bitcoinjs-lib",
"version": "7.1.0-master.8",
"version": "7.1.0-master.9",
"description": "Client-side Bitcoin JavaScript library",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -16,7 +16,2 @@ 'use strict';

const FUTURE_SEGWIT_VERSION_DIFF = 0x50;
const FUTURE_SEGWIT_VERSION_WARNING =
'WARNING: Sending to a future segwit version address can lead to loss of funds. ' +
'End users MUST be warned carefully in the GUI and asked if they wish to proceed ' +
'with caution. Wallets should verify the segwit version from the output of fromBech32, ' +
'then decide when it is safe to use which version of segwit.';
function _toFutureSegwitAddress(output, network) {

@@ -37,3 +32,2 @@ const data = output.slice(2);

throw new TypeError('Invalid script for segwit address');
console.warn(FUTURE_SEGWIT_VERSION_WARNING);
if (!network.bech32) {

@@ -146,3 +140,2 @@ throw new TypeError("Network doesn't support native segwit");

) {
console.warn(FUTURE_SEGWIT_VERSION_WARNING);
return bscript.compile([

@@ -149,0 +142,0 @@ decodeBech32.version + FUTURE_SEGWIT_VERSION_DIFF,

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