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.

Hierarchy

  • Pluto

Methods

  • Retrieve all stored DIDComm messages with given message type, and optionally, related to a given DID. "Related" means that message should contain a given DID in either "from" or "to" field.

    Parameters

    • type: string
    • Optional relatedWithDID: DID

    Returns Promise<Message[]>

  • Retrieve the anoncreds stored link secret by its name

    Parameters

    • Optional linkSecretName: string

    Returns Promise<null | string>

  • Retrieve a PRISM DID key path index for a given DID.

    Parameters

    Returns Promise<null | number>

  • Store a named pair of DIDs representing a DIDComm connection.

    Parameters

    • host: DID
    • receiver: DID
    • name: string

    Returns Promise<void>

  • Store a new anoncreds linkSecret

    Parameters

    • linkSecret: string
    • linkSecretName: string

    Returns Promise<void>

  • Store a PRISM DID and its private key with given metadata.

    Parameters

    • did: DID
    • keyPathIndex: number
    • privateKey: PrivateKey
    • privateKeyMetaId: null | string
    • Optional alias: string

    Returns Promise<void>

  • Store a list of private keys with its metadata and a reference to the DID it belongs to.

    Parameters

    • privateKey: PrivateKey
    • did: DID
    • keyPathIndex: number
    • metaId: null | string

    Returns Promise<void>