Documentation ¶
Index ¶
- func RefBlockNum(blockNumber uint32) types.UInt16
- func RefBlockPrefix(blockID string) (types.UInt32, error)
- type SignedTransaction
- func (tx *SignedTransaction) Digest(chain string) ([]byte, error)
- func (tx *SignedTransaction) Serialize() ([]byte, error)
- func (tx *SignedTransaction) Sign(privKeys [][]byte, chain string) (string, error)
- func (tx *SignedTransaction) SignMulti(privKeys [][]byte, chain string) ([]string, error)
- func (tx *SignedTransaction) SignSingle(privB, data []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RefBlockNum ¶
RefBlockNum function returns blockNumber
Types ¶
type SignedTransaction ¶
type SignedTransaction struct {
*types.Transaction
}
SignedTransaction structure of a signed transaction
func NewSignedTransaction ¶
func NewSignedTransaction(tx *types.Transaction) *SignedTransaction
NewSignedTransaction initialization of a new signed transaction
func (*SignedTransaction) Digest ¶
func (tx *SignedTransaction) Digest(chain string) ([]byte, error)
Digest function that returns a digest from a serialized transaction
func (*SignedTransaction) Serialize ¶
func (tx *SignedTransaction) Serialize() ([]byte, error)
Serialize function serializes a transaction
func (*SignedTransaction) Sign ¶
func (tx *SignedTransaction) Sign(privKeys [][]byte, chain string) (string, error)
Sign function directly generating transaction signature, return transactionId
func (*SignedTransaction) SignMulti ¶
func (tx *SignedTransaction) SignMulti(privKeys [][]byte, chain string) ([]string, error)
func (*SignedTransaction) SignSingle ¶
func (tx *SignedTransaction) SignSingle(privB, data []byte) ([]byte, error)
SignSingle signature of the transaction by one of the keys
Click to show internal directories.
Click to hide internal directories.