Documentation
¶
Index ¶
- Constants
- Variables
- type ValueTransaction
- func (this *ValueTransaction) GetAddress() (result trinary.Trytes)
- func (this *ValueTransaction) GetBundleEssence(includeSignatureMessageFragment bool) (result trinary.Trits)
- func (this *ValueTransaction) GetSignatureMessageFragment() (result trinary.Trytes)
- func (this *ValueTransaction) GetTimestamp() (result uint)
- func (this *ValueTransaction) GetValue() (result int64)
- func (this *ValueTransaction) SetAddress(address trinary.Trytes) bool
- func (this *ValueTransaction) SetSignatureMessageFragment(signatureMessageFragment trinary.Trytes) bool
- func (this *ValueTransaction) SetTimestamp(timestamp uint) bool
- func (this *ValueTransaction) SetValue(value int64) bool
Constants ¶
View Source
const ( ADDRESS_OFFSET = 0 VALUE_OFFSET = ADDRESS_END TIMESTAMP_OFFSET = VALUE_END SIGNATURE_MESSAGE_FRAGMENT_OFFSET = TIMESTAMP_END ADDRESS_SIZE = 243 VALUE_SIZE = 81 TIMESTAMP_SIZE = 27 SIGNATURE_MESSAGE_FRAGMENT_SIZE = 6561 BUNDLE_ESSENCE_SIZE = ADDRESS_SIZE + VALUE_SIZE + SIGNATURE_MESSAGE_FRAGMENT_SIZE ADDRESS_END = ADDRESS_OFFSET + ADDRESS_SIZE VALUE_END = VALUE_OFFSET + VALUE_SIZE TIMESTAMP_END = TIMESTAMP_OFFSET + TIMESTAMP_SIZE SIGNATURE_MESSAGE_FRAGMENT_END = SIGNATURE_MESSAGE_FRAGMENT_OFFSET + SIGNATURE_MESSAGE_FRAGMENT_SIZE TOTAL_SIZE = SIGNATURE_MESSAGE_FRAGMENT_END )
Variables ¶
View Source
var (
EMPTY_SIGNATURE = trinary.Trytes(strings.Repeat("9", SIGNATURE_MESSAGE_FRAGMENT_SIZE/3))
)
Functions ¶
This section is empty.
Types ¶
type ValueTransaction ¶
type ValueTransaction struct {
*meta_transaction.MetaTransaction
// contains filtered or unexported fields
}
func FromBytes ¶
func FromBytes(bytes []byte) (result *ValueTransaction)
func FromMetaTransaction ¶
func FromMetaTransaction(metaTransaction *meta_transaction.MetaTransaction) *ValueTransaction
func New ¶
func New() (result *ValueTransaction)
func (*ValueTransaction) GetAddress ¶
func (this *ValueTransaction) GetAddress() (result trinary.Trytes)
getter for the address (supports concurrency)
func (*ValueTransaction) GetBundleEssence ¶
func (this *ValueTransaction) GetBundleEssence(includeSignatureMessageFragment bool) (result trinary.Trits)
func (*ValueTransaction) GetSignatureMessageFragment ¶
func (this *ValueTransaction) GetSignatureMessageFragment() (result trinary.Trytes)
getter for the signatureMessageFragmetn (supports concurrency)
func (*ValueTransaction) GetTimestamp ¶
func (this *ValueTransaction) GetTimestamp() (result uint)
getter for the timestamp (supports concurrency)
func (*ValueTransaction) GetValue ¶
func (this *ValueTransaction) GetValue() (result int64)
getter for the value (supports concurrency)
func (*ValueTransaction) SetAddress ¶
func (this *ValueTransaction) SetAddress(address trinary.Trytes) bool
setter for the address (supports concurrency)
func (*ValueTransaction) SetSignatureMessageFragment ¶
func (this *ValueTransaction) SetSignatureMessageFragment(signatureMessageFragment trinary.Trytes) bool
setter for the nonce (supports concurrency)
func (*ValueTransaction) SetTimestamp ¶
func (this *ValueTransaction) SetTimestamp(timestamp uint) bool
setter for the timestamp (supports concurrency)
func (*ValueTransaction) SetValue ¶
func (this *ValueTransaction) SetValue(value int64) bool
setter for the value (supports concurrency)
Click to show internal directories.
Click to hide internal directories.