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

bitcoin-address-validation

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcoin-address-validation - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

6

lib/index.cjs.js

@@ -8,9 +8,7 @@ 'use strict';

var hashSha256 = _interopDefault(require('hash.js/lib/hash/sha/256'));
var buffer = _interopDefault(require('buffer/'));
var bops = _interopDefault(require('bops'));
const Buffer = buffer.Buffer;
const base58 = baseX('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz');
const sha256 = payload => Buffer.from(hashSha256().update(payload).digest());
const sha256 = payload => bops.from(hashSha256().update(payload).digest());

@@ -17,0 +15,0 @@ const addressTypes = {

import baseX from 'base-x';
import bech32 from 'bech32';
import hashSha256 from 'hash.js/lib/hash/sha/256';
import buffer from 'buffer/';
import bops from 'bops';
const Buffer = buffer.Buffer;
const base58 = baseX('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz');
const sha256 = payload => Buffer.from(hashSha256().update(payload).digest());
const sha256 = payload => bops.from(hashSha256().update(payload).digest());

@@ -12,0 +10,0 @@ const addressTypes = {

{
"name": "bitcoin-address-validation",
"version": "0.2.2",
"version": "0.2.3",
"description": "Validate any Bitcoin address - Bech32, P2SH and P2PKH",

@@ -54,5 +54,5 @@ "homepage": "https://github.com/ruigomeseu/bitcoin-address-validation",

"bech32": "^1.1.3",
"buffer": "^5.2.1",
"bops": "^1.0.0",
"hash.js": "^1.1.5"
}
}

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