• Internal

    Proceed with Asymmetric encryption of the data as per 26/WAKU-PAYLOAD. The data MUST be flags | payload-length | payload | [signature]. The returned result can be set to WakuMessage.payload.

    Parameters

    • data: Uint8Array
    • publicKey: string | Uint8Array

    Returns Promise<Uint8Array>

Generated using TypeDoc