Documentation
¶
Overview ¶
Package blob defines content-addressable type to contain arbitrary data.
Index ¶
Constants ¶
const DataLenHardLimit = 64 * 1024
const KeyLength = crypto.HashLength - 1
KeyLength length of blob key. It's shorter then crypto hash length for extension purpose.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blob ¶
type Blob struct {
// contains filtered or unexported fields
}
Blob data type stored in solidb
type Key ¶
Key key of blob, derrived from blob data
var EmptyKey Key
EmptyKey a key with all zero bytes
func ParseHexKey ¶
ParseHexKey parse hex string to blob key
func (*Key) UnmarshalJSON ¶
UnmarshalJSON unmarshal JSON