Documentation ¶
Index ¶
- func RecalculateHash(block Block) string
- type Block
- type BlockChain
- func (bc *BlockChain) AddBlock(bl Block) Block
- func (bc *BlockChain) GetBlockByHash(hash string) (Block, error)
- func (bc *BlockChain) GetBlockByHeight(height int64) (*Block, error)
- func (bc *BlockChain) GetStarByWalletAddress(address string) []string
- func (bc *BlockChain) InitializeChain()
- func (bc *BlockChain) RequestMessageOwnershipVerification(address string) string
- func (bc *BlockChain) SubmitStar(address string, message string, signature string, star string) (*Block, error)
- type Payload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecalculateHash ¶
Types ¶
type BlockChain ¶
func (*BlockChain) AddBlock ¶
func (bc *BlockChain) AddBlock(bl Block) Block
func (*BlockChain) GetBlockByHash ¶
func (bc *BlockChain) GetBlockByHash(hash string) (Block, error)
func (*BlockChain) GetBlockByHeight ¶
func (bc *BlockChain) GetBlockByHeight(height int64) (*Block, error)
func (*BlockChain) GetStarByWalletAddress ¶
func (bc *BlockChain) GetStarByWalletAddress(address string) []string
func (*BlockChain) InitializeChain ¶
func (bc *BlockChain) InitializeChain()
func (*BlockChain) RequestMessageOwnershipVerification ¶
func (bc *BlockChain) RequestMessageOwnershipVerification(address string) string
func (*BlockChain) SubmitStar ¶
Click to show internal directories.
Click to hide internal directories.