@cashscript/utils
Advanced tools
Comparing version 0.10.1 to 0.10.2
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47159
1
23
915
- Removedhash.js@^1.1.7
- Removedhash.js@1.1.7(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimalistic-assert@1.0.1(transitive)