/** * Major functions of this file have been taken from https://github.com/LedgerHQ/app-solana/blob/develop/examples/example-sign.js * Thus, have not been fully tested (unit tests + manual tests) * We should add more tests in the future */ /** * V1 wire format (sRFC 38, per app-solana parser): * signing domain (16 B): 0xFF + "solana offchain" * version ( 1 B): 0x01 * signer count ( 1 B): 1 * signer (32 B) * [message length ( 2 B): little-endian uint16] — only when includeLengthPrefix * message body (variable) * * The finalised sRFC 38 layout drops the length prefix. `includeLengthPrefix` * reproduces the pre-spec-update layout for backward compatibility with older * firmware that rejects the no-prefix form with 6a81. */ export declare function toOffChainMessageV1(message: string, signerAddress: string, includeLengthPrefix?: boolean): Buffer; export declare function toOffChainMessage(message: string, signerAddress: string, isLegacy: boolean): Buffer; //# sourceMappingURL=format.d.ts.map