Updated interfaces and added EntryID Hash

This commit is contained in:
2026-02-11 06:49:21 +00:00
parent 652cfaf766
commit ca1a3e266b
3 changed files with 42 additions and 9 deletions

View File

@@ -7,8 +7,17 @@ type Ledger struct {
referenceStore ReferenceStore
}
func NewLedger(entryStore EntryStore) (*Ledger, error) {
func NewLedger(entryStore EntryStore, referenceStore ReferenceStore) (*Ledger, error) {
return &Ledger{
entryStore: entryStore,
entryStore: entryStore,
referenceStore: referenceStore,
}, nil
}
func (l *Ledger) Append() {}
func (l *Ledger) AppendToReference() {}
func (l *Ledger) Get() {}
func (l *Ledger) GetFromReference() {}
func (l *Ledger) SetHead() {}
func (l *Ledger) SetReference() {}
func (l *Ledger) RemoveReference() {}