Files
zeekay f77da86cda Initial luxfi/license — Ed25519-signed offline license tokens for commercial Lux features.
- Stdlib-only deterministic binary token format (no JWT / CBOR dep).
- Go API: VerifyToken, LoadFromEnv, HasFeature, HasFeatureOrDie.
- Stable C ABI + C++17 RAII wrapper for non-Go commercial binaries (luxcpp/cevm).
- cmd/lux-license: keygen / issue / inspect / verify.
- Embedded development key; warns once at runtime until production key swap.
- 22 Go tests + 1 cgo round-trip test, all passing.
2026-05-15 17:08:32 -07:00

17 lines
866 B
Go

// Copyright (C) 2020-2026, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
// Package license provides runtime, offline verification of Lux commercial
// license tokens. The API is open source (BSD-3); the tokens it verifies are
// signed by Lux Industries' private Ed25519 key and embed the entitlements
// (customer, expiry, scopes, features) for a particular deployment.
//
// Binaries that require a commercial feature call HasFeatureOrDie (or the C
// equivalent) at startup. If no valid license is present, or the license does
// not cover the requested scope, the process aborts with a clear error.
//
// The token format is a fixed, self-describing binary layout (see Encode /
// Decode in claims.go) signed with Ed25519. There is intentionally no JWT,
// CBOR, or other heavy dependency: stdlib only.
package license