OSDN Git Service

Add wallet recovery from mnemonic function (#1439)
authoryahtoo <yahtoo.ma@gmail.com>
Wed, 14 Nov 2018 10:49:50 +0000 (18:49 +0800)
committerPaladz <yzhu101@uottawa.ca>
Wed, 14 Nov 2018 10:49:50 +0000 (18:49 +0800)
commit0303430a5bb3adc7e558aeb019038d5b880a4c4a
tree3e607c3611e27270cfb06a35d79f9c3afcd031a7
parent7f9f4c13a6132ee05a76a8d61240a676bfd1e4d7
Add wallet recovery from mnemonic function (#1439)

* Add wallet recovery from mnemonic function

* Fix test error

* Add getCurrentContractIndex func

* Fix review bug

* Add CreateBatchAddresses func

* Fix review bug

* Opz code logic

* Fix test error

* Fix review bug

* Fix review bug

* Opz code logic

* Fix code format err

* Fix code format err

* Fix code format err

* Fix format err

* Del unused parameter

* Opz code logic

* Fix bug

* Change paramter name

* Opz code logic

* Del unused code

* Add recovery mgr trylock/unlock

* Opz code logic

* Opz code format

* Opz code format

* Add test file

* Opz code logic

* Fix test file err

* Opz code logic

* Fix contract index not updated err

* Opz code logic

* Opz code logic

* Fix test error

* Opz code format

* Opz code logic

* Fix review bug

* Fix review bug

* Fix review bug

* Fix account nil bug

* Add test case

TestRecoveryFromXPubs
TestRecoveryByRescanAccount
18 files changed:
account/accounts.go
account/accounts_test.go
account/builder.go
account/builder_test.go
account/image.go
api/accounts.go
api/api.go
api/wallet.go
test/bench_blockchain_test.go
test/integration/standard_transaction_test.go
test/tx_test_util.go
test/wallet_test_util.go
wallet/indexer.go
wallet/recovery.go [new file with mode: 0644]
wallet/recovery_test.go [new file with mode: 0644]
wallet/unconfirmed_test.go
wallet/wallet.go
wallet/wallet_test.go