jared970/crypton-shortener

Library for handling Crypton addresses and vouchers

1.0.2 2021-05-24 22:35 UTC

This package is auto-updated.

Last update: 2025-05-25 07:31:15 UTC


README

Library for handling Crypton addresses and vouchers.

This solution can be used to shorten the wallet address in order to use it in the URL for web services. For example, it will be possible to use a shortened link when creating a donation service in Crypton.

install

composer require jared970/crypton-shortener

example

// account pubkey = crypton address
$cryptonAddress = '2F2BF157DB859C01FE0CDC2C7F2B5A787ED34EB964559F1E093237EE4707249C';

$util = new Crypton\Utility();
echo $util->ShortenAddress($cryptonAddress);

result:

4B92T3TNfrNEuSLj4N8AAXp1zyHrHVbqUgNhDSmc931d