certichain

Blockchain built from scratch for verifying document's legitimacy.
Log | Files | Refs | README | LICENSE

commit 9da3bad92dc36d04333f2e336a20dd2ba5584592
parent fae92e66e93ffd78a86ff7644bff032c75e68bab
Author: Shivakumar <[email protected]>
Date:   Sat, 30 May 2026 16:21:04 +0530

feat(storage): add LashHash() function for better api

Signed-off-by: Shivakumar <[email protected]>

Diffstat:
Minternal/storage/store.go | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/internal/storage/store.go b/internal/storage/store.go @@ -55,3 +55,8 @@ func TxKey(txID []byte) []byte { func BatchKey(batchID string) []byte { return append([]byte(PrefixBatch), []byte(batchID)...) } + +// LastHash returns the database key for the last block hash. +func LastHash() []byte { + return []byte(LastHashKey) +}