aboutsummaryrefslogtreecommitdiff
path: root/object/id/objectid_zero.go
blob: 9cc3d2056c3a9a2b81ed942270663750bc9d238b (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
package objectid

// Zero returns the all-zero object ID for the specified algorithm.
func Zero(algo Algorithm) ObjectID {
	id, err := FromBytes(algo, make([]byte, algo.Size()))
	if err != nil {
		panic(err)
	}

	return id
}