A community based topic aggregation platform built on atproto
1package repository
2
3import (
4 "github.com/ipfs/go-cid"
5 "github.com/multiformats/go-multihash"
6)
7
8var (
9 // PlaceholderCID is used for empty repositories that have no content yet
10 // This allows us to maintain consistency in the repository record
11 // while the actual CAR data is created when records are added
12 PlaceholderCID cid.Cid
13)
14
15func init() {
16 // Initialize the placeholder CID once at startup
17 emptyData := []byte("empty")
18 mh, _ := multihash.Sum(emptyData, multihash.SHA2_256, -1)
19 PlaceholderCID = cid.NewCidV1(cid.Raw, mh)
20}