mobile

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash256

func Hash256(data []byte) []byte

func SignData

func SignData(priv []byte, message []byte) []byte

func VerifySignature

func VerifySignature(pub, message, signData []byte) (bool, error)

Types

type Address

type Address struct {
	// contains filtered or unexported fields
}

func NewAddressFromByte

func NewAddressFromByte(binary []byte) (address *Address, _ error)

func NewAddressFromString

func NewAddressFromString(s string) (address *Address, _ error)

func PubkeyToAddress

func PubkeyToAddress(pub []byte) *Address

func (*Address) GetBytes

func (a *Address) GetBytes() []byte

func (*Address) GetHex

func (a *Address) GetHex() string

func (*Address) SetBytes

func (a *Address) SetBytes(address []byte) error

func (*Address) SetHex

func (a *Address) SetHex(s string) error

type Client

type Client struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(rawurl string) (*Client, error)

func DialContext

func DialContext(ctx context.Context, rawurl string) (*Client, error)

func NewClient

func NewClient(c *rpc.Client) *Client

func (*Client) Close

func (vc *Client) Close()

type Ed25519KeyPair

type Ed25519KeyPair struct {
	PublicKey  []byte
	PrivateKey []byte
}

func GenerateEd25519KeyPair

func GenerateEd25519KeyPair(seed []byte) (p *Ed25519KeyPair, _ error)

Jump to

Keyboard shortcuts

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