@polkadot/util-crypto
Advanced tools
Comparing version 0.14.11 to 0.15.1
@@ -10,3 +10,3 @@ 'use strict'; | ||
var isHex = require('@polkadot/util/is/hex'); | ||
var isUint8Array = require('@polkadot/util/is/uint8Array'); | ||
var isU8a = require('@polkadot/util/is/u8a'); | ||
var u8aFromString = require('@polkadot/util/u8a/fromString'); | ||
@@ -26,3 +26,3 @@ | ||
module.exports = function naclKeypairFromSeed(seed) { | ||
if (isUint8Array(seed)) { | ||
if (isU8a(seed)) { | ||
// $FlowFixMe type has been determined | ||
@@ -29,0 +29,0 @@ return nacl.sign.keyPair.fromSeed(seed); |
{ | ||
"name": "@polkadot/util-crypto", | ||
"version": "0.14.11", | ||
"version": "0.15.1", | ||
"description": "A collection of useful crypto utilities for @polkadot", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
86317