Rename a method and make it private. Comment it out because we don't need it yet.

This commit is contained in:
Daniel Krol 2022-05-05 13:49:22 -04:00
parent b18af383be
commit 340e6ccaa3

View file

@ -37,7 +37,10 @@ export class SigningService {
return bip32.fromBase58(account.private_key).privateKey || null; return bip32.fromBase58(account.private_key).privateKey || null;
} }
getAddresses(wallet: any): string[] { // Does this belong in identity.service next to getChannels? or does
// getChannels belong here next to this?
/*
private getSpendingAddresses(wallet: any): string[] {
return wallet.accounts return wallet.accounts
// won't venture into deterministic yet // won't venture into deterministic yet
.filter((account: any) => account.address_generator.name === 'single-address') .filter((account: any) => account.address_generator.name === 'single-address')
@ -46,6 +49,7 @@ export class SigningService {
return this.getAddressFromBip32(node) return this.getAddressFromBip32(node)
}) })
} }
*/
signPSBT(psbtHex: string, nonWitnessUtxoHexes: string[], signingKey: Buffer): string { signPSBT(psbtHex: string, nonWitnessUtxoHexes: string[], signingKey: Buffer): string {
const keyPair = ecpair.ECPair.fromPrivateKey(signingKey, { network: NETWORK }) const keyPair = ecpair.ECPair.fromPrivateKey(signingKey, { network: NETWORK })