expose blob hash sizes as constants

This commit is contained in:
Alex Grintsvayg 2019-09-10 16:42:33 -04:00
parent 2d45f059ec
commit fd916d9eae
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -11,7 +11,11 @@ import (
"github.com/lbryio/lbry.go/extras/errors"
)
const MaxBlobSize = 2097152 // 2mb, or 2 * 2^20
const (
MaxBlobSize = 2097152 // 2mb, or 2 * 2^20
BlobHashSize = sha512.Size384
BlobHashHexLength = BlobHashSize * 2 // in hex, each byte is 2 chars
)
type Blob []byte