Skip to content

Commit

Permalink
feat: Implement InternetNode interface (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea authored Jan 16, 2024
1 parent ab066e0 commit 7265ccc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export { CertificateRotation } from './lib/messages/CertificateRotation';
export * from './lib/messages/bindings/signatures';

// Nodes
export type { InternetNode } from './lib/nodes/InternetNode';
export { Endpoint } from './lib/nodes/Endpoint';
export { EndpointManager } from './lib/nodes/managers/EndpointManager';
export { GatewayManager } from './lib/nodes/managers/GatewayManager';
Expand Down
4 changes: 4 additions & 0 deletions src/lib/nodes/InternetNode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface InternetNode {
readonly getConnectionParams: () => Promise<Buffer>;
readonly makeInitialSessionKeyIfMissing: () => Promise<boolean>;
}

0 comments on commit 7265ccc

Please sign in to comment.