Documentation
¶
Index ¶
Constants ¶
const ( // SignModeUnspecified specifies an unknown signing mode and will be // rejected SignModeUnspecified SignMode = 0 // SignModeDirect specifies a signing mode which uses SignDoc and is // verified with raw bytes from Tx SignModeDirect SignMode = 1 // SignModeTexture is a future signing mode that will verify some // human-readable textual representation on top of the binary representation // from SIGN_MODE_DIRECT SignModeTexture SignMode = 2 // SignModeLegacyAminoJSON is a backwards compatibility mode which uses // Amino JSON and will be removed in the future SignModeLegacyAminoJSON SignMode = 127 // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32PrefixAccAddr = "terra" // Bech32PrefixAccPub defines the Bech32 prefix of an account's public key Bech32PrefixAccPub = "terrapub" // Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address Bech32PrefixValAddr = "terravaloper" // Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key Bech32PrefixValPub = "terravaloperpub" // Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address Bech32PrefixConsAddr = "terravalcons" // Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key Bech32PrefixConsPub = "terravalconspub" // CoinType defines LUNA bip44 coin type CoinType = uint32(330) // FullFundraiserPath defines full fundraiser path for LUNA coin type FullFundraiserPath = "44'/330'/0'/0/0" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Builder ¶
Builder to create transaction for broadcasting
func NewTxBuilder ¶
NewTxBuilder - create TxBuilder
func (Builder) GetTxBytes ¶
GetTxBytes return tx bytes for broadcast
type SignatureV2 ¶
type SignatureV2 = signing.SignatureV2
SignatureV2 is a convenience type that is easier to use in application logic than the protobuf SignerInfo's and raw signature bytes. It goes beyond the first sdk.Signature types by supporting sign modes and explicitly nested multi-signatures. It is intended to be used for both building and verifying signatures.
type SignerData ¶
type SignerData = authsigning.SignerData
SignerData is the specific information needed to sign a transaction that generally isn't included in the transaction body itself
type Tx ¶
type Tx = authsigning.Tx
Tx defines a transaction interface that supports all standard message, signature fee, memo, and auxiliary interfaces.