aboutsummaryrefslogtreecommitdiff
path: root/core/verification.go
diff options
context:
space:
mode:
authoraxtloss <axtlos@getcryst.al>2024-02-17 22:00:50 +0100
committeraxtloss <axtlos@getcryst.al>2024-02-17 22:00:50 +0100
commit61cc5e9a02a38cd086d382e521509e85fecd6d07 (patch)
tree6f18b142f0237397d51976788eadf81e9c3e4ef2 /core/verification.go
parent296a1f89fb3bbc2751f55a9eab9ec492bee3adba (diff)
downloadfsverify-61cc5e9a02a38cd086d382e521509e85fecd6d07.tar.gz
fsverify-61cc5e9a02a38cd086d382e521509e85fecd6d07.tar.bz2
Fix fsverify signature verification
Diffstat (limited to 'core/verification.go')
-rw-r--r--core/verification.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/verification.go b/core/verification.go
index 1193664..f1e1f0b 100644
--- a/core/verification.go
+++ b/core/verification.go
@@ -27,7 +27,7 @@ func fileReadKey() (string, error) {
reader := bufio.NewReader(file)
n, err := reader.Read(key)
if n != 56 {
- return "", fmt.Errorf("Error: Key does not match expected key size. expected 56, got %d", n)
+ return "", fmt.Errorf("Key does not match expected key size. Expected 56, got %d", n)
}
if err != nil {
return "", err
@@ -74,7 +74,7 @@ func serialReadKey() (string, error) {
key = strings.ReplaceAll(key, "\\t", "")
key = strings.ReplaceAll(key, "\"", "")
if len(key) != 56 {
- return "", fmt.Errorf("Error: Key does not match expected key size. expected 56, got %d", len(key))
+ return "", fmt.Errorf("Key does not match expected key size. Expected 56, got %d", len(key))
}
return key, nil
}
@@ -132,7 +132,7 @@ func VerifyBlock(block []byte, node Node) error {
if strings.Compare(calculatedBlockHash, strings.TrimSpace(wantedBlockHash)) == 0 {
return nil
}
- return fmt.Errorf("Error: Node %s ranging from %d to %d does not match block. Expected %s, got %s.", node.PrevNodeSum, node.BlockStart, node.BlockEnd, wantedBlockHash, calculatedBlockHash)
+ return fmt.Errorf("Node %s ranging from %d to %d does not match block. Expected %s, got %s.", node.PrevNodeSum, node.BlockStart, node.BlockEnd, wantedBlockHash, calculatedBlockHash)
}
func VerifyNode(node Node, nextNode Node) error {