Reference Objects

File representation in the Blobber DB.

Reference objects represent the files in the DB of the blobber, for ease of access for validation and other operations.

Some Important Properties

Check the definition of the Ref struct here

PropertiesDefinition

FileID

ID of the file in the system.

Type

Either file or directory.

AllocationID

ID of the allocation the file belongs to.

LookupHash

Hash of the file path and the allocation ID, used to lookup for the file.

Name

Name of the file.

Path

Full absolute path of the file on the allocation.

FileMetaHash

Hash of file metadata. Used for verification.

Hash

Hash of the file content. Used for verification.

NumBlocks

Number of blocks that belong to the file.

PathHash

Hashed value of the file path. Used for verification.

Size

Size of the file.

FixedMerkleRoot

Calculated hash based on the contents of the file. Used for challenges. Changes only when the file contents changes. Calculated only for files.

MimeType

Mime type of the file.

AllocationRoot

Root hash of the allocation the file belongs to.

ThumbnailHash

Hash of the thumbnail contents.

ThumbnailSize

Size of the thumbnail.

ChunkSize

Size of the chunk of the file stored in this blobber.

NumUpdates

How many times the file was updated (contents changed by owner).

NumBlockDownloads

How many times the file was downloaded.

Last updated