import type { SigningRequest } from "./signingRequest"; /** * How a transaction built from a signing request differs from that request, or `undefined` when it * is that request, signed. * * - `transaction`: not the request's version, inputs, sequences, locktime or expiry height, or not a * transaction of the request's format at all; * - `outputs`: not the request's outputs; * - `unsigned`: an input carries no signature. */ export type SignedRequestMismatch = "transaction" | "outputs" | "unsigned"; /** * Reads `signed` in the format hw-app-btc's `createPaymentTransaction` writes for the request's * currency (`serializeTransaction` and its final assembly), and checks every field against the * request: * * - **Komodo** (Sapling): header and version group id, inputs (outpoint, scriptSig, sequence), * outputs, locktime, expiry height, then empty Sapling fields. * - **Decred**: version, inputs (outpoint, regular tree, sequence), outputs, locktime, expiry height, then * the witness (value, block height, block index, signature script) of each input. * * The outputs are compared where the format puts them, never searched for: bytes that merely appear * somewhere (e.g. inside an OP_RETURN payload) do not count. */ export declare function signedRequestMismatch(signed: Buffer, request: SigningRequest): SignedRequestMismatch | undefined; //# sourceMappingURL=signedRequestTransaction.d.ts.map