@polkadot/util-crypto
Advanced tools
Comparing version 0.13.4 to 0.13.5
{ | ||
"name": "@polkadot/util-crypto", | ||
"version": "0.13.4", | ||
"version": "0.13.5", | ||
"description": "A collection of useful crypto utilities for @polkadot", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,2 +9,3 @@ 'use strict'; | ||
var isString = require('@polkadot/util/is/string'); | ||
var u8aToBuffer = require('@polkadot/util/u8a/toBuffer'); | ||
var xxhashjs = require('xxhashjs'); | ||
@@ -18,4 +19,6 @@ | ||
return xxhashjs.h64( | ||
// NOTE: We can't use data.buffer, it has the incorrect length | ||
// $FlowFixMe we have determined the type | ||
return xxhashjs.h64(data.buffer, seed); | ||
u8aToBuffer(data), seed); | ||
}; |
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
76000
671