UNPKG

@ledgerhq/coin-tezos

Version:
11 lines (9 loc) 511 B
// SPDX-FileCopyrightText: © 2026 LEDGER SAS // SPDX-License-Identifier: Apache-2.0 // Source: https://github.com/ecadlabs/taquito/blob/97832fc088eccb93c152659367618ce1782a8b51/packages/taquito-ledger-signer/src/taquito-ledger-signer.ts#L187C23-L187C32 export function combine(transaction: string, signature: string[]): string { if (signature.length !== 1) { throw new Error(`Tezos combine expects exactly one signature, got ${signature.length}`) } return `${transaction}${signature[0]}`.slice(2) }