export const signTransaction = (signerContext) => {
    return async (deviceId, { path, rawTxHex }) => {
        const signedTx = await signerContext(deviceId, signer => signer.signTransaction(path, rawTxHex));
        return signedTx;
    };
};
export const stellarSignTransaction = (signerContext) => {
    return async (deviceId, { path, transaction }) => {
        const signedTx = await signerContext(deviceId, signer => signer.signTransaction(path, transaction));
        return signedTx.signature.toString("base64"); // It should return a Buffer
    };
};
export const tezosSignTransaction = (signerContext) => {
    return async (deviceId, { path, rawTxHex }) => {
        const signed = await signerContext(deviceId, signer => signer.signOperation(path, rawTxHex, {}));
        return signed.signature;
    };
};
//# sourceMappingURL=signTransaction.js.map