Class: ObjectPointer

Database. ObjectPointer


new ObjectPointer(properties)

Keeps references to the location of shards that compose an object
Parameters:
Name Type Description
properties object
Properties
Name Type Argument Default Description
name string <optional>
untitled.blob Human readable object name
encoding string <optional>
File encoding type
mimetype string <optional>
application/octet MIME type
hash string SHA-256 hash of the object
size number Number of bytes in the object
status string One of finished|queued|failed
shards Array.<object>
Properties
Name Type Description
size number Number of bytes in shard
hash string RMD160 hash of shard
service object
Properties
Name Type Description
0 string Identity key of provider
1 object Contact info of provider
decayed boolean Flag if this shard is lost
audits object
Properties
Name Type Description
root string Merkle root for audit tree
audit.challenges Array.<string> Audit challenges for shard
audit.depth number Depth of audit merkle tree
ecpub string SECP256K1 public key object is encrypted
ecprv string SECP256K1 private key object is encrypted
policies Array.<string> List of IMP-10 access policies
Source:

Methods


<static> methods.toEncryptedBlob(privateKey)

Returns a self encrypted blob version of the pointer
Parameters:
Name Type Description
privateKey buffer Key used to decrypt the pointer secret
Source:
Returns:
Type
object