diff options
author | axtloss <axtlos@getcryst.al> | 2024-02-05 21:15:37 +0100 |
---|---|---|
committer | axtloss <axtlos@getcryst.al> | 2024-02-05 21:15:37 +0100 |
commit | ae67ea6a67c25fef305964ee34d4bf96b9da8519 (patch) | |
tree | bb4d2227ea6ec2a9b8543c7cdb39b58429cec467 /verifysetup/cmd/setup.go | |
parent | f1524db2c9d935daabd3b1557caf54fbdd63dde5 (diff) | |
download | fsverify-ae67ea6a67c25fef305964ee34d4bf96b9da8519.tar.gz fsverify-ae67ea6a67c25fef305964ee34d4bf96b9da8519.tar.bz2 |
add db signing to setup and switch to aead.dev/minisign
Diffstat (limited to 'verifysetup/cmd/setup.go')
-rw-r--r-- | verifysetup/cmd/setup.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/verifysetup/cmd/setup.go b/verifysetup/cmd/setup.go index c2676fc..674557e 100644 --- a/verifysetup/cmd/setup.go +++ b/verifysetup/cmd/setup.go @@ -73,5 +73,14 @@ func SetupCommand(_ *cobra.Command, args []string) error { } fmt.Println(finalNode) err = core.AddNode(finalNode, nil, "./fsverify.db") - return err + if err != nil { + return err + } + + signature, err := core.SignDatabase("./fsverify.db", "./minisign/") + if err != nil { + return err + } + fmt.Println(string(signature)) + return nil } |