mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-05-21 21:31:30 +00:00
16 lines
234 B
TypeScript
16 lines
234 B
TypeScript
|
type PeerId = {
|
||
|
id: string,
|
||
|
privKey: string,
|
||
|
pubKey: string,
|
||
|
};
|
||
|
|
||
|
type ConnectionStat = {
|
||
|
direction: "inbound" | "outbound",
|
||
|
}
|
||
|
|
||
|
export interface Connection {
|
||
|
localPeer: PeerId,
|
||
|
remotePeer: PeerId,
|
||
|
stat: ConnectionStat,
|
||
|
}
|