protomap-services
v0.1.0
Published
Topic Manager and Lookup Service for ProtoMap name registry
Downloads
7
Readme
protomap-services
Topic Manager and Lookup Service for ProtoMap Registry
API
Table of Contents
ProtoMapLookupService
Implements a lookup service for ProtoMap name registry
Parameters
storageEngine
outputAdded
Notifies the lookup service of a new output added.
Parameters
Returns Promise<void>
outputSpent
Deletes the output record once the UTXO has been spent
Parameters
Returns Promise<void>
lookup
Queries the lookup service for particular UTXOs
Parameters
params
{query: ProtoMapLookupQuery}object
query
Returns Promise<Array<LookupResult>>
ProtoMapTopicManager
Implements a topic manager for ProtoMap name registry
identifyAdmissibleOutputs
Returns the outputs from the ProtoMap transaction that are admissible.
Parameters
object
object all params given in an objectobject.previousUTXOs
Array<Output> any previous UTXOsobject.parsedTransaction
Transaction transaction containing outputs to admit into the current topic
Returns Promise<(Array<number> | AdmissableOutputs)>
getDocumentation
Returns the documentation for the ProtoMap topic
Returns Promise<string> the documentation given as a string
ProtoMapStorageEngine
Implements a Lookup StorageEngine for ProtoMap name registry
Parameters
db
connected mongo database instance
storeRecord
Parameters
Returns Promise<void>
deleteRecord
Delete a matching ProtoMap record
Parameters
findByName
Find protocol registration by name
Parameters
findByProtocolIDAndSecurityLevel
Find token by protocolID and securityLevel
Parameters
License & Confidentiality
This is proprietary software developed and owned by Peer-to-peer Privacy Systems Research, LLC. Except as provided for in your CWI Partner Agreement with us, you may not use this software and must keep it confidential.