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

Latest commit

 

History

History
96 lines (57 loc) · 2.39 KB

README.md

File metadata and controls

96 lines (57 loc) · 2.39 KB

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