networks

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NetworkParams map[string]Params
View Source
var Networks []Network
View Source
var NetworksMap map[string]Network
View Source
var NetworksSymbols map[string]Network

Functions

func DisplayAll

func DisplayAll()

Types

type Bip32

type Bip32 struct {
	Public  int64 `json:"public"`
	Private int64 `json:"private"`
}

type Network

type Network struct {
	Name    string `json:"name"`
	Symbol  string `json:"symbol"`
	Network string `json:"network"`
	HdCoin  int64  `json:"hdCoin"`

	Params Params `json:"_"`
}

func New

func New(name string) (nw Network, err error)

func (*Network) Bip44Path

func (n *Network) Bip44Path() string

func (*Network) Bip49Path

func (n *Network) Bip49Path() string

func (*Network) Bip84Path

func (n *Network) Bip84Path() string

func (*Network) IsBitcoinCash

func (n *Network) IsBitcoinCash() bool

func (*Network) IsELA

func (n *Network) IsELA() bool

func (*Network) IsEthereum

func (n *Network) IsEthereum() bool

func (*Network) IsGRS

func (n *Network) IsGRS() bool

func (*Network) IsNano

func (n *Network) IsNano() bool

func (*Network) IsRsk

func (n *Network) IsRsk() bool

func (*Network) IsStellar

func (n *Network) IsStellar() bool

type Params

type Params struct {
	BaseNetwork   string `json:"baseNetwork"`
	MessagePrefix string `json:"messagePrefix"`
	Bip32         Bip32  `json:"bip32"`
	PubKeyHash    int64  `json:"pubKeyHash"`
	ScriptHash    int64  `json:"scriptHash"`
	Wif           int64  `json:"wif"`
	Bech32        string `json:"bech32"`

	P2wpkh       *Params `json:"p2wpkh,omitempty"`
	P2wpkhInP2sh *Params `json:"p2wpkhInP2sh,omitempty"`
	P2wsh        *Params `json:"p2wsh,omitempty"`
	P2wshInP2sh  *Params `json:"p2wshInP2sh,omitempty"`
}

Jump to

Keyboard shortcuts

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