chainloader
- Parses blockchain transactions for embedded data keys
- Fetches the access-rights files (for non-public files) from a Tradle keeper
- Fetches the public/shared object bodies from a Tradle keeper
- Returns all collected data and metadata, both in its original (encrypted), and decrypted form.
Usage
var Loader = require('chainloader')
var loader = new Loader({
prefix: 'tradle',
networkName: 'testnet',
keeper: keeper,
lookup: identityLookupFn
})
loader.load(tx)
.then(function (chainedObj) {
})
function identityLookupFn (fingerprint, cb) {
cb(null, {
identity: identity,
key: key
})
}