Skip to content

utopiap2p-events/crypton-address-shortener

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crypton-address-shortener

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

About

Library for handling Crypton addresses and vouchers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%