From 7f95036c2db9283c05030105d5a90aae770716e0 Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Thu, 6 Nov 2025 13:22:05 +0100 Subject: [PATCH 1/8] cmd/sunlight,internal/witness: pull witness config from witness network log list --- cmd/sunlight/home.html | 44 ++--- cmd/sunlight/sunlight.go | 65 +++++--- internal/witness/witness.go | 314 +++++++++++++++++++++++++++++------- 3 files changed, 329 insertions(+), 94 deletions(-) diff --git a/cmd/sunlight/home.html b/cmd/sunlight/home.html index 3b9fa4e..32a1544 100644 --- a/cmd/sunlight/home.html +++ b/cmd/sunlight/home.html @@ -52,26 +52,6 @@

Metrics are available. - - {{ if .Witness.Name }} -


- -

- The following witness is active. - -

{{ .Witness.Name }}

- -

- Submission prefix: {{ .Witness.SubmissionPrefix }}
- Known logs: -

- -
{{ .Witness.VerifierKey }}
- {{ end }}
@@ -103,6 +83,30 @@

Submit a certificate chain (PEM or JSON)

{{ end }} + {{ if .Witness.Name }} +
+ +

+ The following witness is active. + +

{{ .Witness.Name }}

+ +

+ Submission prefix: {{ .Witness.SubmissionPrefix }}
+ Log list source: {{ .Witness.LogList }}
+ Verifier key:
+ +

{{ .Witness.VerifierKey }}
+ +

+ Known logs: +

+ {{ end }} +