From 5d483a81bdb7c9fc09cdfeee066742ccc0ed4299 Mon Sep 17 00:00:00 2001 From: Martin Hutchinson Date: Mon, 8 Apr 2024 15:10:44 +0100 Subject: [PATCH] Changes to Origin (#104) The CheckpointHeaderV0 should never be used and is an artifacts of a strange couple of days from history that must not be spoken about. Origin should be unique and identify the log, thus such a constant is dangerous. Fixed the const in the test data to use the origin string that is actually used. --- api/state.go | 3 --- testdata/log.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/api/state.go b/api/state.go index ec24709..63fbecf 100644 --- a/api/state.go +++ b/api/state.go @@ -23,9 +23,6 @@ import ( "strings" ) -// CheckpointHeaderV0 is the first line of a marshaled log checkpoint. -const CheckpointHeaderV0 = "Log Checkpoint v0" - // Tile represents a subtree tile, containing inner nodes of a log tree. type Tile struct { // NumLeaves is the number of entries at level 0 of this tile. diff --git a/testdata/log.go b/testdata/log.go index 5ff7be9..aebb09a 100644 --- a/testdata/log.go +++ b/testdata/log.go @@ -32,7 +32,7 @@ const ( TestLogSecretKey = "PRIVATE+KEY+astra+cad5a3d2+ASgwwenlc0uuYcdy7kI44pQvuz1fw8cS5NqS8RkZBXoy" TestLogPublicKey = "astra+cad5a3d2+AZJqeuyE/GnknsCNh1eCtDtwdAwKBddOlS8M2eI1Jt4b" - TestLogOrigin = "Log Checkpoint v0" + TestLogOrigin = "example.com/testdata" ) var (