mirror of
https://github.com/luxfi/coreth.git
synced 2026-07-27 00:14:26 +00:00
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:
@@ -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() {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user