Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressableSigner ¶
type Block ¶
type Block struct { Id string `json:"blockId"` BlockHeader BlockHeader `json:"block_header"` Transactions []Transaction `json:"transactions"` }
type BlockHeader ¶
type BlockHeader struct { RawData struct { Number uint64 `json:"number"` TransactionTrieRoot string `json:"txTrieRoot"` WitnessAddress string `json:"witness_address"` ParentHash string `json:"parentHash"` Version uint64 `json:"version"` Timestamp uint64 `json:"timestamp"` } `json:"raw_data"` WitnessSignature string `json:"witness_signature"` }
type Signable ¶
type Signable interface {
Sign(key *ecdsa.PrivateKey) error
}
Signable is an interface for implementations of signable objects. Implementations may choose if it accepts one or many signatures.
type Signer ¶
Signer is an interface for implementations of objects that append signatures to signable objects.
type Transaction ¶
type Transaction struct { Id string `json:"txID"` Signatures []string `json:"signature"` Results *json.RawMessage `json:"ret"` ConstantResults *json.RawMessage `json:"constant_result"` Visible *json.RawMessage `json:"visible"` RawData *json.RawMessage `json:"raw_data"` RawDataHex *json.RawMessage `json:"raw_data_hex"` ContractAddress *json.RawMessage `json:"contract_address"` }
func (*Transaction) Sign ¶
func (tx *Transaction) Sign(key *ecdsa.PrivateKey) error
Directories ¶
Path | Synopsis |
---|---|
Package account provides functionality for managing Tron network accounts.
|
Package account provides functionality for managing Tron network accounts. |
Package address provides functionality for parsing and manipulating Tron addresses.
|
Package address provides functionality for parsing and manipulating Tron addresses. |
Package client provides functionality for interacting with the Tron node RESTful APIs.
|
Package client provides functionality for interacting with the Tron node RESTful APIs. |
cmd
|
|
Click to show internal directories.
Click to hide internal directories.