Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RefBlockNum ¶
RefBlockNum function returns blockNumber
Types ¶
type SignedTransaction ¶
type SignedTransaction struct {
*operations.Transaction
}
SignedTransaction structure of a signed transaction
func NewSignedTransaction ¶
func NewSignedTransaction(tx *operations.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) error
Sign function directly generating transaction signature
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.