Bitcoin Forum
May 04, 2024, 09:18:15 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Armory / Generate armory wallet addresses with Bit-Wasp / bitcoin-php on: January 18, 2020, 02:00:26 PM
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
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!