@ledgerhq/coin-tezos
Version:
13 lines • 628 B
JavaScript
;
// SPDX-FileCopyrightText: © 2026 LEDGER SAS
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.combine = combine;
// Source: https://github.com/ecadlabs/taquito/blob/97832fc088eccb93c152659367618ce1782a8b51/packages/taquito-ledger-signer/src/taquito-ledger-signer.ts#L187C23-L187C32
function combine(transaction, signature) {
if (signature.length !== 1) {
throw new Error(`Tezos combine expects exactly one signature, got ${signature.length}`);
}
return `${transaction}${signature[0]}`.slice(2);
}
//# sourceMappingURL=combine.js.map