Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculatePreV5FileHash ¶
Types ¶
type Hash ¶
func NewHashFromString ¶
type RecordFile ¶
type RecordFile struct { Hash string MetadataHash string TransactionsMap map[string]*hederaproto.TransactionID }
func NewCompactRecordFile ¶
func NewCompactRecordFile(recordFile map[string]interface{}) (*RecordFile, error)
func NewPreV5RecordFile ¶
func NewPreV5RecordFile(buffer *bytes.Reader) (*RecordFile, error)
func NewV5RecordFile ¶
func NewV5RecordFile(buffer *bytes.Reader) (*RecordFile, error)
skip the bytes before the start hash object to read a list of stream objects organized as follows:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Start Object Running Hash | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Record Stream Object | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Record Stream Object | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | End Object Running Hash | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Note the start object running hash and the end object running hash are of the same type HashObject and they have the same classId.
type SignatureFile ¶
type SignatureFile struct { Stream Hash []byte Signature []byte Version int MetadataHash []byte MetadataSignature []byte }
func NewSignatureFile ¶
func NewSignatureFile(buffer *bytes.Reader) (*SignatureFile, error)
func NewV2SignatureFile ¶
func NewV2SignatureFile(buffer *bytes.Reader) (*SignatureFile, error)
func NewV5SignatureFile ¶
func NewV5SignatureFile(buffer *bytes.Reader) (*SignatureFile, error)
type StateProof ¶
type StateProof struct { RecordFile interface{} `json:"record_file"` SignatureFiles map[string]string `json:"signature_files"` AddressBooks []string `json:"address_books"` Version int64 `json:"version"` }
func NewStateProof ¶
func NewStateProof(payload []byte) (*StateProof, error)
Click to show internal directories.
Click to hide internal directories.