package
1.1.0
Repository: https://github.com/piprate/metalocker.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
AnonEncrypt encrypts a message by anonymous-encryption scheme.
No description provided by the author
No description provided by the author
BuildDigitalAssetID creates a new instance for Digital Asset from a pre-calculated fingerprint.
BuildDigitalAssetIDFromFile creates a new instance for Digital Asset.
BuildDigitalAssetIDFromReader creates a new instance for Digital Asset from a pre-calculated fingerprint.
BuildDigitalAssetIDWithFingerprint creates a new instance for Digital Asset from a pre-calculated fingerprint.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DecryptAESCGM decrypts data using 256-bit AES-GCM.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EncryptAESCGM encrypts data using 256-bit AES-GCM.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenerateAccessKey creates a new access key that can be used to connect to MetaLocker.
No description provided by the author
No description provided by the author
No description provided by the author
GenerateDocumentNodeMap exposes GenerateNodeMap method from JSON-LD API.
No description provided by the author
No description provided by the author
No description provided by the author
GenerateNewSemanticDigitalAsset creates a new instance for Digital Asset.
GenerateNewSemanticDigitalAssetFromFile creates a new instance for Digital Asset.
GenerateNewSemanticDigitalAssetFromReader creates a new instance for Digital Asset from io.Reader.
GenerateNewSemanticDigitalAssetWithHash creates a new instance for Digital Asset from pre-calculated hash.
No description provided by the author
Hash generates a hash of data using HMAC-SHA-512/256.
No description provided by the author
No description provided by the author
No description provided by the author
NewAssetID generates a new random asset ID.
No description provided by the author
No description provided by the author
NewEncryptionKey generates a random 256-bit key for Encrypt() and Decrypt().
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UnwrapDigitalAssetID removes 'did:method:' component from the given DID.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MerkleID is an ID used for signing and verification of Merkle documents.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RecordFlagPublic bit is set to true, if the underlying operation and data assets are available in a clear-text form.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

DefaultMaxDistanceSeconds is 5 minutes.
ErrAssetHeadNotFound indicates the record for an asset head is not found.
No description provided by the author
No description provided by the author
ErrBlockNotFound indicates the ledger block was not found.
No description provided by the author
ErrDataAssetNotFound indicates the data asset was not found.
ErrDataSetNotFound indicates the dataset was not found.
No description provided by the author
No description provided by the author
No description provided by the author
ErrOperationNotFound indicates that operation was not found.
ErrRecordNotFound indicates the ledger record was not found.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AccessKey defines a key that can be used to access MetaLocker.
No description provided by the author
Block defines a block of the MetaLocker ledger.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Impression is a semantic definition of a dataset that contains verifiable information about its provenance, authorship, relation to other datasets, including revision data.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Lease is a dataset lease as a MetaLocker operation.
No description provided by the author
No description provided by the author
MetaResource provides Impression with a link to its meta resource, the root document of the underlying dataset.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Record represents one data transaction (lease, revocation, etc).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
DataSet defines an interface to a MetaLocker dataset stored in the given record.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
OffChainStorage is an interface to a storage layer that is used to store ledger operation definitions.
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author