@zilliqa-js/crypto
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0
@@ -44,3 +44,4 @@ import { BN, validation, bytes } from '@zilliqa-js/util'; | ||
var b = Buffer.allocUnsafe(bytes$$1); | ||
require('sodium').api.randombytes_buf(b, bytes$$1); | ||
var sodium = require('sodium-native'); | ||
sodium.randombytes_buf(b); | ||
randBz = new Uint8Array(b.buffer, b.byteOffset, b.byteLength / Uint8Array.BYTES_PER_ELEMENT); | ||
@@ -47,0 +48,0 @@ } |
@@ -48,3 +48,4 @@ (function (global, factory) { | ||
var b = Buffer.allocUnsafe(bytes); | ||
require('sodium').api.randombytes_buf(b, bytes); | ||
var sodium = require('sodium-native'); | ||
sodium.randombytes_buf(b); | ||
randBz = new Uint8Array(b.buffer, b.byteOffset, b.byteLength / Uint8Array.BYTES_PER_ELEMENT); | ||
@@ -51,0 +52,0 @@ } |
@@ -37,3 +37,4 @@ "use strict"; | ||
var b = Buffer.allocUnsafe(bytes); | ||
require('sodium').api.randombytes_buf(b, bytes); | ||
var sodium = require('sodium-native'); | ||
sodium.randombytes_buf(b); | ||
randBz = new Uint8Array(b.buffer, b.byteOffset, b.byteLength / Uint8Array.BYTES_PER_ELEMENT); | ||
@@ -40,0 +41,0 @@ } |
{ | ||
"name": "@zilliqa-js/crypto", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0", | ||
"description": "Core crypto utilities for signing/verification/hashing Zilliqa transactions.", | ||
@@ -40,6 +40,6 @@ "author": "Ian Tan (https://github.com/iantanwx)", | ||
"scryptsy": "^2.1.0", | ||
"sodium": "^3.0.2", | ||
"sodium-native": "^3.2.0", | ||
"uuid": "^3.3.2" | ||
}, | ||
"gitHead": "9e4a995fe7705d9b5b0d8c5d59fc7b7b1963ed3c" | ||
"gitHead": "64f0e8b610acebe6b5062789210aa57e4ebcd9df" | ||
} |
@@ -38,3 +38,4 @@ // Copyright (C) 2018 Zilliqa | ||
const b = Buffer.allocUnsafe(bytes); | ||
require('sodium').api.randombytes_buf(b, bytes); | ||
const sodium = require('sodium-native'); | ||
sodium.randombytes_buf(b); | ||
randBz = new Uint8Array( | ||
@@ -41,0 +42,0 @@ b.buffer, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1923658
16963
1
+ Addedsodium-native@^3.2.0
+ Addednode-gyp-build@4.8.4(transitive)
+ Addedsodium-native@3.4.1(transitive)
- Removedsodium@^3.0.2
- Removednode-addon-api@8.3.0(transitive)
- Removedsodium@3.0.2(transitive)