mirror of
https://github.com/luxfi/node.git
synced 2026-07-27 03:39:39 +00:00
feat: clean up dead code, update deps, add xvm genesis/fx and genesis builder
Remove unused bloom filter, test helpers, metrics scaffolding, and linearizable VM wrapper. Trim stale go.sum entries. Add genesis builder helpers and xvm FX/genesis initialization.
This commit is contained in:
@@ -123,19 +123,6 @@ func (v *testValidator) toValidatorState() quasar.ValidatorState {
|
||||
}
|
||||
}
|
||||
|
||||
// signRT creates a mock Corona signature (in production, use actual ML-DSA).
|
||||
func (v *testValidator) signRT(msg []byte) []byte {
|
||||
// For testing, create a deterministic signature based on key and message
|
||||
// In production, this would be an actual ML-DSA signature
|
||||
sig := make([]byte, mldsa65SigLen)
|
||||
h := make([]byte, 32)
|
||||
copy(h, msg)
|
||||
for i := 0; i < len(sig); i++ {
|
||||
sig[i] = h[i%32] ^ v.rtPrivKey[i%len(v.rtPrivKey)]
|
||||
}
|
||||
return sig
|
||||
}
|
||||
|
||||
// testValidatorSet creates a set of test validators.
|
||||
func testValidatorSet(n int) ([]*testValidator, error) {
|
||||
validators := make([]*testValidator, n)
|
||||
|
||||
Reference in New Issue
Block a user