Documentation ¶
Index ¶
- func BlockConsumer(node *dst.Node, neighboors *dst.Neighboors, _mapNodeId map[string]uint32)
- func BlockPublisher(_blockToPublish dst.Block, _node *dst.Node)
- func BoostrapInformationConsumer(neighboors *dst.Neighboors, loop chan *dst.Neighboors, ...)
- func BootStrapBlockInitialize(node *dst.Node, wallet Wallet)
- func BootstrapInitTransactionAndBlockChain(loop chan *dst.Neighboors, node *dst.Node, wallet Wallet)
- func LogError(err error, msg string)
- func MineBlock(seed *string, neighboors *dst.Neighboors) string
- func NodeHttpService(node *dst.Node, neighboors *dst.Neighboors, wallet *Wallet)
- func NodeInformationConsumer(neighboors *dst.Neighboors, node *dst.Node, _mapNodeId map[string]uint32)
- func NodeInformationPublisher(node *dst.Node)
- func TransactionConsumer(node *dst.Node, neighboors *dst.Neighboors, wallet Wallet, ...)
- func ValidateTransaction(t *dst.Transaction, neighboors *dst.Neighboors, node *dst.Node, ...) bool
- type UnsignedTransaction
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockConsumer ¶
func BoostrapInformationConsumer ¶
func BoostrapInformationConsumer(neighboors *dst.Neighboors, loop chan *dst.Neighboors, _mapNodeId map[string]uint32)
func BootStrapBlockInitialize ¶
Creates the genesis block, updates bootstrap nodes balance and adds genesis block to the blockchain.
func BootstrapInitTransactionAndBlockChain ¶
func BootstrapInitTransactionAndBlockChain(loop chan *dst.Neighboors, node *dst.Node, wallet Wallet)
func NodeHttpService ¶
func NodeHttpService(node *dst.Node, neighboors *dst.Neighboors, wallet *Wallet)
func NodeInformationConsumer ¶
func TransactionConsumer ¶
func ValidateTransaction ¶
func ValidateTransaction(t *dst.Transaction, neighboors *dst.Neighboors, node *dst.Node, _mapNodeId map[string]uint32) bool
Types ¶
type UnsignedTransaction ¶
type Wallet ¶
type Wallet struct { PublicKey *rsa.PublicKey PrivateKey *rsa.PrivateKey }
func GenerateWallet ¶
func GenerateWallet() (wallet Wallet)
Creates a new wallet, a pair of public/private key.
func (Wallet) PrivateKeyToString ¶
func (Wallet) PublicKeyToString ¶
func (Wallet) SignTransaction ¶
func (_w Wallet) SignTransaction(_t UnsignedTransaction) (transactionID string, signature []byte)
Click to show internal directories.
Click to hide internal directories.