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

@cashscript/utils

Package Overview
Dependencies
Maintainers
0
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cashscript/utils - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

dist/bip68.d.ts

9

dist/hash.js

@@ -1,11 +0,10 @@

// TODO: Replace with libauth
import hash from 'hash.js';
import { sha256 as sha256Lib, ripemd160 as ripemd160Lib, sha512 as sha512Lib } from '@bitauth/libauth';
export function sha512(payload) {
return Uint8Array.from(hash.sha512().update(payload).digest());
return sha512Lib.hash(payload);
}
export function sha256(payload) {
return Uint8Array.from(hash.sha256().update(payload).digest());
return sha256Lib.hash(payload);
}
export function ripemd160(payload) {
return Uint8Array.from(hash.ripemd160().update(payload).digest());
return ripemd160Lib.hash(payload);
}

@@ -12,0 +11,0 @@ export function hash160(payload) {

export * from './artifact.js';
export * from './bip68.js';
export * from './bitauth-script.js';
export * from './data.js';
export * from './hash.js';
export * from './script.js';
export * from './source-map.js';
export * from './types.js';
export * from './source-map.js';
export * from './bitauth-script.js';
export * from './artifact.js';
export * from './bip68.js';
export * from './bitauth-script.js';
export * from './data.js';
export * from './hash.js';
export * from './script.js';
export * from './source-map.js';
export * from './types.js';
export * from './source-map.js';
export * from './bitauth-script.js';
//# sourceMappingURL=index.js.map
{
"name": "@cashscript/utils",
"version": "0.10.1",
"version": "0.10.2",
"description": "CashScript utilities and types",

@@ -43,4 +43,3 @@ "keywords": [

"dependencies": {
"@bitauth/libauth": "^3.0.0",
"hash.js": "^1.1.7"
"@bitauth/libauth": "^3.0.0"
},

@@ -53,3 +52,3 @@ "devDependencies": {

},
"gitHead": "0dd95d5b05a438ac1884bdb2252aec6a4c77e5b2"
"gitHead": "a7c4f652462ddfccd54fc929f06cb16022769df9"
}
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