Skip to content

adamant-api / index / decodeMessage

Function: decodeMessage()

ts
function decodeMessage(
   message, 
   senderPublicKey, 
   keyPairOrPassphrase, 
   nonce): string;

Defined in: src/helpers/encryptor.ts:102

Decrypts an ADM chat payload and returns an empty string on auth failure.

Parameters

ParameterType
messagestring
senderPublicKeystring | Uint8Array<ArrayBufferLike>
keyPairOrPassphrasestring | KeyPair
noncestring

Returns

string

Released under the GPL-3.0 License.