Skip to main content

Function: externalMessageEncode()

function externalMessageEncode(params, signer): Promise<object>

Encodes the given external message.

Parameters

ParameterTypeDescription

params

Omit<ExternalMessage, "authData">

The external message to be encoded without its auth data.

signer

ISigner

The message signer.

Returns

Promise<object>

The message bytecode and the message hash.

hash

hash: Uint8Array;

raw

raw: Uint8Array;

Async

Defined

@nilfoundation/niljs/src/encoding/externalMessage.ts:262