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

@polkadot/util-crypto

Package Overview
Dependencies
Maintainers
1
Versions
1357
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/util-crypto - npm Package Compare versions

Comparing version 0.13.8 to 0.13.9

blake2/asU8a.js

6

blake2/asHex.js

@@ -19,3 +19,3 @@ 'use strict';

blake2AsHex('abc')) // => 0xba80a53f981c4d0d
blake2AsHex('abc') // => 0xba80a53f981c4d0d
*/

@@ -25,5 +25,3 @@ module.exports = function blake2AsHex(data) {

var byteLength = Math.ceil(bitLength / 8);
return hexAddPrefix(blake2bAsBuffer(data).slice(0, byteLength).toString('hex'));
return hexAddPrefix(blake2bAsBuffer(data).slice(0, Math.ceil(bitLength / 8)).toString('hex'));
};

@@ -10,3 +10,3 @@ 'use strict';

@name blake2AsHex128
@signature blake2AsHex128 (data: Buffer): string
@signature blake2AsHex128 (data: Uint8Array): string
@summary Creates a blake2b hex with 128-bits from the input.

@@ -18,3 +18,3 @@ @description

blake2AsHex128('abc')) // => 0x44bc2cf5ad770999
blake2AsHex128('abc') // => 0x44bc2cf5ad770999
*/

@@ -21,0 +21,0 @@ module.exports = function blake2AsHex128(data) {

@@ -10,3 +10,3 @@ 'use strict';

@name blake2AsHex256
@signature blake2AsHex256 (data: Buffer): string
@signature blake2AsHex256 (data: Uint8Array): string
@summary Creates a blake2b hex with 256-bits from the input.

@@ -18,3 +18,3 @@ @description

blake2AsHex256('abc')) // => 0x44bc2cf5ad770999
blake2AsHex256('abc') // => 0x44bc2cf5ad770999
*/

@@ -21,0 +21,0 @@ module.exports = function blake2AsHex256(data) {

@@ -10,3 +10,3 @@ 'use strict';

@name blake2AsHex512
@signature blake2AsHex512 (data: Buffer): string
@signature blake2AsHex512 (data: Uint8Array): string
@summary Creates a blake2b hex with 512-bits from the input.

@@ -18,3 +18,3 @@ @description

blake2AsHex512('abc')) // => 0x44bc2cf5ad770999
blake2AsHex512('abc') // => 0x44bc2cf5ad770999
*/

@@ -21,0 +21,0 @@ module.exports = function blake2AsHex512(data) {

@@ -10,2 +10,6 @@ 'use strict';

var blake2AsHex512 = require('./asHex512');
var blake2AsU8a = require('./asU8a');
var blake2AsU8a128 = require('./asU8a128');
var blake2AsU8a256 = require('./asU8a256');
var blake2AsU8a512 = require('./asU8a512');

@@ -19,3 +23,7 @@ /**

blake2AsHex256: blake2AsHex256,
blake2AsHex512: blake2AsHex512
blake2AsHex512: blake2AsHex512,
blake2AsU8a: blake2AsU8a,
blake2AsU8a128: blake2AsU8a128,
blake2AsU8a256: blake2AsU8a256,
blake2AsU8a512: blake2AsU8a512
};

@@ -9,5 +9,6 @@ 'use strict';

var keccakAsString = require('./asString');
var keccakAsU8a = require('./asU8a');
/**
@summary Create Keccak256 values as hex, string & buffer output
@summary Create Keccak256 values as hex, string, Buffer & Uint8Array output
*/

@@ -17,3 +18,4 @@ module.exports = {

keccakAsHex: keccakAsHex,
keccakAsString: keccakAsString
keccakAsString: keccakAsString,
keccakAsU8a: keccakAsU8a
};
{
"name": "@polkadot/util-crypto",
"version": "0.13.8",
"version": "0.13.9",
"description": "A collection of useful crypto utilities for @polkadot",

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

@@ -19,3 +19,3 @@ 'use strict';

xxhashAsHex('abc')) // => 0x44bc2cf5ad770999
xxhashAsHex('abc') // => 0x44bc2cf5ad770999
*/

@@ -22,0 +22,0 @@ module.exports = function xxhashAsHex(data) {

@@ -17,3 +17,3 @@ 'use strict';

xxhashAsHex128('abc')) // => 0x44bc2cf5ad770999
xxhashAsHex128('abc') // => 0x44bc2cf5ad770999
*/

@@ -20,0 +20,0 @@ module.exports = function xxhashAsHex128(data) {

@@ -17,3 +17,3 @@ 'use strict';

xxhashAsHex256('abc')) // => 0x44bc2cf5ad770999bea9ca8199328908
xxhashAsHex256('abc') // => 0x44bc2cf5ad770999bea9ca8199328908
*/

@@ -20,0 +20,0 @@ module.exports = function xxhashAsHex256(data) {

@@ -9,2 +9,5 @@ 'use strict';

var xxhashAsHex256 = require('./asHex256');
var xxhashAsU8a = require('./asU8a');
var xxhashAsU8a128 = require('./asU8a128');
var xxhashAsU8a256 = require('./asU8a256');

@@ -17,3 +20,6 @@ /**

xxhashAsHex128: xxhashAsHex128,
xxhashAsHex256: xxhashAsHex256
xxhashAsHex256: xxhashAsHex256,
xxhashAsU8a: xxhashAsU8a,
xxhashAsU8a128: xxhashAsU8a128,
xxhashAsU8a256: xxhashAsU8a256
};

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

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

Sorry, the diff of this file is not supported yet

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