audit

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package audit provides deterministic hash-chain verification for local ledgers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(sessionID, payload, previousHash string) string

func Verify

func Verify(records []Record) error

Types

type Record

type Record struct {
	SessionID    string
	Payload      string
	PreviousHash string
	Hash         string
}

func NewRecord

func NewRecord(sessionID, payload, previousHash string) Record

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL