fix(challenge): add difficulty and policy rule hash to challenge metadata

This commit is contained in:
Jason Cameron
2025-11-14 15:53:20 -08:00
parent 7d26adaec5
commit c5fde0af1a
4 changed files with 112 additions and 10 deletions

View File

@@ -4,6 +4,7 @@ import (
"testing"
"time"
"github.com/TecharoHQ/anubis"
"github.com/TecharoHQ/anubis/internal"
"github.com/TecharoHQ/anubis/lib/challenge"
"github.com/google/uuid"
@@ -19,5 +20,6 @@ func New(t *testing.T) *challenge.Challenge {
ID: id.String(),
RandomData: randomData,
IssuedAt: time.Now(),
Difficulty: anubis.DefaultDifficulty,
}
}