WIP: rebase for 2026-05-18 #7

Closed
codinget wants to merge 234 commits from rebase/2026-05-18 into webnet
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 3ced30b0b6 - Show all commits
+2 -2
View File
@@ -10,8 +10,8 @@ import (
const ( const (
// Upper bound on checkpoint elements, chosen arbitrarily. Intended // Upper bound on checkpoint elements, chosen arbitrarily. Intended
// to cap the size of large AUMs. // to cap the size of large AUMs.
maxDisablementSecrets = 32 maxDisablementValues = 32
maxKeys = 512 maxKeys = 512
// Max amount of metadata that can be associated with a key, chosen arbitrarily. // Max amount of metadata that can be associated with a key, chosen arbitrarily.
// Intended to avoid people abusing TKA as a key-value score. // Intended to avoid people abusing TKA as a key-value score.
+2 -2
View File
@@ -261,8 +261,8 @@ func (s *State) staticValidateCheckpoint() error {
if len(s.DisablementValues) == 0 { if len(s.DisablementValues) == 0 {
return errors.New("at least one disablement secret required") return errors.New("at least one disablement secret required")
} }
if numDS := len(s.DisablementValues); numDS > maxDisablementSecrets { if numDS := len(s.DisablementValues); numDS > maxDisablementValues {
return fmt.Errorf("too many disablement secrets (%d, max %d)", numDS, maxDisablementSecrets) return fmt.Errorf("too many disablement values (%d, max %d)", numDS, maxDisablementValues)
} }
for i, ds := range s.DisablementValues { for i, ds := range s.DisablementValues {
if len(ds) != disablementLength { if len(ds) != disablementLength {