refactor(p3q/ct): rename p3q → starkfri in CT harness

dudect verify_ct.go now imports luxfi/precompile/starkfri and exercises
StarkFRIVerifyPrecompile.Run. Tracks the upstream rename of the p3q
precompile to starkfri (the STARK/FRI low-degree-test verifier slot).
CT property is unchanged — we measure dispatch+backend invocation,
not verification outcome.
This commit is contained in:
Hanzo AI
2026-06-04 17:05:50 -07:00
parent 158edb279c
commit b3967cdd4d
+4 -4
View File
@@ -64,7 +64,7 @@ import (
"unsafe" "unsafe"
"github.com/luxfi/geth/common" "github.com/luxfi/geth/common"
p3q "github.com/luxfi/precompile/p3q" starkfri "github.com/luxfi/precompile/starkfri"
) )
// Pool size: 64 valid inputs is enough to expose any per-content // Pool size: 64 valid inputs is enough to expose any per-content
@@ -120,7 +120,7 @@ func p3q_verify_ct_setup() C.int {
// CT measurement on the precompile dispatch + backend invocation // CT measurement on the precompile dispatch + backend invocation
// itself, not on a particular verification outcome. (The CT // itself, not on a particular verification outcome. (The CT
// property we want must hold regardless of backend acceptance.) // property we want must hold regardless of backend acceptance.)
p3q.RegisterVerifier(func(byte, []byte, []byte) (bool, error) { starkfri.RegisterVerifier(func(byte, []byte, []byte) (bool, error) {
return true, nil return true, nil
}) })
@@ -183,10 +183,10 @@ var (
func p3q_verify_ct(data *C.uint8_t) { func p3q_verify_ct(data *C.uint8_t) {
inputSlice := unsafe.Slice((*byte)(unsafe.Pointer(data)), kInputLen) inputSlice := unsafe.Slice((*byte)(unsafe.Pointer(data)), kInputLen)
input := append([]byte{}, inputSlice...) input := append([]byte{}, inputSlice...)
_, _, _ = p3q.P3QVerifyPrecompile.Run( _, _, _ = starkfri.StarkFRIVerifyPrecompile.Run(
nil, nil,
dummyCaller, dummyCaller,
p3q.ContractP3QVerifyAddress, starkfri.ContractStarkFRIVerifyAddress,
input, input,
supplied, supplied,
true, true,