shithub: furgit

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