2019-11-11 15:39:09 +01:00

19 lines
293 B
TypeScript

import { bytes } from "./basic";
type PeerId = {
id: string,
privKey: string,
pubKey: string,
};
type ConnectionStats = {
direction: "inbound" | "outbound",
encryption: string,
}
export interface Connection {
localPeer: PeerId,
remotePeer: PeerId,
stats: ConnectionStats,
}