barc

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainIDBAR = "8ac5756ab6f78c1ae92d9654072eecf7fc81b418a05073ad067095061067e3c9"
)
View Source
const (
	CurveType = owcrypt.ECC_CURVE_SECP256K1
)

Variables

View Source
var (
	//币种
	Symbol = "BAR"
)

Functions

func Decrypt

func Decrypt(msg, fromPub, toPub string, nonce uint64, wif string) (string, error)

Decrypt calculates a shared secret by the receivers private key and the senders public key, then decrypts the given memo message.

func NewAddressDecoder

func NewAddressDecoder(wm *WalletManager) *addressDecoder

NewAddressDecoder 地址解析器

func NewWebsocketAPI

func NewWebsocketAPI(api string) bts.WebsocketAPI

Types

type WalletConfig

type WalletConfig struct {

	//币种
	Symbol string

	//区块链数据文件
	BlockchainFile string

	//钱包服务API
	ServerAPI string
	//默认配置内容
	DefaultConfig string
	//曲线类型
	CurveType uint32
	//链ID
	ChainID string
	//数据目录
	DataDir string
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(symbol string) *WalletConfig

type WalletManager

type WalletManager struct {
	*bitshares.WalletManager
}

func NewWalletManager

func NewWalletManager() *WalletManager

func (*WalletManager) FullName

func (wm *WalletManager) FullName() string

FullName 币种全名

Jump to

Keyboard shortcuts

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