@harmony-js/crypto
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -0,0 +0,0 @@ export declare class HarmonyAddress { |
@@ -7,4 +7,4 @@ /// <reference types="node" /> | ||
} | null; | ||
export declare const HRP = "hmy"; | ||
export declare const tHRP = "thmy"; | ||
export declare const HRP = "one"; | ||
export declare const tHRP = "tone"; | ||
/** | ||
@@ -11,0 +11,0 @@ * convertBits |
@@ -117,4 +117,4 @@ "use strict"; | ||
// HRP is the human-readable part of zilliqa bech32 addresses | ||
exports.HRP = 'hmy'; | ||
exports.tHRP = 'thmy'; | ||
exports.HRP = 'one'; | ||
exports.tHRP = 'tone'; | ||
/** | ||
@@ -121,0 +121,0 @@ * convertBits |
@@ -0,0 +0,0 @@ export declare type Arrayish = string | ArrayLike<number>; |
@@ -0,0 +0,0 @@ export declare const UNKNOWN_ERROR = "UNKNOWN_ERROR"; |
@@ -0,0 +0,0 @@ import hdkey from 'hdkey'; |
import { Arrayish } from './bytes'; | ||
export declare function keccak256(data: Arrayish): string; | ||
//# sourceMappingURL=keccak256.d.ts.map |
@@ -0,0 +0,0 @@ import { EncryptOptions, Keystore } from './types'; |
@@ -0,0 +0,0 @@ import * as bytes from './bytes'; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { Arrayish } from './bytes'; |
@@ -0,0 +0,0 @@ export declare type KDF = 'pbkdf2' | 'scrypt'; |
{ | ||
"name": "@harmony-js/crypto", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "crypto libraries for harmony", | ||
@@ -21,3 +21,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@harmony-js/utils": "0.0.23", | ||
"@harmony-js/utils": "0.0.24", | ||
"aes-js": "^3.1.2", | ||
@@ -34,3 +34,3 @@ "bip39": "^2.5.0", | ||
}, | ||
"gitHead": "2b54d4deba2169372508da8f0a1816575e25a47c" | ||
"gitHead": "8e2ed1afe6538258197cc3a69c299020cfcfb679" | ||
} |
@@ -124,5 +124,5 @@ import { isAddress } from '@harmony-js/utils'; | ||
// HRP is the human-readable part of zilliqa bech32 addresses | ||
export const HRP = 'hmy'; | ||
export const tHRP = 'thmy'; | ||
// HRP is the human-readable part of Harmony bech32 addresses | ||
export const HRP = 'one'; | ||
export const tHRP = 'tone'; | ||
@@ -182,10 +182,10 @@ /** | ||
* | ||
* 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 | ||
*/ | ||
@@ -213,3 +213,3 @@ export const toBech32 = (address: string, useHRP: string = HRP): 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 | ||
@@ -216,0 +216,0 @@ */ |
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
Sorry, the diff of this file is not supported yet
577806
72
7064
+ Added@harmony-js/utils@0.0.24(transitive)
- Removed@harmony-js/utils@0.0.23(transitive)
Updated@harmony-js/utils@0.0.24