Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidBlobName = errors.New("invalid blob name")
)
Functions ¶
This section is empty.
Types ¶
type BlobName ¶
type BlobName []byte
BlobName is used to identify blobs. Internally it is a single array of bytes that represents both the type of the blob and internal hash used to create that blob. The type of the blob is not stored directly. Instead it is mixed with the hash of the blob to make sure that all bytes in the blob name are randomly distributed.
func BlobNameFromHashAndType ¶
BlobNameFromHashAndType generates the name of a blob from some hash (e.g. sha256 of blob's content) and given blob type
func BlobNameFromString ¶
BlobNameFromString decodes base58-encoded string into blob name
Click to show internal directories.
Click to hide internal directories.