Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | /** |
| 3 | * @package brianhenryie/bh-wp-bitcoin-gateway |
| 4 | */ |
| 5 | |
| 6 | namespace BrianHenryIE\WP_Bitcoin_Gateway\API\Helpers; |
| 7 | |
| 8 | /** |
| 9 | * @see https://learnmeabitcoin.com/technical/keys/hd-wallets/derivation-paths/ |
| 10 | */ |
| 11 | interface Generate_Address_API_Interface { |
| 12 | |
| 13 | /** |
| 14 | * Generates a new address from a master public address and an index. |
| 15 | * |
| 16 | * @param string $public_address xpub/ypub/zpub address. |
| 17 | * @param int $nth The index of the address to generate. |
| 18 | * |
| 19 | * @return string Raw address. |
| 20 | */ |
| 21 | public function generate_address( string $public_address, int $nth ): string; |
| 22 | } |