Implemented Packet structure decoding
This commit is contained in:
66
src/index.ts
66
src/index.ts
@@ -1,20 +1,50 @@
|
||||
export * from './identity';
|
||||
import * as identityTypes from './identity.types';
|
||||
import type * as identityTypesTypes from './identity.types';
|
||||
export {
|
||||
type IPacket,
|
||||
type Payload,
|
||||
type EncryptedPayload,
|
||||
type RequestPayload,
|
||||
type ResponsePayload,
|
||||
type TextPayload,
|
||||
type AckPayload,
|
||||
type AdvertPayload,
|
||||
type GroupTextPayload,
|
||||
type GroupDataPayload,
|
||||
type AnonReqPayload,
|
||||
type PathPayload,
|
||||
type TracePayload,
|
||||
type RawCustomPayload,
|
||||
RouteType,
|
||||
PayloadType,
|
||||
RequestType,
|
||||
TextType,
|
||||
NodeType,
|
||||
} from "./packet.types";
|
||||
export { Packet } from "./packet";
|
||||
|
||||
export * from './crypto';
|
||||
import * as cryptoTypes from './crypto.types';
|
||||
import type * as cryptoTypesTypes from './crypto.types';
|
||||
export {
|
||||
type NodeHash,
|
||||
type IIdentity,
|
||||
type ILocalIdentity,
|
||||
type IContact
|
||||
} from "./identity.types";
|
||||
export {
|
||||
parseNodeHash,
|
||||
Identity,
|
||||
LocalIdentity,
|
||||
Contact,
|
||||
Group,
|
||||
Contacts
|
||||
} from "./identity";
|
||||
|
||||
export * from './packet';
|
||||
import * as packetTypes from './packet.types';
|
||||
import type * as packetTypesTypes from './packet.types';
|
||||
|
||||
export type {
|
||||
identityTypes,
|
||||
identityTypesTypes,
|
||||
cryptoTypes,
|
||||
cryptoTypesTypes,
|
||||
packetTypes,
|
||||
packetTypesTypes
|
||||
};
|
||||
export {
|
||||
type IPublicKey,
|
||||
type IPrivateKey,
|
||||
type ISharedSecret,
|
||||
type IStaticSecret
|
||||
} from "./crypto.types";
|
||||
export {
|
||||
PublicKey,
|
||||
PrivateKey,
|
||||
SharedSecret,
|
||||
StaticSecret,
|
||||
} from "./crypto";
|
||||
|
||||
Reference in New Issue
Block a user