@harmony-js/crypto
Advanced tools
Comparing version 0.0.26 to 0.0.27
@@ -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 { |
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
577739
7058
+ Added@harmony-js/utils@0.0.27(transitive)
+ Added@types/node@22.10.1(transitive)
+ Addedcipher-base@1.0.6(transitive)
- Removed@harmony-js/utils@0.0.26(transitive)
- Removed@types/node@22.10.0(transitive)
- Removedcipher-base@1.0.5(transitive)
Updated@harmony-js/utils@0.0.27