Documentation ¶
Index ¶
- Constants
- func HashToShortHash(hash common.Uint256, salt []byte, size uint32) []byte
- func NewCoinbase(sender, recipient common.Uint160, amount common.Fixed64) *pb.Coinbase
- func NewDeleteName(registrant []byte, name string) *pb.DeleteName
- func NewGenerateID(publicKey []byte, regFee common.Fixed64) *pb.GenerateID
- func NewIssueAsset(sender common.Uint160, name, symbol string, precision uint32, ...) *pb.IssueAsset
- func NewMsgTx(payload *pb.Payload, nonce uint64, fee common.Fixed64, attrs []byte) *pb.Transaction
- func NewNanoPay(sender, recipient common.Uint160, id uint64, amount common.Fixed64, ...) *pb.NanoPay
- func NewRegisterName(registrant []byte, name string, fee int64) *pb.RegisterName
- func NewSigChainTxn(sigChain []byte, submitter common.Uint160) *pb.SigChainTxn
- func NewSubscribe(subscriber []byte, id, topic string, duration uint32, meta string) *pb.Subscribe
- func NewTransferAsset(sender, recipient common.Uint160, amount common.Fixed64) *pb.TransferAsset
- func NewTransferName(registrant []byte, receipt []byte, name string) *pb.TransferName
- func NewUnsubscribe(subscriber []byte, id, topic string) *pb.Unsubscribe
- func Pack(plType pb.PayloadType, payload proto.Message) (*pb.Payload, error)
- func Unpack(payload *pb.Payload) (proto.Message, error)
- type Transaction
- func NewDeleteNameTransaction(registrant []byte, name string, nonce uint64, fee common.Fixed64) (*Transaction, error)
- func NewGenerateIDTransaction(publicKey []byte, regFee common.Fixed64, nonce uint64, fee common.Fixed64, ...) (*Transaction, error)
- func NewIssueAssetTransaction(sender common.Uint160, name, symbol string, totalSupply common.Fixed64, ...) (*Transaction, error)
- func NewNanoPayTransaction(sender, recipient common.Uint160, id uint64, amount common.Fixed64, ...) (*Transaction, error)
- func NewRegisterNameTransaction(registrant []byte, name string, nonce uint64, regFee common.Fixed64, ...) (*Transaction, error)
- func NewSigChainTransaction(sigChain []byte, submitter common.Uint160, nonce uint64) (*Transaction, error)
- func NewSubscribeTransaction(subscriber []byte, identifier string, topic string, duration uint32, ...) (*Transaction, error)
- func NewTransferAssetTransaction(sender, recipient common.Uint160, nonce uint64, value, fee common.Fixed64) (*Transaction, error)
- func NewTransferNameTransaction(registrant []byte, to []byte, name string, nonce uint64, fee common.Fixed64) (*Transaction, error)
- func NewUnsubscribeTransaction(subscriber []byte, identifier string, topic string, nonce uint64, ...) (*Transaction, error)
- func (tx *Transaction) DeserializeUnsigned(r io.Reader) error
- func (tx *Transaction) GetInfo() ([]byte, error)
- func (tx *Transaction) GetMessage() []byte
- func (tx *Transaction) GetProgramHashes() ([]common.Uint160, error)
- func (tx *Transaction) GetPrograms() []*pb.Program
- func (tx *Transaction) GetSize() uint32
- func (tx *Transaction) Hash() common.Uint256
- func (tx *Transaction) Marshal() (buf []byte, err error)
- func (tx *Transaction) SerializeUnsigned(w io.Writer) error
- func (tx *Transaction) SetHash(hash common.Uint256)
- func (tx *Transaction) SetPrograms(programs []*pb.Program)
- func (tx *Transaction) ShortHash(salt []byte, size uint32) []byte
- func (tx *Transaction) Unmarshal(buf []byte) error
- func (txn *Transaction) VerifySignature() error
Constants ¶
View Source
const (
TransactionNonceLength = 32
)
Variables ¶
This section is empty.
Functions ¶
func NewCoinbase ¶
func NewDeleteName ¶
func NewDeleteName(registrant []byte, name string) *pb.DeleteName
func NewGenerateID ¶
func NewGenerateID(publicKey []byte, regFee common.Fixed64) *pb.GenerateID
func NewIssueAsset ¶
func NewNanoPay ¶
func NewRegisterName ¶
func NewRegisterName(registrant []byte, name string, fee int64) *pb.RegisterName
func NewSigChainTxn ¶
func NewSigChainTxn(sigChain []byte, submitter common.Uint160) *pb.SigChainTxn
func NewSubscribe ¶
func NewTransferAsset ¶
func NewTransferName ¶
func NewTransferName(registrant []byte, receipt []byte, name string) *pb.TransferName
func NewUnsubscribe ¶
func NewUnsubscribe(subscriber []byte, id, topic string) *pb.Unsubscribe
Types ¶
type Transaction ¶
type Transaction struct { *pb.Transaction // contains filtered or unexported fields }
func NewNanoPayTransaction ¶
func NewSigChainTransaction ¶
func NewSubscribeTransaction ¶
func (*Transaction) DeserializeUnsigned ¶
func (tx *Transaction) DeserializeUnsigned(r io.Reader) error
func (*Transaction) GetInfo ¶
func (tx *Transaction) GetInfo() ([]byte, error)
func (*Transaction) GetMessage ¶
func (tx *Transaction) GetMessage() []byte
func (*Transaction) GetProgramHashes ¶
func (tx *Transaction) GetProgramHashes() ([]common.Uint160, error)
func (*Transaction) GetPrograms ¶
func (tx *Transaction) GetPrograms() []*pb.Program
func (*Transaction) GetSize ¶
func (tx *Transaction) GetSize() uint32
func (*Transaction) Hash ¶
func (tx *Transaction) Hash() common.Uint256
func (*Transaction) Marshal ¶
func (tx *Transaction) Marshal() (buf []byte, err error)
func (*Transaction) SerializeUnsigned ¶
func (tx *Transaction) SerializeUnsigned(w io.Writer) error
Serialize the Transaction data without contracts
func (*Transaction) SetHash ¶
func (tx *Transaction) SetHash(hash common.Uint256)
func (*Transaction) SetPrograms ¶
func (tx *Transaction) SetPrograms(programs []*pb.Program)
func (*Transaction) Unmarshal ¶
func (tx *Transaction) Unmarshal(buf []byte) error
func (*Transaction) VerifySignature ¶
func (txn *Transaction) VerifySignature() error
Click to show internal directories.
Click to hide internal directories.