mirror of
https://github.com/luxfi/license.git
synced 2026-10-30 16:21:14 +00:00
- 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.
17 lines
866 B
Go
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
|