Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pilot-protocol/handshake

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

handshake

ci codecov License: AGPL-3.0

Handshake plugin for the Pilot Protocol daemon. Manages node-to-node trust:

  • listens on port 444 for incoming handshake offers
  • emits handshake.requested events to the daemon
  • persists accepted trust records to trust.json
  • consults the trustedagents allowlist for auto-accept of public peers
  • handles both direct and relayed handshakes (NAT-traversal cases)

Install

import "github.com/pilot-protocol/handshake"

Usage

s := handshake.NewService(handshake.Config{
    TrustPath:         "~/.pilot/trust.json",
    AutoApprovePublic: true,
})
rt.Register(s)

Layout

File What it does
handshake.go Wire format and Manager (in-memory trust + pending state).
runtime.go Daemon-facing interface for trust lookup and auto-approve flag.
service.go *Servicecoreapi.Service adapter.

License

AGPL-3.0-or-later. See LICENSE.

About

Pilot Protocol handshake plugin — node-to-node trust negotiation, accept/deny flow, trust persistence (port 444)

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.