@ledgerhq/coin-stellar
Version:
Ledger Stellar Coin integration
12 lines (10 loc) • 379 B
text/typescript
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();
}