func verifyBlob(sum string, b *blob.Blob) (err error) { if hex.EncodeToString(b.Sum()) != sum { err = errors.New("blobdb: blob name does not match hash of its content.") } return }