BlockChain

package
v0.0.0-...-3b9ec48 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeBlockChain

func MakeBlockChain()

Types

type Block

type Block struct {
	// contains filtered or unexported fields
}

type Blockchain

type Blockchain struct {
	// contains filtered or unexported fields
}

func CreateBlockchain

func CreateBlockchain(difficulty int) Blockchain

func (*Blockchain) AddBlock

func (b *Blockchain) AddBlock(Title string, Link string)

func (Blockchain) GetBlockchainData

func (b Blockchain) GetBlockchainData() []Jsondata

func (Blockchain) IsValid

func (b Blockchain) IsValid() bool

type Jsondata

type Jsondata struct {
	Title string `json:title`
	Link  string `json:link`
}

type Somerandstruct

type Somerandstruct struct {
	ID       string `json:"id"`
	Username string `json:"username"`
	Name     string `json:"name"`
	Score    int32  `json:"score"`
}

Jump to

Keyboard shortcuts

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