adamant-api / index / encodeMessage
Function: encodeMessage()
ts
function encodeMessage(
msg,
keypair,
recipientPublicKey): {
message: string;
own_message: string;
};Defined in: src/helpers/encryptor.ts:70
Encrypts a message for an ADM recipient using the established NaCl format.
Parameters
| Parameter | Type |
|---|---|
msg | string |
keypair | KeyPair |
recipientPublicKey | string | Uint8Array<ArrayBufferLike> |
Returns
ts
{
message: string;
own_message: string;
}message
ts
message: string;own_message
ts
own_message: string;