-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* jellyfish-wallet should be non-hd by default * revert HdWallet rename * Renamed and additional refactor Co-authored-by: Ahmed Hilali <[email protected]>
- Loading branch information
1 parent
b39bb0f
commit dc897c7
Showing
8 changed files
with
49 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './wallet' | ||
export * from './wallet_account' | ||
export * from './wallet_hd_node' | ||
export * from './wallet_elliptic_pair' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Transaction, TransactionSegWit, Vout } from '@defichain/jellyfish-transaction' | ||
import { EllipticPair } from '@defichain/jellyfish-crypto' | ||
|
||
/** | ||
* WalletEllipticPair extends EllipticPair with additional interface to sign transaction. | ||
* | ||
* WalletEllipticPair uses a managed wallet design where defaults are decided by the implementation. | ||
* Keeping the WalletEllipticPair to conventional defaults and options to none. | ||
*/ | ||
export interface WalletEllipticPair extends EllipticPair { | ||
|
||
/** | ||
* WalletEllipticPair transaction signing. | ||
* | ||
* @param {Transaction} transaction to sign | ||
* @param {Vout[]} prevouts of the transaction to fund this transaction | ||
* @return {TransactionSegWit} a signed transaction | ||
*/ | ||
signTx: (transaction: Transaction, prevouts: Vout[]) => Promise<TransactionSegWit> | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters