Post
Topic
Board Armory
Topic OP
Generate armory wallet addresses with Bit-Wasp / bitcoin-php
by
Ethorsen
on 18/01/2020, 14:00:26 UTC
Hello,

I would like to implement some payment system, where I would generate a unique address for each transaction/user.   My website runs on php 7.3.

I found some examples using bitwasp library.  But am unsure what would be the best approach to implement this.

- Should I provide a wallet private key to bitwasp to generate my addresses?   This example seems to take a private key fromWif ? (i dont know what this is)
https://github.com/Bit-Wasp/bitcoin-php/blob/9e535f04665ba22ba2b8b63f371ec50d2e7eabb8/examples/addresstypes.script.php#L16-18

 Then I guess the generated addresses would show up in Armory

- Is it possible to provide bitwasp with only my wallet public key to generate new addresses ? I would rather not leave my private key in some php file or in my database (even if it is secured).

- Should I generate a unique private key with bitwasp, use it to generate my addresses and then import it in Armory ?

- Should I generate a new private key and address for each new transaction and then import it in Armory ?

Some help on this would be appreciated.

Thx
Eric