Documentation ¶
Index ¶
- type ID
- type Tx
- func FromBytes(bs []byte) (*Tx, error)
- func GenerateTestBondTx() (*Tx, crypto.Signer)
- func GenerateTestSendTx() (*Tx, crypto.Signer)
- func GenerateTestSortitionTx() (*Tx, crypto.Signer)
- func GenerateTestUnbondTx() (*Tx, crypto.Signer)
- func GenerateTestWithdrawTx() (*Tx, crypto.Signer)
- func NewBondTx(stamp hash.Stamp, seq int32, sender, receiver crypto.Address, ...) *Tx
- func NewLockTimeTx(lockTime uint32, seq int32, pld payload.Payload, fee int64, memo string) *Tx
- func NewSendTx(stamp hash.Stamp, seq int32, sender, receiver crypto.Address, ...) *Tx
- func NewSortitionTx(stamp hash.Stamp, seq int32, addr crypto.Address, proof sortition.Proof) *Tx
- func NewSubsidyTx(stamp hash.Stamp, seq int32, receiver crypto.Address, amount int64, ...) *Tx
- func NewTx(stamp hash.Stamp, seq int32, pld payload.Payload, fee int64, memo string) *Tx
- func NewUnbondTx(stamp hash.Stamp, seq int32, val crypto.Address, memo string) *Tx
- func NewWithdrawTx(stamp hash.Stamp, seq int32, val crypto.Address, acc crypto.Address, ...) *Tx
- func (tx *Tx) Bytes() ([]byte, error)
- func (tx *Tx) Decode(r io.Reader) error
- func (tx *Tx) DecodeWithNoSignatory(r io.Reader) error
- func (tx *Tx) Encode(w io.Writer) error
- func (tx *Tx) EncodeWithNoSignatory(w io.Writer) error
- func (tx *Tx) Fee() int64
- func (tx *Tx) Fingerprint() string
- func (tx *Tx) ID() ID
- func (tx *Tx) IsBondTx() bool
- func (tx *Tx) IsFreeTx() bool
- func (tx *Tx) IsLockTime() bool
- func (tx *Tx) IsSendTx() bool
- func (tx *Tx) IsSortitionTx() bool
- func (tx *Tx) IsStamped() bool
- func (tx *Tx) IsSubsidyTx() bool
- func (tx *Tx) IsUnbondTx() bool
- func (tx *Tx) IsWithdrawTx() bool
- func (tx *Tx) LockTime() uint32
- func (tx *Tx) MarshalCBOR() ([]byte, error)
- func (tx *Tx) Memo() string
- func (tx *Tx) Payload() payload.Payload
- func (tx *Tx) PublicKey() crypto.PublicKey
- func (tx *Tx) SanityCheck() error
- func (tx *Tx) Sequence() int32
- func (tx *Tx) SerializeSize() int
- func (tx *Tx) SetPublicKey(pub crypto.PublicKey)
- func (tx *Tx) SetSignature(sig crypto.Signature)
- func (tx *Tx) SignBytes() []byte
- func (tx *Tx) Signature() crypto.Signature
- func (tx *Tx) Stamp() hash.Stamp
- func (tx *Tx) UnmarshalCBOR(bs []byte) error
- func (tx *Tx) Version() uint8
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
func GenerateTestBondTx ¶
GenerateTestSendTx generates a bond transaction for testing.
func GenerateTestSendTx ¶
GenerateTestSendTx generates a send transaction for testing.
func GenerateTestSortitionTx ¶
GenerateTestSendTx generates a sortition transaction for testing.
func GenerateTestUnbondTx ¶
GenerateTestSendTx generates an unbond transaction for testing.
func GenerateTestWithdrawTx ¶
GenerateTestSendTx generates a withdraw transaction for testing.
func NewLockTimeTx ¶
func NewSortitionTx ¶
func NewSubsidyTx ¶
func NewUnbondTx ¶
func NewWithdrawTx ¶
func (*Tx) Fingerprint ¶
func (*Tx) IsLockTime ¶
func (*Tx) IsSortitionTx ¶
func (*Tx) IsSubsidyTx ¶
func (*Tx) IsUnbondTx ¶
func (*Tx) IsWithdrawTx ¶
func (*Tx) MarshalCBOR ¶
func (*Tx) SanityCheck ¶
func (*Tx) SerializeSize ¶
SerializeSize returns the number of bytes it would take to serialize the transaction.
func (*Tx) SetPublicKey ¶
func (*Tx) SetSignature ¶
func (*Tx) UnmarshalCBOR ¶
Click to show internal directories.
Click to hide internal directories.