feat(binana): add tokens database
Some checks failed
Push / build (push) Has been cancelled

This commit is contained in:
phaneron 2026-03-20 01:58:16 -04:00
parent ac268a16c8
commit 2c2815ab0b
22 changed files with 2122 additions and 2 deletions

19
go/app/util/hash.go Normal file
View file

@ -0,0 +1,19 @@
package util
import (
"crypto/sha256"
"encoding/hex"
"os"
)
func hash_file(name string) (id string, err error) {
var b []byte
b, err = os.ReadFile(name)
if err != nil {
return
}
h := sha256.New()
h.Write(b[:])
id = hex.EncodeToString(h.Sum(nil))
return
}