Documentation ¶
Index ¶
- Variables
- func ExportAllEntryReceipts(dbo interfaces.DBOverlay) error
- func ExportEntryReceipt(entryID string, dbo interfaces.DBOverlaySimple) error
- func FileNotExists(name string) bool
- func Save(receipt *Receipt) error
- func VerifyFullReceipt(dbo interfaces.DBOverlaySimple, receiptStr string) error
- func VerifyMinimalReceipt(dbo interfaces.DBOverlaySimple, receiptStr string) error
- type EntryJSON
- type Receipt
- func CreateFullReceipt(dbo interfaces.DBOverlaySimple, entryHash interfaces.IHash, ...) (*Receipt, error)
- func CreateMinimalReceipt(dbo interfaces.DBOverlaySimple, entryID interfaces.IHash) (*Receipt, error)
- func CreateReceipt(dbo interfaces.DBOverlaySimple, entryHash interfaces.IHash, ...) (*Receipt, error)
- func DecodeReceiptString(str string) (*Receipt, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DataStorePath string = "./receipts"
Functions ¶
func ExportAllEntryReceipts ¶
func ExportAllEntryReceipts(dbo interfaces.DBOverlay) error
func ExportEntryReceipt ¶
func ExportEntryReceipt(entryID string, dbo interfaces.DBOverlaySimple) error
func FileNotExists ¶
func VerifyFullReceipt ¶
func VerifyFullReceipt(dbo interfaces.DBOverlaySimple, receiptStr string) error
func VerifyMinimalReceipt ¶
func VerifyMinimalReceipt(dbo interfaces.DBOverlaySimple, receiptStr string) error
Types ¶
type EntryJSON ¶
type EntryJSON struct { Raw string `json:"raw,omitempty"` EntryHash string `json:"entryhash,omitempty"` Timestamp int64 `json:"timestamp,omitempty"` }
func (*EntryJSON) JSONString ¶
type Receipt ¶
type Receipt struct { Entry *EntryJSON `json:"entry,omitempty"` MerkleBranch []*primitives.MerkleNode `json:"merklebranch,omitempty"` EntryBlockKeyMR *primitives.Hash `json:"entryblockkeymr,omitempty"` DirectoryBlockKeyMR *primitives.Hash `json:"directoryblockkeymr,omitempty"` DirectoryBlockHeight uint32 `json:"directoryblockheight,omitempty"` }
func CreateFullReceipt ¶
func CreateFullReceipt(dbo interfaces.DBOverlaySimple, entryHash interfaces.IHash, includeRawEntry bool) (*Receipt, error)
func CreateMinimalReceipt ¶
func CreateMinimalReceipt(dbo interfaces.DBOverlaySimple, entryID interfaces.IHash) (*Receipt, error)
func CreateReceipt ¶
func CreateReceipt(dbo interfaces.DBOverlaySimple, entryHash interfaces.IHash, includeRawEntry bool) (*Receipt, error)
func DecodeReceiptString ¶
func (*Receipt) CustomMarshalString ¶
func (*Receipt) DecodeString ¶
func (*Receipt) JSONString ¶
func (*Receipt) TrimReceipt ¶
func (e *Receipt) TrimReceipt()
Click to show internal directories.
Click to hide internal directories.