lbcwallet/waddrmgr
Dave Collins c8bdd71074 waddrmgr: Make create/update logic more explicit.
This commit makes the creation and updating of the address manager more
explicit so it's easier to upgrade in the future.

In particular, rather than treating the initial creation as an upgrade by
relying on creating the initial buckets on the fly on each load, the code
now explicitly provides distinct create and upgrade paths that are invoked
from the Create and Open functions, respectively.

It also adds some commented out sample code to illustrate how upgrades
should be done and a check to ensure bumping the version number without
writing upgrade code results in a new error, ErrUpgrade, being returned.

Finally, a test has been added for the new functionality.
2015-03-04 14:12:47 -06:00
..
address.go Update btcec path import paths to new location. 2015-02-06 11:06:45 -06:00
common_test.go Switch to new waddrmgr package 2015-03-02 11:55:42 -06:00
cov_report.sh Provide new wallet address manager package. 2014-10-13 16:19:09 -05:00
db.go waddrmgr: Make create/update logic more explicit. 2015-03-04 14:12:47 -06:00
doc.go waddrmgr: Update more documentation for walletdb. 2015-02-10 00:17:28 -06:00
error.go waddrmgr: Make create/update logic more explicit. 2015-03-04 14:12:47 -06:00
error_test.go waddrmgr: Make create/update logic more explicit. 2015-03-04 14:12:47 -06:00
internal_test.go waddrmgr: Make create/update logic more explicit. 2015-03-04 14:12:47 -06:00
manager.go waddrmgr: Make create/update logic more explicit. 2015-03-04 14:12:47 -06:00
manager_test.go waddrmgr: Make create/update logic more explicit. 2015-03-04 14:12:47 -06:00
pool_error.go Implement the deposit side of Voting Pools 2014-11-12 11:41:44 -06:00
README.md Update btcwallet import paths to new location. 2015-01-17 00:25:53 -06:00
sync.go Update btcwire path import paths to new location. 2015-02-05 15:41:38 -06:00
test_coverage.txt Provide new wallet address manager package. 2014-10-13 16:19:09 -05:00

waddrmgr

[Build Status] (https://travis-ci.org/btcsuite/btcwallet)

Package waddrmgr provides a secure hierarchical deterministic wallet address manager.

A suite of tests is provided to ensure proper functionality. See test_coverage.txt for the gocov coverage report. Alternatively, if you are running a POSIX OS, you can run the cov_report.sh script for a real-time report. Package waddrmgr is licensed under the liberal ISC license.

Feature Overview

  • BIP0032 hierarchical deterministic keys
  • BIP0043/BIP0044 multi-account hierarchy
  • Strong focus on security:
    • Fully encrypted database including public information such as addresses as well as private information such as private keys and scripts needed to redeem pay-to-script-hash transactions
    • Hardened against memory scraping through the use of actively clearing private material from memory when locked
    • Different crypto keys used for public, private, and script data
    • Ability for different passphrases for public and private data
    • Scrypt-based key derivation
    • NaCl-based secretbox cryptography (XSalsa20 and Poly1305)
  • Scalable design:
    • Multi-tier key design to allow instant password changes regardless of the number of addresses stored
    • Import WIF keys
    • Import pay-to-script-hash scripts for things such as multi-signature transactions
    • Ability to export a watching-only version which does not contain any private key material
    • Programmatically detectable errors, including encapsulation of errors from packages it relies on
    • Address synchronization capabilities
  • Comprehensive test coverage

Documentation

[GoDoc] (http://godoc.org/github.com/btcsuite/btcwallet/waddrmgr)

Full go doc style documentation for the project can be viewed online without installing this package by using the GoDoc site here: http://godoc.org/github.com/btcsuite/btcwallet/waddrmgr

You can also view the documentation locally once the package is installed with the godoc tool by running godoc -http=":6060" and pointing your browser to http://localhost:6060/pkg/github.com/btcsuite/btcwallet/waddrmgr

Installation

$ go get github.com/btcsuite/btcwallet/waddrmgr

Package waddrmgr is licensed under the copyfree ISC License.