tgerboui / nona-lib

TypeScript library to simplify interactions with the Nano currency node.
MIT License
6 stars 1 forks source link

Sign block locally #12

Open tgerboui opened 2 months ago

tgerboui commented 2 months ago

In this PR blocks are now hashed and signed locally. Work generation (call at the rpc) is now separated in a work module.

The hash and sign methods have been added in the blocks module. blocks.create uses theses functions with work.generate to format a new block.

Solve #10

codecov-commenter commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (c9473e3) to head (a86fd6f).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #12 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 29 31 +2 Lines 435 455 +20 Branches 76 70 -6 ========================================= + Hits 435 455 +20 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.