go-vocchain

module
v0.0.0-...-bc39d7e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2020 License: LGPL-3.0

README

Go-Vocchain

Official Golang implementation of the Vocchain protocol.

Binary archives are published at https://www.voconline.io/#download

Runing
voc-core --conf=~/.voc/config.conf --datadir=~/.voc

PROGRAMMATICALLY INTERFACING VOC-CORE NODES User flag

--listen Enable the HTTP-RPC server  
--host HTTP-RPC server listening interface (default: localhost)  
--port HTTP-RPC server listening port (default: 9333)  
--user  HTTP-RPC server UserName  
--password HTTP-RPC server Password  

User config

[rpc]
host=127.0.0.1  
port=9333  
rpcuser=345345354  
rpcpassword=12323234  
rpcallowip=127.0.0.1,192.168.1.222,0.0.0.0
Note: Please understand the security implications of opening up an HTTP/WS based transport before doing so! Hackers on the internet are actively trying to subvert VocChain nodes with exposed APIs! Further, all browser tabs can access locally running web servers, so malicious web pages could try to subvert locally available APIs!

CONFIG EXAMPLE
[data]
datadir=d:/Voctest
listen=1
server=1

[p2p]
# p2p-listen-endpoint = 0.0.0.0:9332
# p2p-server-address =
# p2p-peer-address =
# p2p-max-nodes-per-host = 1
# agent-name = "VOC Node
# allowed-connection = any
# peer-key =
# sync-fetch-span = 100 
# max-clients = 25
# connection-cleanup-period = 30
# max-cleanup-time-msec = 10
# network-version-match = 0

[rpc]
host=127.0.0.1
port=9333
rpcuser=345345354
rpcpassword=12323234
rpcallowip=127.0.0.1,192.168.1.2

[wallet]
fee=0.001

Directories

Path Synopsis
Package accesstoken provides storage and validation of Chain Core credentials.
Package accesstoken provides storage and validation of Chain Core credentials.
Package account stores and tracks accounts within a Voc Core.
Package account stores and tracks accounts within a Voc Core.
accounts
abi
Package abi implements the voc-core ABI (Application Binary Interface).
Package abi implements the voc-core ABI (Application Binary Interface).
blockchain
pseudohsm
Package pseudohsm provides a pseudo HSM for development environments.
Package pseudohsm provides a pseudo HSM for development environments.
rpc
signers
Package signers associates signers and their corresponding keys.
Package signers associates signers and their corresponding keys.
txbuilder
Package txbuilder builds a Chain Protocol transaction from a list of actions.
Package txbuilder builds a Chain Protocol transaction from a list of actions.
cmd
Package common contains various helper functions.
Package common contains various helper functions.
bech32
Package bech32 provides a Go implementation of the bech32 format specified in BIP 173.
Package bech32 provides a Go implementation of the bech32 format specified in BIP 173.
contracts
checkpointoracle
Package checkpointoracle is a an on-chain light client checkpoint oracle.
Package checkpointoracle is a an on-chain light client checkpoint oracle.
Package core implements the voc-core consensus protocol.
Package core implements the voc-core consensus protocol.
asm
Provides support for dealing with EVM assembly instructions (e.g., disassembling them).
Provides support for dealing with EVM assembly instructions (e.g., disassembling them).
bloombits
Package bloombits implements bloom filtering on batches of data.
Package bloombits implements bloom filtering on batches of data.
forkid
Package forkid implements EIP-2124 (https://eips.voc-core.org/EIPS/eip-2124).
Package forkid implements EIP-2124 (https://eips.voc-core.org/EIPS/eip-2124).
rawdb
Package rawdb contains a collection of low level database accessors.
Package rawdb contains a collection of low level database accessors.
state
Package state provides a caching layer atop the voc-core state trie.
Package state provides a caching layer atop the voc-core state trie.
types
Package types contains data types related to voc-core consensus.
Package types contains data types related to voc-core consensus.
vm
Package vm implements the voc-core Virtual Machine.
Package vm implements the voc-core Virtual Machine.
vm/runtime
Package runtime provides a basic execution model for executing EVM code.
Package runtime provides a basic execution model for executing EVM code.
ed25519
Package ed25519 implements the Ed25519 signature algorithm.
Package ed25519 implements the Ed25519 signature algorithm.
ed25519/chainkd
Package chainkd This is an extension to ed25519.Sign that is compatible with NaCl `crypto_sign` function taking 64-byte expanded private key (where the left part is a pre-multiplied scalar and the right part is "prefix" used for generating a nonce).
Package chainkd This is an extension to ed25519.Sign that is compatible with NaCl `crypto_sign` function taking 64-byte expanded private key (where the left part is a pre-multiplied scalar and the right part is "prefix" used for generating a nonce).
scrypt
import "golang.org/x/crypto/scrypt"
import "golang.org/x/crypto/scrypt"
sha3pool
Package sha3pool is a freelist for SHA3-256 hash objects.
Package sha3pool is a freelist for SHA3-256 hash objects.
storage
Package storage is a generated protocol buffer package.
Package storage is a generated protocol buffer package.
encoding
base32
Package base32 implements base32 encoding as specified by RFC 4648.
Package base32 implements base32 encoding as specified by RFC 4648.
blockchain
Package blockchain provides the tools for encoding data primitives in blockchain structures
Package blockchain provides the tools for encoding data primitives in blockchain structures
bufpool
Package bufpool is a freelist for bytes.Buffer objects.
Package bufpool is a freelist for bytes.Buffer objects.
Package env provides a convenient way to convert environment variables into Go data.
Package env provides a convenient way to convert environment variables into Go data.
compiler
Package equity provides a compiler for VOCCHAIN's Equity contract language.
Package equity provides a compiler for VOCCHAIN's Equity contract language.
Package errors implements a basic error wrapping pattern, so that errors can be annotated with additional information without losing the original error.
Package errors implements a basic error wrapping pattern, so that errors can be annotated with additional information without losing the original error.
Package event deals with subscriptions to real-time events.
Package event deals with subscriptions to real-time events.
math
checked
Package checked implements basic arithmetic operations with underflow and overflow checks.
Package checked implements basic arithmetic operations with underflow and overflow checks.
net
http/httperror
Package httperror defines the format for HTTP error responses from Chain services.
Package httperror defines the format for HTTP error responses from Chain services.
http/httpjson
Package httpjson creates HTTP handlers to map request and response formats onto Go function signatures.
Package httpjson creates HTTP handlers to map request and response formats onto Go function signatures.
http/reqid
Package reqid creates request IDs and stores them in Contexts.
Package reqid creates request IDs and stores them in Contexts.
http/static
Package static provides a handler for serving static assets from an in-memory map.
Package static provides a handler for serving static assets from an in-memory map.
les/flowcontrol
Package flowcontrol implements a client side flow control mechanism
Package flowcontrol implements a client side flow control mechanism
p2p
discover/dht
Package discv5 implements the RLPx v5 Topic Discovery Protocol.
Package discv5 implements the RLPx v5 Topic Discovery Protocol.
netutil
Package netutil contains extensions to the net package.
Package netutil contains extensions to the net package.
upnp
Taken from taipei-torrent Just enough UPnP to be able to forward ports
Taken from taipei-torrent Just enough UPnP to be able to forward ports
bc
Package bc is a generated protocol buffer package.
Package bc is a generated protocol buffer package.
vm
Package rlp implements the RLP serialization format.
Package rlp implements the RLP serialization format.
Package rpc implements bi-directional JSON-RPC 2.0 on multiple transports.
Package rpc implements bi-directional JSON-RPC 2.0 on multiple transports.
Package trie implements Merkle Patricia Tries.
Package trie implements Merkle Patricia Tries.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL