network

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: AGPL-3.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Network release

release.json is shared by Go and the browser build. The link host is https://ws.ourworld.top; frontend hosts never come from directory data. The production manifest pins two directory roots and the account authority. cn1 and us1 advertise relay and STUN. Verify with go run ./cmd/network-sign verify.

Build the local signer with go build ./cmd/network-sign. Generate two offline roots on separate storage and one online key; keep production private keys outside the checkout:

network-sign keygen --id root-a --private <offline-root.pem> --public <root-a.json>
network-sign keygen --id root-b --private <separate-offline-root.pem> --public <root-b.json>
network-sign keygen --id online-1 --private <online.pem> --public <online.json>
network-sign authorize --root-private <offline-root.pem> --root-id root-a --online-public <online.json> --generation 1 --not-before <RFC3339> --expires <RFC3339> --out <certificate.json>
network-sign sign --online-private <online.pem> --certificate <certificate.json>
network-sign verify

Copy the two public root records into release.json.roots. Edit directory.json with verified node keys and current validity dates. Publish a mainland relay role after its account admission and usage reports have been verified. Keep both root storage and the online key outside the checkout. Increase serial for each update; an offline root must authorize every higher generation. Signing checks all historical alias bindings, updates the shared embedded snapshot, and writes an immutable export under history/. Certificates last at most 180 days and payloads 90 days. Clients allow seven days of payload expiry grace, never past certificate expiry.

Publish windshare-network.json as /.well-known/windshare-network on both frontends and as a GitHub release asset. Keep the embedded snapshot current in client releases. Cache expiry disables directory use for new work without stopping transfers.

For local zero-configuration sharing, run make development-build from this checkout. The development profile contains its own public roots and signed history; the CLI, desktop and Web select it explicitly without changing the production manifest. Outputs and persistent test state belong in .windshare-dev/; local development private keys may stay in the ignored .secret/. Ordinary rebuilds need no signing keys.

Public STUN fallbacks: the existing Google endpoint, Cloudflare, and Twilio. Provider diversity is known; mainland reachability and peak-hour measurements remain to be collected on the real fleet.

Documentation

Overview

Package network embeds the release's shared native/browser trust configuration.

Index

Constants

This section is empty.

Variables

View Source
var Release []byte

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL