Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SignAndSerializeTransaction ¶
func SignAndSerializeTransaction(keyPair key.KeyPair, txn Transaction) (blob string, err error)
Types ¶
type SignedTransaction ¶
type SignedTransaction struct { Transaction Transaction Signature signature.Signature SerializedTransaction []byte `borsh_skip:"true"` // contains filtered or unexported fields }
func NewSignedTransaction ¶
func NewSignedTransaction(keyPair key.KeyPair, transaction Transaction) (stxn SignedTransaction, err error)
func (*SignedTransaction) Hash ¶
func (st *SignedTransaction) Hash() hash.CryptoHash
func (SignedTransaction) Serialize ¶
func (st SignedTransaction) Serialize() (serialized string, err error)
func (*SignedTransaction) Size ¶
func (st *SignedTransaction) Size() int
type Transaction ¶
type Transaction struct { SignerID types.AccountID PublicKey key.PublicKey Nonce types.Nonce ReceiverID types.AccountID BlockHash hash.CryptoHash Actions []action.Action }
func (Transaction) Hash ¶
func (t Transaction) Hash() (txnHash hash.CryptoHash, serialized []byte, err error)
func (Transaction) HashAndSign ¶
func (t Transaction) HashAndSign(keyPair key.KeyPair) (txnHash hash.CryptoHash, serialized []byte, sig signature.Signature, err error)
Click to show internal directories.
Click to hide internal directories.