Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 900 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 900 Bytes

Ripple Address Generator

Ripple Address Generator is a PHP library that derives Ripple addresses and account IDs from Ed25519 or Secp256k1 public keys.

Installation

Use composer pip to install PHP library.

composer require pandidan/ripple-address-generator

Usage

use Pandidan\Ripple;

$publicKey = 'ED76b77e7f30b9bfd8da1b54836d10bb7d95e671b821eb8b0d7413e42d48308082';
$rippleAddress = new Ripple\Address;

return rippleAddress->fromPublicKey($publicKey);

/* Returns:
Array
(
    [accountId] => 84916c1dcce801e623f0769bdde74b6f868cafe5
    [address] => rDnxQSed63QU5N473MYLvS6MRMfPDpYmun
)
*/

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT