bmailLib

package
v0.0.0-...-8aee694 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockChainQueryUrl = "https://ropsten.infura.io/v3/d64d364124684359ace20feae1f9ac20"
	BMErrNone          = iota
	BMErrClientInvalid
	BMErrWalletInvalid
	BMErrNoSuchBas
	BMErrInvalidJson
	BMErrSendFailed
	BMErrReceiveFailed
	BMErrMarshFailed
)

Variables

This section is empty.

Functions

func Address

func Address() string

func BPop

func BPop(timeSince1970 int64, olderThanSince bool, pieceSize int, cb MailCallBack) []byte

func CName

func CName(mailName string) string

func CalculateHash

func CalculateHash(mailName string) string

func ChangeActiveWallet

func ChangeActiveWallet(jsonStr string) bool

func CloseClient

func CloseClient()

func CloseWallet

func CloseWallet()

func DecodeByPin

func DecodeByPin(data string, pinCode []byte) string

func DecodePin

func DecodePin(pinCipher []byte) []byte

func DecodePinByPeer

func DecodePinByPeer(pinCipher []byte, fromAddr string) []byte

func EncodeByPin

func EncodeByPin(data string, pinCode []byte) string

func EncodePin

func EncodePin(pinCode []byte) []byte

func InitSystem

func InitSystem(cb UICallBack, debug bool)

func LoadWallet

func LoadWallet(jsonStr string) bool

func LoadWalletByPath

func LoadWalletByPath(path string) string

func MailBcaByMailName

func MailBcaByMailName(mailName string) string

func MailID

func MailID() string

func MailIcon

func MailIcon(mailName string) []byte

func MailName

func MailName() string

func NewStampWallet

func NewStampWallet(auth string) string

func NewWallet

func NewWallet(auth string) string

func OpenWallet

func OpenWallet(auth string) bool

func PinCode

func PinCode() []byte

func SendMailJson

func SendMailJson(mailJson string, pinCode []byte, cb MailCallBack) bool

func SetMailName

func SetMailName(mailName string) string

func StampDetails

func StampDetails(stampAddr string) string

func WalletIsOpen

func WalletIsOpen() bool

func WalletJson

func WalletJson() string

Types

type MailCallBack

type MailCallBack interface {
	Process(typ int, msg string)
}

type UICallBack

type UICallBack interface {
	Notification(typ int, msg string)
	Error(typ int, msg string)
}

Jump to

Keyboard shortcuts

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