mobile

package
v0.0.0-...-7ede18c Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidParam  = `{"status": -400, "resp": {}}`
	InternalError = `{"status": -500, "resp": {}}`
	NullResp      = `{"status": 0, "resp": {}}`
)

Variables

View Source
var DelegateNode []types.Peer

Functions

func BuildTransaction

func BuildTransaction(to, tokenAddr, data, privateKey, amt string, accuracy, nonce, fee int64) string

func Call

func Call(arg string) string

func CreateKeyStore

func CreateKeyStore(key, auth string) string

func DecryptKeystore

func DecryptKeystore(keystore, auth string) string

func PrivateKey2Address

func PrivateKey2Address(private string) string

func PubKey2Address

func PubKey2Address(pub string) string

func Sha3_256

func Sha3_256(data string) string

func SignMsg

func SignMsg(data, privKey string) string

Types

type EncryptPrivateKey

type EncryptPrivateKey struct {
	Version     int    `json:"version"`
	EncryptData string `json:"encryptData"`
}

type GoMobileParam

type GoMobileParam struct {
	Method string                 `json:"method"`
	Param  map[string]interface{} `json:"param"`
}

type GoMobileResp

type GoMobileResp struct {
	Status int                    `json:"status"`
	Resp   map[string]interface{} `json:"resp"`
}

type KeyStore

type KeyStore struct {
	Address    string            `json:"address"`
	PrivateKey EncryptPrivateKey `json:"privateKey"`
}

Jump to

Keyboard shortcuts

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