OffchainMessageContentRestrictedAsciiOf1232BytesMax

type OffchainMessageContentRestrictedAsciiOf1232BytesMax<TContent> = Readonly<{
  format: RESTRICTED_ASCII_1232_BYTES_MAX;
  text: Brand<TContent, "offchainMessageContentRestrictedAsciiOf1232BytesMax">;
}>;

Describes message text that is no more than 1232 bytes long and made up of characters with ASCII character codes in the range [0x20, 0x7e].

Type Parameters

Type ParameterDefault type
TContent extends stringstring

Remarks

This type aims to restrict text to that which can be clear-signed by hardware wallets that can only display ASCII characters onscreen.

On this page