Methods
get All Messages ByDID
get All Messages ByDID ( did ) : Promise < Message [] >
Returns Promise < Message [] >
get All Messages By From ToDID
get All Messages By From ToDID ( from , to ) : Promise < Message [] >
Returns Promise < Message [] >
get All Messages Of Type
get All Messages Of Type ( type , relatedWithDID ? ) : Promise < Message [] >
Parameters
type : string
Optional
relatedWithDID : DID
Returns Promise < Message [] >
get All Messages Received
get All Messages Received ( ) : Promise < Message [] >
Returns Promise < Message [] >
get All Messages Received From
get All Messages Received From ( did ) : Promise < Message [] >
Returns Promise < Message [] >
get All Messages Sent To
get All Messages Sent To ( did ) : Promise < Message [] >
Returns Promise < Message [] >
getDIDPrivate Keys ByDID
getDIDPrivate Keys ByDID ( did ) : Promise < PrivateKey [] >
get Link Secret
get Link Secret ( linkSecretName ? ) : Promise < null | string >
Parameters
Optional
linkSecretName : string
Returns Promise < null | string >
get Message
get Message ( id ) : Promise < null | Message >
Returns Promise < null | Message >
get Pair ByDID
get Pair ByDID ( did ) : Promise < null | DIDPair >
Returns Promise < null | DIDPair >
get Pair By Name
get Pair By Name ( name ) : Promise < null | DIDPair >
Returns Promise < null | DIDPair >
get PrismDIDKey Path Index
get PrismDIDKey Path Index ( did ) : Promise < null | number >
Returns Promise < null | number >
get Prism Last Key Path Index
get Prism Last Key Path Index ( ) : Promise < number >
Returns Promise < number >
start
start ( ) : Promise < void >
Returns Promise < void >
store Credential
store Credential ( credential ) : Promise < void >
Returns Promise < void >
store Credential Metadata
store Credential Metadata ( metadata , linkSecret ) : Promise < void >
Returns Promise < void >
storeDIDPair
storeDIDPair ( host , receiver , name ) : Promise < void >
Parameters
receiver : DID
name : string
Returns Promise < void >
store Link Secret
store Link Secret ( linkSecret , linkSecretName ) : Promise < void >
Parameters
linkSecret : string
linkSecretName : string
Returns Promise < void >
store Mediator
store Mediator ( mediator , host , routing ) : Promise < void >
Returns Promise < void >
store Message
store Message ( message ) : Promise < void >
Returns Promise < void >
store Messages
store Messages ( messages ) : Promise < void >
Returns Promise < void >
store PeerDID
store PeerDID ( did , privateKeys ) : Promise < void >
Returns Promise < void >
store PrismDID
store PrismDID ( did , keyPathIndex , privateKey , privateKeyMetaId , alias ? ) : Promise < void >
Parameters
keyPathIndex : number
privateKeyMetaId : null | string
Optional
alias : string
Returns Promise < void >
store Private Keys
store Private Keys ( privateKey , did , keyPathIndex , metaId ) : Promise < void >
Parameters
keyPathIndex : number
metaId : null | string
Returns Promise < void >
Pluto is a storage interface describing storage requirements of the edge agents which will be implemented using this SDK. Implement this interface using your preferred underlying storage technology, most appropriate for your use case.