Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EncryptedRawTransaction ¶ added in v1.0.2
type EncryptedRawTransaction struct { Hash []byte `storm:"id"` EncodedPayload []byte Sender []byte Timestamp time.Time `storm:"index"` }
EncryptedRawTransaction holds hash and payload
func FindEncryptedRawTransaction ¶ added in v1.0.2
func FindEncryptedRawTransaction(hash []byte) (*EncryptedRawTransaction, error)
FindEncryptedRawTransaction will find a encrypted transaction for a hash
func NewEncryptedRawTransaction ¶ added in v1.0.2
func NewEncryptedRawTransaction(encodedPayload []byte, sender []byte) *EncryptedRawTransaction
NewEncryptedRawTransaction will create a new encrypted transaction based on the provided payload
func (*EncryptedRawTransaction) Delete ¶ added in v1.0.2
func (et *EncryptedRawTransaction) Delete() error
Delete delete it on the db
func (*EncryptedRawTransaction) Save ¶ added in v1.0.2
func (et *EncryptedRawTransaction) Save() error
Save saves into db
type EncryptedTransaction ¶ added in v1.0.2
type EncryptedTransaction struct { Hash []byte `storm:"id"` EncodedPayload []byte Timestamp time.Time `storm:"index"` }
EncryptedTransaction holds hash and payload
func CreateEncryptedTransaction ¶
func CreateEncryptedTransaction(hash []byte, encodedPayload []byte, timestamp time.Time) *EncryptedTransaction
CreateEncryptedTransaction will encrypt the transaction
func FindEncryptedTransaction ¶
func FindEncryptedTransaction(hash []byte) (*EncryptedTransaction, error)
FindEncryptedTransaction will find a encrypted transaction for a hash
func NewEncryptedTransaction ¶
func NewEncryptedTransaction(encodedPayload []byte) *EncryptedTransaction
NewEncryptedTransaction will create a new encrypted transaction based on the provided payload
func (*EncryptedTransaction) Delete ¶ added in v1.0.2
func (et *EncryptedTransaction) Delete() error
Delete delete it on the db
func (*EncryptedTransaction) Save ¶ added in v1.0.2
func (et *EncryptedTransaction) Save() error
Save saves into db
Click to show internal directories.
Click to hide internal directories.