Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
ngcore
package main is the entry of daemon
|
package main is the entry of daemon |
Package consensus implements the PoWork consensus
|
Package consensus implements the PoWork consensus |
Package jsonrpc is the json-rpc2 module in ngcore All commands/methods should follow these rules: - All (private or public) keys are encoded with base58 - All bytes are encoded in base64 (forced by protobuf) - All numbers are float64, coin uint is NG.
|
Package jsonrpc is the json-rpc2 module in ngcore All commands/methods should follow these rules: - All (private or public) keys are encoded with base58 - All bytes are encoded in base64 (forced by protobuf) - All numbers are float64, coin uint is NG. |
Package keytools is the module to reuse the key pair
|
Package keytools is the module to reuse the key pair |
Package ngblocks is a store for blocks which contains txs
|
Package ngblocks is a store for blocks which contains txs |
Package ngp2p is the ngin p2p protocol implement based on libp2p ngp2p uses libp2p(ipfs)'s dht for public peer discovery and mDNS for private, and uses pub-sub to work the broadcast net the main peer-to-peer communication is based on Wired Protocol, which uses fast protobuf to encode and decode objects
|
Package ngp2p is the ngin p2p protocol implement based on libp2p ngp2p uses libp2p(ipfs)'s dht for public peer discovery and mDNS for private, and uses pub-sub to work the broadcast net the main peer-to-peer communication is based on Wired Protocol, which uses fast protobuf to encode and decode objects |
Package ngpool is an autonomous module to handle the new-coming txs from internal or external events ngpool's use requires some other module's initialization: - ngchain(and ngblocks) - ngstate - ngp2p - storage
|
Package ngpool is an autonomous module to handle the new-coming txs from internal or external events ngpool's use requires some other module's initialization: - ngchain(and ngblocks) - ngstate - ngp2p - storage |
Package ngstate provides a global account status manager which controls all accounts and balance besides that, the manager can do generating current sheet for fasy sync ngstate can get init from genesis sheet or remote sheet.
|
Package ngstate provides a global account status manager which controls all accounts and balance besides that, the manager can do generating current sheet for fasy sync ngstate can get init from genesis sheet or remote sheet. |
Package ngtypes implements the block structure and related types.
|
Package ngtypes implements the block structure and related types. |
Package utils are some **utilities** while developing
|
Package utils are some **utilities** while developing |
Click to show internal directories.
Click to hide internal directories.