RFC 6920: Naming Things with Hashes
posts.summerti.me
posts.summerti.me
Another example of a content-addressed data store could be OCI registries (more commonly known as container image registries). Using them to store arbitrary artefacts is quite well supported now: https://oras.land/
package rfc6920
import (
"crypto/sha256"
"encoding/base64"
)
func rfc6920(s string) string {
sum := sha256.Sum256([]byte(s))
return base64.RawURLEncoding.EncodeToString(sum[:])
}