Documentation ¶
Index ¶
- Variables
- func Bech32Decode(address string) ([]byte, error)
- func Bech32Encode(prefix, alphabet string, payload []byte) string
- func SignTransactionHash(txHash string, prikey []byte) (string, error)
- func VerifyTransactionSig(emptyTrans, signature string, pubkey []byte) bool
- type Coin
- type Coins
- type FeeStruct
- type Int
- type Message
- type MsgSend
- type Pub
- type Sig
- type Tx
- type TxSend
- type TxStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorInvalidAddress = errors.New("Invalid address!") ATOMBech32Alphabet = "qpzry9x8gf2tvdw0s3jn54khce6mua7l" CHARSET_REV = []int8{}/* 128 elements not displayed */ )
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 Bech32Decode ¶
func Bech32Encode ¶
func VerifyTransactionSig ¶
Types ¶
type Message ¶
func NewMessage ¶
type MsgSend ¶
type MsgSend struct { Amount Coins `json:"amount"` FromAddress string `json:"from_address"` ToAddress string `json:"to_address"` }
func NewMsgSend ¶
type Sig ¶
type Tx ¶
type TxStruct ¶
type TxStruct struct { AccountNumber string `json:"account_number"` ChainID string `json:"chain_id"` Fee FeeStruct `json:"fee"` Memo string `json:"memo"` Message []Message `json:"msgs"` Sequence string `json:"sequence"` }
func NewTxStruct ¶
func (TxStruct) CreateEmptyTransactionAndHash ¶
Click to show internal directories.
Click to hide internal directories.