shithub: furgit

ref: df1f2fb3daa1acd25c88510f259d5535fb482126
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
}