Export `generatePrivateKey` and `getPublicKey` directly from the root

This commit is contained in:
Franck Royer 2021-07-16 09:43:10 +10:00
parent db3403d88f
commit addf9543a2
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
3 changed files with 7 additions and 4 deletions

View File

@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
- Export `generatePrivateKey` and `getPublicKey` directly from the root.
## [0.8.0] - 2021-07-15
### Added

View File

@ -4,10 +4,7 @@ import { ethers } from 'ethers';
import { Signer } from '@ethersproject/abstract-signer';
import { PublicKeyMessage } from './messaging/wire';
import { hexToBuf, equalByteArrays, bufToHex } from 'js-waku/lib/utils';
import {
generatePrivateKey,
getPublicKey,
} from 'js-waku/lib/waku_message/version_1';
import { generatePrivateKey, getPublicKey } from 'js-waku';
export interface KeyPair {
privateKey: Uint8Array;

View File

@ -3,8 +3,11 @@ export { getStatusFleetNodes, Environment, Protocol } from './lib/discover';
export * as utils from './lib/utils';
export { Waku } from './lib/waku';
export { WakuMessage } from './lib/waku_message';
export { generatePrivateKey, getPublicKey } from './lib/waku_message/version_1';
export { ChatMessage } from './lib/chat_message';
export {