Implemented Packet structure decoding

This commit is contained in:
2026-03-11 13:23:52 +01:00
parent dee5e1cb9e
commit 7c2cc0e0f6
7 changed files with 519 additions and 97 deletions

View File

@@ -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";