mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-13 03:03:08 +00:00
* chore: update noise * update: package.lock * update: @chainsafe/libp2p-gossipsub * rm unwanted libp2p interface deps & bump up libp2p * refactor code for new deps * update: new package.lock * setup prettier, refactor eslint and rm trailing commas * update package.lock * fix build * import type for interface * fix imports for merge * update typedoc exports * add: CustomEvent import * use new libp2p interface * add aegir as dev dep for tests
22 lines
501 B
TypeScript
22 lines
501 B
TypeScript
import {
|
|
generatePrivateKey,
|
|
generateSymmetricKey,
|
|
getPublicKey
|
|
} from "./crypto/index.js";
|
|
import { DecodedMessage } from "./decoded_message.js";
|
|
|
|
export const OneMillion = BigInt(1_000_000);
|
|
|
|
export { generatePrivateKey, generateSymmetricKey, getPublicKey };
|
|
export type { DecodedMessage };
|
|
|
|
export * as ecies from "./ecies.js";
|
|
export * as symmetric from "./symmetric.js";
|
|
|
|
export const Version = 1;
|
|
|
|
export type Signature = {
|
|
signature: Uint8Array;
|
|
publicKey: Uint8Array | undefined;
|
|
};
|