isValid

Uses Dock SDK to verify a credential

isValid(credential: Object)
Parameters
credential (Object)
Name Description
credential.credential any
credential.wallet any

syncCredentialStatus

Fetch credential status from the chain and update the wallet Store a new document #status in the wallet Returns a list of CredentialStatusDocument

syncCredentialStatus(param0: Object): any
Parameters
param0 (Object)
Name Description
param0.wallet any
param0.credentialIds any
param0.forceFetch any
Returns
any: CredentialStatusDocument[]

getAll

Get DIDs list

getAll(param0: Object)
Parameters
param0 (Object)
Name Description
param0.wallet any

defineProperty

DIDComm Message helpers Check https://identity.foundation/didcomm-messaging/spec/#out-of-band-messages for more details

defineProperty

buildVerificationFlowInviteMessage

buildVerificationFlowInviteMessage($0: Object): any
Parameters
$0 (Object)
Name Description
$0.verifierDID any
$0.proofRequestId any
Returns
any: OOB message to start a wallet to wallet verification flow The holder will scan it as QR code and should have the context to start the verification flow

buildRequestVerifiablePresentationMessage

Sender: Verifier OOB message to request a verifiable presentation from the holder

buildRequestVerifiablePresentationMessage($0: Object)
Parameters
$0 (Object)
Name Description
$0.verifierDID any
$0.holderDID any
$0.proofRequest any
$0.proofRequestId any

buildAckWalletToWalletVerificationMessage

Sender: Holder Start a wallet to wallet verification flow

buildAckWalletToWalletVerificationMessage($0: Object)
Parameters
$0 (Object)
Name Description
$0.holderDID any
$0.verifierDID any
$0.proofRequestId any

buildVerifiablePresentationMessage

Sender: Holder Send a verifiable presentation to the verifier

buildVerifiablePresentationMessage($0: Object)
Parameters
$0 (Object)
Name Description
$0.verifierDID any
$0.holderDID any
$0.proofRequestId any
$0.presentation any

buildVerifiablePresentationAckMessage

Sender: Verifier Sends an the presentation result to the holder

buildVerifiablePresentationAckMessage($0: Object)
Parameters
$0 (Object)
Name Description
$0.verifierDID any
$0.holderDID any
$0.proofRequestId any
$0.presentationResult any

resolveApiNetwork

Given an Api URL, resolve the network ID For now it will be applied for creds and certs It can be extended to resolve other external URLs

resolveApiNetwork($0: Object)
Parameters
$0 (Object)
Name Description
$0.url any
$0.dataStore any

toV1WalletService

Wallet service methods

toV1WalletService(wallet: any)
Parameters
wallet (any)

statusData

Extra data to give better context to the current state Can be used to show error messages, or more specific information about the state

statusData

getFilteredCredentials

Filtered credentials

getFilteredCredentials()

evaluatePresentation

Use pex to evaluate presentation

evaluatePresentation(presentation: any)
Parameters
presentation (any)

handleSubstrateNetworkChange

Update existing substrate network connection Compare connected substrate connection with the current walle network Disconnect and Establish a new connection if the network is different

handleSubstrateNetworkChange(wallet: any)
Parameters
wallet (any)

createWallet

Create wallet

createWallet(createWalletProps: any): Promise<IWallet>
Parameters
createWalletProps (any)
Returns
Promise<IWallet>: