package erasureencode import ( "crypto/sha256" ) func sha256sum(input []byte) []byte { v := sha256.Sum256(input) return v[:] }