New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/alexbakker/gonano

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/alexbakker/gonano

  • v0.0.0-20220103155234-6c241ae9ebff
  • Source
  • Go
  • Socket score

Version published
Created
Source

gonano Build Status Documentation

gonano is a WIP implementation of the Nano cryptocurrency in Go.

This is a work in progress. Do not use this in production environments. All of the exported API's are subject to change and should thus not be considered stable. The same applies to the database format, configuration files and wallet files.

Protocol documentation can be found at: doc/protocol.md.

The address of my motivational back account is: xrb_1tt5p7agt63f3q37151o1yz3k1pfdan7wet9anejzrdqnuz5kgtcqiwwtfm6.

Goals

The goals of this project are to:

  • Provide an alternative to the existing C++ implementation
  • Learn about the protocol
  • Document the protocol
  • Make Nano more accessible to developers

Progress

  • Network Protocol
    • Documentation (see also: doc/protocol.md)
    • Data structures
      • Keep alive
      • Publish
      • Confirm Req
      • Confirm ACK
      • Bulk Pull
      • Bulk Push
      • Frontier Req
      • Bulk Pull Blocks
    • Synchronization
      • Pull
      • Push
    • Pinging
    • (Re)broadcasting blocks
    • Voting
  • Blocks
    • Data structures
      • Send
      • Receive
      • Open
      • Change
      • State
    • Proof of Work
  • Node
    • Persist state to a database
      • Blocks
      • Address balance
      • Pending transactions
      • Representatives (voting weight)
      • Votes
    • Block verification
    • Fork resolution
      • Block rollback
    • RPC interface
  • Wallet
    • Data structures
      • Balance
      • Address
      • Seed
    • Persist state to an encrypted file
    • RPC interface
  • Tests

Compiling

Go 1.8 or newer is required.

Run make all to build everything. Binaries can be found in the 'build' folder.

Run make test to run the tests.

Dependencies

This project directly depends on the following packages:

  • badger - Fast key-value DB in Go
  • cobra - A Commander for modern Go CLI interactions
  • blake2b and ed25519 - Go supplementary cryptography libraries
  • uint128 128-bit unsigned integer package from CockroachDB
  • decimal - Arbitrary-precision fixed-point decimal numbers in go

The above packages are vendored and can be found in the vendor directory. The ed25519 and uint128 packages are placed elsewhere as those had to be customized for gonano.

License

The source code of this project is licensed under the MIT license. The protocol documentation is licensed under CC BY-SA.

FAQs

Package last updated on 03 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc