Documentation ¶
Overview ¶
---------------------------------------------------------------------------------------------
- Copyright (c) IBAX. All rights reserved.
- See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
- Copyright (c) IBAX. All rights reserved.
- See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
- Copyright (c) IBAX. All rights reserved.
- See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------
Index ¶
- Constants
- func ConvertMap(in any) any
- type Header
- type Link
- type Map
- type Notifications
- type SmartTransaction
- func (t SmartTransaction) Hash() ([]byte, error)
- func (s *SmartTransaction) Marshal() ([]byte, error)
- func (s *SmartTransaction) TxType() byte
- func (s *SmartTransaction) Unmarshal(buffer []byte) error
- func (txSmart *SmartTransaction) Validate() error
- func (s *SmartTransaction) WithPrivate(privateKey []byte, internal bool) error
- type TransferSelf
- type UTXO
Constants ¶
const ( FirstBlockTxType = iota + 1 StopNetworkTxType SmartContractTxType DelayTxType UtxoTxType TransferSelfTxType )
Transaction types.
Variables ¶
This section is empty.
Functions ¶
func ConvertMap ¶
Types ¶
type Header ¶
type Header struct { ID int EcosystemID int64 KeyID int64 Time int64 NetworkID int64 PublicKey []byte }
Header is contain header data
type Link ¶
type Link struct {
// contains filtered or unexported fields
}
Link represents a node of doubly linked list
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map holds the elements in go's native map, also maintains the head and tail link to keep the elements in insertion order
func (*Map) Get ¶
Get searches the element in the map by key and returns its value or nil if key doesn't exists. Second return parameter is true if key was found, otherwise false.
func (*Map) MarshalJSON ¶
type Notifications ¶
type SmartTransaction ¶
type SmartTransaction struct { *Header MaxSum string PayOver string Lang string Expedite string SignedBy int64 TransferSelf *TransferSelf UTXO *UTXO Params map[string]any }
SmartTransaction is storing smart contract data
func (SmartTransaction) Hash ¶
func (t SmartTransaction) Hash() ([]byte, error)
func (*SmartTransaction) Marshal ¶
func (s *SmartTransaction) Marshal() ([]byte, error)
func (*SmartTransaction) TxType ¶
func (s *SmartTransaction) TxType() byte
func (*SmartTransaction) Unmarshal ¶
func (s *SmartTransaction) Unmarshal(buffer []byte) error
func (*SmartTransaction) Validate ¶
func (txSmart *SmartTransaction) Validate() error
func (*SmartTransaction) WithPrivate ¶
func (s *SmartTransaction) WithPrivate(privateKey []byte, internal bool) error