diff options
author | Linus Nordberg <linus@nordberg.se> | 2022-03-28 16:38:37 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2022-03-28 16:38:37 +0200 |
commit | ace5e7c406dee2ca533d41f5271de0be7403a139 (patch) | |
tree | a4861e35d2281519993b9e7ed109d858e2ac701b | |
parent | 50564595a70f2c2ea0ad4a9b4b96e33bab6b3633 (diff) | |
parent | 5683ff1a9bd81dbacfc9587c8c437642c8f51f42 (diff) |
Merge remote-tracking branch 'origin/rgdd/fix-node-prefix'
-rw-r--r-- | issues/bug-tree-prefixes | 9 | ||||
-rw-r--r-- | pkg/types/crypto.go | 4 |
2 files changed, 2 insertions, 11 deletions
diff --git a/issues/bug-tree-prefixes b/issues/bug-tree-prefixes deleted file mode 100644 index 30be740..0000000 --- a/issues/bug-tree-prefixes +++ /dev/null @@ -1,9 +0,0 @@ -The following constants should be reversed: - - pkg/types/crypto.go:13: InteriorNodePrefix = byte(0x00) - pkg/types/crypto.go:14: LeafNodePrefix = byte(0x01) - -(LeafNodePrefix should be 0x00 as we follow the RFC 6962 hash strategy.) - -Prints in sigsum-log-go are affected by this bug but not the log's Merkle tree -as it is computed by Trillian and not sigsum-log-go. Fix until next tag. diff --git a/pkg/types/crypto.go b/pkg/types/crypto.go index 72152bf..df93108 100644 --- a/pkg/types/crypto.go +++ b/pkg/types/crypto.go @@ -10,8 +10,8 @@ const ( SignatureSize = ed25519.SignatureSize PublicKeySize = ed25519.PublicKeySize - InteriorNodePrefix = byte(0x00) - LeafNodePrefix = byte(0x01) + LeafNodePrefix = byte(0x00) + InteriorNodePrefix = byte(0x01) ) type ( |