bee
bee copied to clipboard
Bee option for Node Spinup: Funding private key
Summary
A private key passed as an option to Bee, which, given it has xDAI (and xBZZ), funds are automatically transferred to the node's wallet.
Motivation
- Good UX with gift wallets (common)
- May simplify "1. init bee wallet, 2. transfer funds, 3. start bee" setup to "1. prepare funds, 2. start bee" in CI or for node operators (less common)
- Future potential: May reuse multichain toolkit and include automatic swapping and bridging, e.g. end user provides wallet with some low ETH, and the rest is handled
Implementation
- Check option on startup
- Return if no xDAI
- Transfer xBZZ, if any
- Transfer xDAI, if any
- Proceed with startup
Drawbacks
- Development costs
- Risk of being an underused feature
- Funding private key must be an ephemeral, low-value PK strictly for this purpose
on hold until multichain tool is finalised and get user feedback