@edgematrixjs/util
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

@edgematrixjs/util

This project dependencies and exports third-party libraries and provides some methods including generate public and private keys.

Dependencies and Exports third-party libraries

"@ethereumjs/rlp": "^4.0.1",
"@ethereumjs/util": "^8.0.5",
"ethereum-cryptography": "^1.2.0"
export { keccak256 } from 'ethereum-cryptography/keccak';
export * from '@ethereumjs/util';
export const rlp = RLP;

INSTALL

npm install @edgematrixjs/util

USAGE

import { genPrivateKey, addressWith } from '@edgematrixjs/util';
//Generate private and public keys
const privateKey = genPrivateKey();
const publicKey = addressWith(privateKey);

API

genPrivateKey - returns a string start with 0x.

addressWith(privateKey) - returns a string start with 0x.

The code from web3-eth-accounts@1.x

Readme

Keywords

Package Sidebar

Install

npm i @edgematrixjs/util

Weekly Downloads

0

Version

1.0.5

License

MPL-2.0

Unpacked Size

30 kB

Total Files

17

Last publish

Collaborators

  • jiwu_ma