Class CommunicationClientAbstract

Internalapi

Hierarchy

Constructors

  • Parameters

    • Optional keyPair: KeyPair

    Returns CommunicationClient

Properties

eventHandlers: Map<ClientEvents, Function>
isMobileOS: (() => boolean)

Type declaration

    • (): boolean
    • Returns boolean

keyPair?: KeyPair

Methods

  • Create a cryptobox client

    Parameters

    • otherPublicKey: string
    • selfKeypair: KeyPair

    Returns Promise<SessionKeys>

  • Create a cryptobox server

    Parameters

    • otherPublicKey: string
    • selfKeypair: KeyPair

    Returns Promise<SessionKeys>

  • Encrypt a message for a specific publicKey (receiver, asymmetric)

    Parameters

    • recipientPublicKey: string
    • message: string

    Returns Promise<string>

  • Get the public key

    Returns Promise<string>

  • get the public key hash

    Returns Promise<string>

  • Parameters

    Returns Promise<void>

  • Parameters

    • senderPublicKey: string

    Returns Promise<void>

  • Returns Promise<void>

Generated using TypeDoc