Documentation ¶
Overview ¶
Copyright 2019 The Smilo-blackbox Authors This file is part of the Smilo-blackbox library.
The Smilo-blackbox library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The Smilo-blackbox library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the Smilo-blackbox library. If not, see <http://www.gnu.org/licenses/>.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetFilename ¶
func SetFilename(filename string)
Types ¶
type Encrypted_Transaction ¶
type Encrypted_Transaction struct { Hash []byte `storm:"id"` Encoded_Payload []byte Timestamp time.Time `storm:"index"` }
func CreateEncryptedTransaction ¶
func CreateEncryptedTransaction(hash []byte, encoded_payload []byte, timestamp time.Time) *Encrypted_Transaction
func FindEncryptedTransaction ¶
func FindEncryptedTransaction(hash []byte) (*Encrypted_Transaction, error)
func NewEncryptedTransaction ¶
func NewEncryptedTransaction(encoded_payload []byte) *Encrypted_Transaction
func (*Encrypted_Transaction) Delete ¶
func (et *Encrypted_Transaction) Delete() error
func (*Encrypted_Transaction) Save ¶
func (et *Encrypted_Transaction) Save() error