@ledgerhq/coin-stellar
Version:
Ledger Stellar Coin integration
15 lines (12 loc) • 460 B
text/typescript
// SPDX-FileCopyrightText: © 2026 LEDGER SAS
// SPDX-License-Identifier: Apache-2.0
import { Networks, Transaction as StellarSdkTransaction, xdr } from '@stellar/stellar-sdk'
export function combine(
transaction: string | xdr.TransactionEnvelope,
signature: string,
publicKey: string
): string {
const unsignedTx = new StellarSdkTransaction(transaction, Networks.PUBLIC)
unsignedTx.addSignature(publicKey, signature)
return unsignedTx.toXDR()
}