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

@waves/ride-js

Package Overview
Dependencies
Maintainers
17
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waves/ride-js - npm Package Compare versions

Comparing version 1.1.0-beta.3 to 1.1.0-beta.4

src/sha256.js

2

package.json
{
"name": "@waves/ride-js",
"version": "1.1.0-beta.3",
"version": "1.1.0-beta.4",
"description": "Js compiler for Ride - Waves smart contract language.",

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

@@ -64,2 +64,3 @@ export interface ICompilationResult {

scriptType: number
imports: () => string
}

@@ -69,3 +70,3 @@

export function scriptInfo(code: string): IScriptInfo;
export function scriptInfo(code: string): IScriptInfo | ICompilationError;

@@ -72,0 +73,0 @@ export function getTypes(stdlibVersion?: number, isTokenContext?: boolean): TStructField[];

@@ -5,2 +5,3 @@ const Base58 = require('./base58');

const blake = require('./blake2b');
const sha256 = require('./sha256').sha256;

@@ -22,2 +23,5 @@ global.base58Encode = function (bytes) {

};
global.sha256 = function (bytes) {
return Uint8Array.from(sha256(bytes)).buffer
};
global.blake2b256 = function (bytes) {

@@ -24,0 +28,0 @@ return blake2b(new Uint8Array(bytes)).buffer

Sorry, the diff of this file is too big to display

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