expose blob hash sizes as constants
This commit is contained in:
parent
2d45f059ec
commit
fd916d9eae
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue