Internalapi

Hierarchy

Constructors

Properties

activeAccountOrPbk: undefined | string
activeListeners: Map<string, ((message) => void)> = ...

Type declaration

    • (message): void
    • Parameters

      • message: string

      Returns void

activeNetwork: undefined | string
channelOpeningListeners: Map<string, ((pairingResponse) => void)> = ...

Type declaration

disconnectionEvents: Set<string> = ...
eventHandlers: Map<ClientEvents, Function>
isLeader: Function
isMobileOS: (() => boolean)

Type declaration

    • (): boolean
    • Returns boolean

keyPair?: KeyPair
messageIds: string[] = []

this queue stores each active message id [0] newest message [length - 1] oldest message

pingInterval: undefined | Timeout
session: undefined | Struct
signClient: undefined | SignClient
storage: WCStorage = ...
wcOptions: {
    network: NetworkType;
    opts: Options;
}

Type declaration

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>

Generated using TypeDoc