mirror of
https://github.com/logos-storage/gnark-plonky2-verifier.git
synced 2026-01-05 22:53:09 +00:00
18 lines
297 B
Go
18 lines
297 B
Go
package plonky2_verifier
|
|
|
|
const UNUSED_SELECTOR = uint64(^uint32(0)) // max uint32
|
|
|
|
type Range struct {
|
|
start uint64
|
|
end uint64
|
|
}
|
|
|
|
type SelectorsInfo struct {
|
|
selectorIndices []uint64
|
|
groups []Range
|
|
}
|
|
|
|
func (s *SelectorsInfo) NumSelectors() uint64 {
|
|
return uint64(len(s.groups))
|
|
}
|