Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
/ BananoPHP Public archive

PHP libraries and tools for Banano currency

License

Notifications You must be signed in to change notification settings

MikeRow/BananoPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BananoPHP

PHP libraries and tools for Banano currency

Examples at BananoPHP/test


Install

composer require mikerow/bananophp

Features

  • BananoBlock

    class for building Banano blocks

  • BananoCLI

    class for interfacing to Banano node CLI

  • BananoIPC

    class for interfacing to Banano node IPC

  • BananoRPC

    class for interfacing to Banano node RPC

  • BananoRPCExt

    additional functions for BananoRPC

  • BananoTool

    class for node-independent Banano functions

  • BananoWS

    class for interfacing to Banano node WebSocket


FAQ

How to perform calculations with Banano denominations or raws?

PHP faces troubles when dealing with Banano amounts ...

  • Data type float isn't precise at certain decimal depths
  • Data type integer size is limited to 64 bit

A good solution is to perform calculations in raws using GNU Multiple Precision

Why not use libsodium instead of Salt or php-blake2?

Some limitations prevent the use of libsodium ...

  • Functions sodium_crypto_sign_* use SHA-2 instead Blake2
  • Functions sodium_crypto_generichash_* don't allow output smaller than 16 bytes


To do

  • Add Epoch v2 support to BananoBlock
  • Add FlatBuffers support to BananoWS
  • Increase FlatBuffers performances
  • Enable listening on IPC

Credits

Thanks a lot for the work and effort of