Documentation
¶
Index ¶
- func AddressToBounce(s string) (string, error)
- func AddressToNoBounce(s string) (string, error)
- func AddressToRaw(s string) (string, error)
- func NewAccountFromMnemonic(mnemonic, path string) (signing.AccountHandler, error)
- func NewAccountFromPrivateKey(privateKey []byte) (signing.AccountHandler, error)
- func NewAccountFromPrivateKeyHex(privateKey string) (signing.AccountHandler, error)
- func PublicKey2Address(publicKey []byte) (string, error)
- func RawToAddress(raw string) (string, error)
- func ValidAddress(address string) bool
- type Account
- func (a *Account) Address() string
- func (a *Account) PrivateKey() []byte
- func (a *Account) PrivateKeyHex() string
- func (a *Account) PublicKey() []byte
- func (a *Account) PublicKeyHex() string
- func (a *Account) SignData(data []byte) ([]byte, error)
- func (a *Account) VerifySignData(data, sig []byte) bool
- func (a *Account) Wipe()
- type Ingredient
- type TxBuilder
- func (tx *TxBuilder) Build() error
- func (tx *TxBuilder) ConcatSignature(signature string, isDerFormat bool) (string, error)
- func (tx *TxBuilder) GetSigHash() []string
- func (tx *TxBuilder) GetTxHash() string
- func (tx *TxBuilder) GetUnsignedHex() string
- func (tx *TxBuilder) SetSigHash(sigHash []string)
- func (tx *TxBuilder) SetUnsignedHex(unsignedHex string)
- func (tx *TxBuilder) Sign(privateKey []byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressToBounce ¶
func AddressToNoBounce ¶
func AddressToRaw ¶
func NewAccountFromMnemonic ¶
func NewAccountFromMnemonic(mnemonic, path string) (signing.AccountHandler, error)
func NewAccountFromPrivateKey ¶
func NewAccountFromPrivateKey(privateKey []byte) (signing.AccountHandler, error)
func NewAccountFromPrivateKeyHex ¶
func NewAccountFromPrivateKeyHex(privateKey string) (signing.AccountHandler, error)
func PublicKey2Address ¶
func RawToAddress ¶
func ValidAddress ¶
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func (*Account) PrivateKey ¶
func (*Account) PrivateKeyHex ¶
func (*Account) PublicKeyHex ¶
func (*Account) VerifySignData ¶
type Ingredient ¶
type Ingredient struct {
TxType string `json:"txType"`
ContractAddress string `json:"contractAddress"`
Sender string `json:"sender"`
SenderPublicKey string `json:"senderPublicKey"`
Recipient string `json:"recipient"`
JettonWallet string `json:"jettonWallet,omitempty"`
Amount string `json:"amount"`
Nonce string `json:"nonce,omitempty"`
Memo string `json:"memo,omitempty"`
Fee string `json:"fee"`
}
type TxBuilder ¶
type TxBuilder struct {
*Ingredient
// contains filtered or unexported fields
}
func NewTxBuilder ¶
func NewTxBuilder(ti *Ingredient) *TxBuilder
func (*TxBuilder) ConcatSignature ¶
func (*TxBuilder) GetSigHash ¶
func (*TxBuilder) GetUnsignedHex ¶
func (*TxBuilder) SetSigHash ¶
func (*TxBuilder) SetUnsignedHex ¶
Click to show internal directories.
Click to hide internal directories.