params,registry: drop killed pqcrypto dep, wire ML-KEM from luxfi/crypto

luxfi/precompile/pqcrypto (the bundled "unified PQ" package) was removed. Its
live role is ML-KEM at 0x012201, now the standalone luxfi/precompile/mlkem —
which wraps luxfi/crypto/mlkem. Same ContractAddress, same 6-arg
StatefulPrecompiledContract Run, so the adapter is untouched. registry.go
already blank-imports mlkem (line 32); the pqcrypto line was pure dead weight.

Resolves the pqcrypto build break against precompile@v0.19.3. (coreth carries
further, unrelated legacy dep-skew — warp.UnsignedMessage, geth v1.16.99 in its
own go.mod — that is a separate modernization, not this change.)

Co-authored-by: Hanzo Dev <dev@hanzo.ai>
This commit is contained in:
zeekay
2026-07-17 15:19:22 -07:00
co-authored by Hanzo Dev
parent d52028f280
commit 7ceedf22e9
2 changed files with 3 additions and 4 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ import (
"github.com/luxfi/coreth/precompile/contract"
"github.com/luxfi/geth/common"
"github.com/luxfi/precompile/mldsa"
"github.com/luxfi/precompile/pqcrypto"
"github.com/luxfi/precompile/mlkem"
"github.com/luxfi/precompile/slhdsa"
pqcontract "github.com/luxfi/precompile/contract"
@@ -41,8 +41,8 @@ var PQCryptoPrecompiles = map[common.Address]contract.StatefulPrecompiledContrac
// SLH-DSA (FIPS 205) - Hash-based signatures
slhdsa.ContractSLHDSAVerifyAddress: &pqPrecompileAdapter{inner: slhdsa.SLHDSAVerifyPrecompile},
// PQCrypto - General post-quantum operations including ML-KEM
pqcrypto.ContractAddress: &pqPrecompileAdapter{inner: pqcrypto.PQCryptoPrecompile},
// ML-KEM (FIPS 203) - Key encapsulation (crypto in luxfi/crypto/mlkem)
mlkem.ContractAddress: &pqPrecompileAdapter{inner: mlkem.MLKEMPrecompile},
}
func init() {
-1
View File
@@ -36,7 +36,6 @@ import (
// 0x012206 Corona (Ring-LWE threshold) imported below under Threshold
_ "github.com/luxfi/precompile/hqc" // 0x012208 HQC (code-based KEM, family-disjoint backup)
_ "github.com/luxfi/precompile/magnetar" // 0x012207 Magnetar (public-DKG MPC threshold SLH-DSA, FIPS 205 byte-equal)
_ "github.com/luxfi/precompile/pqcrypto" // Unified PQ crypto operations
// ============================================
// Privacy/Encryption (0x0700-0x07FF)