-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(trie): Add missing copyrights fix(trie): Hash conversion fix(trie): Simplify memorydb
- Loading branch information
Showing
25 changed files
with
737 additions
and
419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright 2022 ChainSafe Systems (ON) | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
package hashdb | ||
|
||
import "github.com/ChainSafe/gossamer/lib/common" | ||
|
||
type Prefix struct { | ||
Data []byte | ||
Padded *byte | ||
} | ||
|
||
type HashDB interface { | ||
Get(key []byte) (value []byte, err error) | ||
Insert(prefix Prefix, value []byte) common.Hash | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.