gatewaycash / gateway

Gateway - Simple Bitcoin Payments
GNU Affero General Public License v3.0
18 stars 10 forks source link

XPUB segregation #121

Open ty-everett opened 5 years ago

ty-everett commented 5 years ago

Sometimes a merchant wants to use the same XPUB key for their payout on a platform commissions and for their merchant account. We need a table which associates XPUBs with XPUBIndex and nothing else.

We can then create a new async utils function getXPUBIndex which takes an XPUB key as a parameter and does the following: