/** * Solana tx wire-format helpers (pure byte ops, no @solana/web3.js). * Wire format: [shortvec sigCount] [sigCount × 64-byte sigs] [message bytes]. * Used to confirm a wallet only ADDED a signature and didn't change the message. */ /** Offset where the message begins, or -1 if the tx bytes are malformed. */ export declare function solanaMessageOffset(serializedTx: Uint8Array): number; /** V0 messages set the high bit (0x80) on the first message byte; legacy don't. */ export declare function isVersionedTransactionBytes(serializedTx: Uint8Array): boolean; /** * Throw unless `returned` keeps the byte-identical message of `sent` — signing * may only add a signature. Compares the message region only (sigs differ). */ export declare function assertSameMessage(sent: Uint8Array, returned: Uint8Array): void; //# sourceMappingURL=solana-message.d.ts.map