Skip to content

Use transparency-dev/witness#1002

Merged
AlCutter merged 1 commit into
transparency-dev:mainfrom
AlCutter:multi_witness
Jun 15, 2026
Merged

Use transparency-dev/witness#1002
AlCutter merged 1 commit into
transparency-dev:mainfrom
AlCutter:multi_witness

Conversation

@AlCutter

Copy link
Copy Markdown
Collaborator

This PR switches over to directly using the witness implementation from transparency-dev/witness.

@AlCutter AlCutter requested a review from roger2hk June 12, 2026 11:40
@AlCutter AlCutter requested a review from a team as a code owner June 12, 2026 11:40
Comment thread mirror_lifecycle.go Outdated
Comment on lines 31 to 32
logVerifier note.Verifier
signer note.Signer

@roger2hk roger2hk Jun 12, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the logVerified and signer still required? It seems like they're now embedded in the witness struct.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

signer will still be needed for responses to add-entries, I'll remove logVerifier for the moment...

if err := mux.AddTarget(testOrigin, mock); err != nil {
t.Fatalf("AddTarget() failed: %v", err)
}
h := New(mux, nil)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing the nil here would cause a panic if any test tries to call /add-checkpoint endpoint later.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, I'll update this as the implementation of add-checkpoint progresses.

@AlCutter AlCutter merged commit 2886811 into transparency-dev:main Jun 15, 2026
19 checks passed
@AlCutter AlCutter deleted the multi_witness branch June 15, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants