mobile

package
v0.0.0-...-ff93a16 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

README

gomobile bind -target=ios github.com/MixinNetwork/surfing/mobile

gomobile bind -o ./mixin.aar -target=android/arm,android/arm64 github.com/MixinNetwork/surfing/mobile

Documentation

Index

Constants

View Source
const MainNetworkId = "XIN"

Variables

This section is empty.

Functions

func CreateTransaction

func CreateTransaction(node string, rawStr string) (string, error)

create for sign transaction

func CreateTransactionWithAccount

func CreateTransactionWithAccount(node string, account common.Address, rawStr string) (string, error)

func CreateTransactionWithSignature

func CreateTransactionWithSignature(node string, txRaw string, sig string) (string, error)

func LocalGenerateAddress

func LocalGenerateAddress(publicSpend, publicView string) (string, error)

func MainnetAssetId

func MainnetAssetId(assetId string) string

func SentRawTransaction

func SentRawTransaction(node string, raw string) (string, error)

func Sign

func Sign(msg []byte, privateViewKey, privateSpendKey, mask *crypto.Key, index uint64) crypto.Signature

func SignTransaction

func SignTransaction(account common.Address, raw signerInput) (*common.SignedTransaction, error)

func SignTransactionRaw

func SignTransactionRaw(node string, account common.Address, rawStr string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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