Function: externalMessageEncode()
function externalMessageEncode(params, signer): Promise<object>
Encodes the given external message.
Parameters
Parameter | Type | Description |
---|---|---|
|
| The external message to be encoded without its auth data. |
| 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:260