xud
Version:
Exchange Union Daemon
27 lines (26 loc) • 964 B
TypeScript
import Packet, { PacketDirection, ResponseType } from '../Packet';
import PacketType from '../PacketType';
import { NodeState } from '../../types';
import * as pb from '../../../proto/xudp2p_pb';
export declare type SessionInitPacketBody = {
sign: string;
ephemeralPubKey: string;
/** The node pub key of the peer we are connecting to. */
peerPubKey: string;
/** Our local node state. */
nodeState: NodeState;
/** The version of xud we are running. */
version: string;
/** Our local node pub key. */
nodePubKey: string;
};
declare class SessionInitPacket extends Packet<SessionInitPacketBody> {
get type(): PacketType;
get direction(): PacketDirection;
get responseType(): ResponseType;
static deserialize: (binary: Uint8Array) => SessionInitPacket | pb.SessionInitPacket.AsObject;
private static validate;
private static convert;
serialize: () => Uint8Array;
}
export default SessionInitPacket;