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

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRow committed May 13, 2020
1 parent f825299 commit 2def2c0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.4
v1.3.3
5 changes: 0 additions & 5 deletions lib/NanoBlocks.php

This file was deleted.

25 changes: 22 additions & 3 deletions lib/NanoTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@

class NanoTools
{
// *** Denominations and raw values ***
// *****************
// *** Constants ***
// *****************



// *** Denomination to raw values ***


const raw2 =
[
'unano' => '1000000000000000000',
Expand All @@ -30,7 +36,20 @@ class NanoTools
];


// *** Binary array to binary string
// *** Block preamble ***


const preamble = '0000000000000000000000000000000000000000000000000000000000000006';



// *****************
// *** Utilities ***
// *****************



// *** Binary array to binary string ***


public static function bin_arr2str( $array )
Expand All @@ -39,7 +58,7 @@ public static function bin_arr2str( $array )
}


// *** Binary string to binary array
// *** Binary string to binary array ***


public static function bin_str2arr( $string )
Expand Down

0 comments on commit 2def2c0

Please sign in to comment.