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

@harmony-js/crypto

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmony-js/crypto - npm Package Compare versions

Comparing version 0.0.26 to 0.0.27

8

dist/bech32.d.ts

@@ -28,10 +28,10 @@ /// <reference types="node" />

*
* bech32Encodes a canonical 20-byte Ethereum-style address as a bech32 zilliqa
* bech32Encodes a canonical 20-byte Ethereum-style address as a bech32 Harmony
* address.
*
* The expected format is zil1<address><checksum> where address and checksum
* The expected format is one1<address><checksum> where address and checksum
* are the result of bech32 encoding a Buffer containing the address bytes.
*
* @param {string} 20 byte canonical address
* @returns {string} 38 char bech32 bech32Encoded zilliqa address
* @returns {string} 38 char bech32 bech32Encoded Harmony address
*/

@@ -42,3 +42,3 @@ export declare const toBech32: (address: string, useHRP?: string) => string;

*
* @param {string} address - a valid Zilliqa bech32 address
* @param {string} address - a valid Harmony bech32 address
* @returns {string} a canonical 20-byte Ethereum-style address

@@ -45,0 +45,0 @@ */

@@ -116,3 +116,3 @@ "use strict";

};
// HRP is the human-readable part of zilliqa bech32 addresses
// HRP is the human-readable part of Harmony bech32 addresses
exports.HRP = 'one';

@@ -167,10 +167,10 @@ exports.tHRP = 'tone';

*
* bech32Encodes a canonical 20-byte Ethereum-style address as a bech32 zilliqa
* bech32Encodes a canonical 20-byte Ethereum-style address as a bech32 Harmony
* address.
*
* The expected format is zil1<address><checksum> where address and checksum
* The expected format is one1<address><checksum> where address and checksum
* are the result of bech32 encoding a Buffer containing the address bytes.
*
* @param {string} 20 byte canonical address
* @returns {string} 38 char bech32 bech32Encoded zilliqa address
* @returns {string} 38 char bech32 bech32Encoded Harmony address
*/

@@ -191,3 +191,3 @@ exports.toBech32 = function (address, useHRP) {

*
* @param {string} address - a valid Zilliqa bech32 address
* @param {string} address - a valid Harmony bech32 address
* @returns {string} a canonical 20-byte Ethereum-style address

@@ -194,0 +194,0 @@ */

{
"name": "@harmony-js/crypto",
"version": "0.0.26",
"version": "0.0.27",
"description": "crypto libraries for harmony",

@@ -21,3 +21,3 @@ "main": "dist/index.js",

"dependencies": {
"@harmony-js/utils": "0.0.26",
"@harmony-js/utils": "0.0.27",
"aes-js": "^3.1.2",

@@ -34,3 +34,3 @@ "bip39": "^2.5.0",

},
"gitHead": "aae20f81a72244d1e517d55f73484d38b63221a5"
"gitHead": "83c8ae8df615f10e236551591ab02afa7601860f"
}

@@ -8,9 +8,3 @@ import aes from 'aes-js';

import { getAddressFromPrivateKey } from './keyTool';
import {
concat,
// arrayify,
// hexDataLength,
// hexToByteArray,
hexToIntArray,
} from './bytes';
import { concat, hexToIntArray } from './bytes';
import { keccak256 } from './keccak256';

@@ -17,0 +11,0 @@ import {

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