mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-05-21 10:11:32 +00:00
19 lines
293 B
TypeScript
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,
|
|
}
|