shithub: furgit

ref: 3ce59c3248dec0eb0f918c42f37f53bc2ac20425
dir: /object/id/algorithm_zero.go/

View raw version
package objectid

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

	return id
}