binancechainTransaction

package
v1.1.22 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bech32Prefix = "bnb"
	ChainID      = "Binance-Chain-Tigris"
)

Variables

View Source
var (
	CurveOrder     = []byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xBA, 0xAE, 0xDC, 0xE6, 0xAF, 0x48, 0xA0, 0x3B, 0xBF, 0xD2, 0x5E, 0x8C, 0xD0, 0x36, 0x41, 0x41}
	HalfCurveOrder = []byte{0x7F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x5D, 0x57, 0x6E, 0x73, 0x57, 0xA4, 0x50, 0x1D, 0xDF, 0xE9, 0x2F, 0x46, 0x68, 0x1B, 0x20, 0xA0}
)

Functions

func CreateEmptyTransactionAndHash

func CreateEmptyTransactionAndHash(from, to, denom string, amount, accountNumber, sequence, source int64, memo string) (string, string, error)

func CreateSendMsg

func CreateSendMsg(fromAddress, toAddress, denom string, amount int64) (*msg.SendMsg, error)

func DecodeRawTransaction

func DecodeRawTransaction(trx []byte) (*tx.StdTx, error)

func NewPubkey

func NewPubkey(pubkey []byte) crypto.PubKey

func SignRawTransaction

func SignRawTransaction(hash string, prikey []byte) ([]byte, error)

func VerifyAndCombineRawTransaction

func VerifyAndCombineRawTransaction(emptyTrans, signature, pubkey string) (bool, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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