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

PHP libraries and tools for Nano currency

License

Notifications You must be signed in to change notification settings

MikeRow/NanoPHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NanoPHP

PHP libraries and tools for Nano currency

Examples at NanoPHP/test


Install

composer require mikerow/nanophp

Features

  • NanoBlock

    class for building Nano blocks

  • NanoCLI

    class for interfacing to Nano node CLI

  • NanoIPC

    class for interfacing to Nano node IPC

  • NanoRPC

    class for interfacing to Nano node RPC

  • NanoRPCExt

    additional functions for NanoRPC

  • NanoTool

    class for node-independent Nano functions

  • NanoWS

    class for interfacing to Nano node WebSocket


FAQ

How to perform calculations with Nano denominations or raws?

PHP faces troubles when dealing with Nano 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 NanoBlock
  • Add FlatBuffers support to NanoWS
  • Increase FlatBuffers performances
  • Enable listening on IPC

Credits

Thanks a lot for the work and effort of