Updated interfaces and added EntryID Hash
This commit is contained in:
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user