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

scryptlib

Package Overview
Dependencies
Maintainers
2
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scryptlib - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

1

dist/scryptTypes.d.ts

@@ -5,2 +5,3 @@ export declare abstract class ScryptType {

private _asm;
private _type;
constructor(value: number | BigInt | boolean | string);

@@ -7,0 +8,0 @@ get value(): number | BigInt | boolean | string;

10

dist/scryptTypes.js

@@ -11,9 +11,7 @@ "use strict";

const [asm, scrType] = utils_1.literal2Asm(this._literal);
if (this.constructor.name.toLowerCase() !== scrType.toLowerCase()) {
throw new Error(`type mismatch ${scrType} for ${this.constructor.name}`);
}
this._type = scrType;
this._asm = asm;
}
catch (error) {
throw new Error(`constructor param for ${this.constructor.name} ${error.message}`);
throw new Error(`can't get type from ${this._literal}, ${error.message}`);
}

@@ -166,6 +164,2 @@ }

this._buf = Buffer.from(bytesVal, 'hex');
const LEN_MIN_BYTES = 156;
if (this._buf.length <= LEN_MIN_BYTES) {
throw new Error(`Invalid preimage string length, should be greater than ${LEN_MIN_BYTES} bytes`);
}
}

@@ -172,0 +166,0 @@ getReader(buf) {

@@ -109,3 +109,3 @@ "use strict";

}
// SigHashType
// SigHashPreimage
m = /^SigHashPreimage\(b'([\da-fA-F]+)'\)$/.exec(l);

@@ -112,0 +112,0 @@ if (m) {

{
"name": "scryptlib",
"version": "0.2.6",
"version": "0.2.7",
"description": "Javascript SDK for integration of Bitcoin SV Smart Contracts written in sCrypt language.",

@@ -5,0 +5,0 @@ "engines": {

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