decred / vspd

A Voting Service Provider (VSP) for the Decred network.
ISC License
19 stars 20 forks source link

Combine concepts: xpub and last used index #479

Closed jholdstock closed 3 months ago

jholdstock commented 3 months ago

Previously the extended public key and the last used address index for that key were two values stored and handled separately. This PR combines the concepts and handles them as a single unit by wrapping them into a new struct FeeXPub.

The underlying format for storing these values in the database does not change. The only change is the interface between the database code and the calling code.

jholdstock commented 3 months ago

Rebased on master and implemented suggestion.