Files
zeekay 33b2f497ac deps: bump luxfi core to latest (drops corona; corona-based)
Bump evm v0.8.47->v1.99.21 and the transitive luxfi core set (consensus
v1.25.17, node v1.30.9, vm v1.2.3, threshold v1.9.9, crypto v1.19.20,
geth v1.17.5, precompile v0.5.38, fhe v1.8.2). This drops the legacy
github.com/luxfi/corona dependency entirely — the Ring-LWE threshold
primitive is now github.com/luxfi/corona (v0.7.6), matching the rest of
luxfi core which already migrated.

precompile pinned at v0.5.38 (what evm v1.99.21 requires; still exposes
corona + inference + modelregistry). api pinned at v1.0.12 to match
vm v1.2.3's rpc server (v1.0.14 renamed InitializeRequest.LuxAssetID).

main.go: drop retired precompile/quasar blank import (pre-LP-4200 quasar
stubs were retired in favor of the LP-4200 0x012200 PQ block) and the
deleted precompile/ecies import (removed upstream: private keys in
calldata are irrecoverably exposed; use hpke + x25519).
2026-06-11 10:46:46 -07:00

42 lines
896 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package main
import (
"context"
"fmt"
"os"
"github.com/luxfi/log"
qvm "github.com/luxfi/chains/quantumvm"
"github.com/luxfi/sys/ulimit"
"github.com/luxfi/vm/chain"
"github.com/luxfi/vm/rpc"
)
func main() {
if len(os.Args) > 1 && os.Args[1] == "version" {
fmt.Println("Quantum-VM/1.0.0")
os.Exit(0)
}
if err := ulimit.Set(ulimit.DefaultFDLimit, log.Root()); err != nil {
fmt.Fprintf(os.Stderr, "failed to set fd limit: %s\n", err)
os.Exit(1)
}
f := &qvm.Factory{}
raw, err := f.New(log.Root())
if err != nil {
fmt.Fprintf(os.Stderr, "factory error: %s\n", err)
os.Exit(1)
}
vm := raw.(chain.ChainVM)
if err := rpc.Serve(context.Background(), log.Root(), vm); err != nil {
fmt.Fprintf(os.Stderr, "rpc.Serve error: %s\n", err)
os.Exit(1)
}
}