Skip to content

Commit

Permalink
chore: remove useless signWitness
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Nov 20, 2019
1 parent f94ea30 commit 0f3e08f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions packages/neuron-wallet/src/services/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,26 +764,6 @@ export default class WalletService {
return AddressService.nextUnusedChangeAddress(walletId)!.address
}

public signWitness = (
lock: string | undefined,
privateKey: string,
txHash: string,
inputType: string | undefined = undefined,
outputType: string | undefined = undefined
): string => {
const witnessArg: CKBComponents.WitnessArgs = {
lock,
inputType,
outputType,
}
const result = core.signWitnesses(privateKey)({
transactionHash: txHash,
witnesses: [witnessArg]
})

return result[0] as string
}

// Derive all child private keys for specified BIP44 paths.
public getPrivateKeys = (wallet: Wallet, paths: string[], password: string): PathAndPrivateKey[] => {
const masterPrivateKey = wallet.loadKeystore().extendedPrivateKey(password)
Expand Down

0 comments on commit 0f3e08f

Please sign in to comment.