Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NetStrToId = map[string]uint32{
"LivePublic": 175,
"TestNet": 199,
"Local": 0,
}
View Source
var Networks = map[uint32]string{
175: "LivePublic",
177: "LivePrivate",
199: "Testnet",
0: "Local",
999: "SubLayer",
9999: "Fork",
}
View Source
var Version version.SemVer
Functions ¶
func NetworkIdResolver ¶
Types ¶
type Chain ¶
type Chain interface { Name() string Genesis() GenesisBlock Params() map[string]any BootNodes() []string }
type ChainGetter ¶
type ChainGetter interface { Import(chain string) (pb.Blockchain, error) ImportFromChainId(chainId string) (pb.Blockchain, error) ImportFromFilePath(filepath string) (pb.Blockchain, error) ImportFromDatabase(db *badger.DB) (pb.Blockchain, error) }
type ChainImporter ¶
type ChainImporter struct {
ChainGetter
}
type DNAProofing ¶
type DNAProofing interface {
GetOperator() *pod.DnaOperator
}
type EncodingUtils ¶
type GenesisBlock ¶
type Uint256Util ¶
type Wallet ¶
type Wallet interface { Address() *Address Lock() bool Unlock(key []byte) bool Backup() (string, error) Restore(backupKey []byte, address string, mnemonic string) (bool, error) Withdraw() SendTX(from Address, to Address, amt uint256.Int) (txId string, success bool, err error) Synchronize() Balance() *uint256.Int }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.