diff options
Diffstat (limited to 'tests/concepts/libs/trie_database.nim')
-rw-r--r-- | tests/concepts/libs/trie_database.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/concepts/libs/trie_database.nim b/tests/concepts/libs/trie_database.nim new file mode 100644 index 000000000..a45c64842 --- /dev/null +++ b/tests/concepts/libs/trie_database.nim @@ -0,0 +1,12 @@ +type + KeccakHash* = object + data*: string + + BytesRange* = object + bytes*: string + + TrieDatabase* = concept db + put(var db, KeccakHash, string) is bool + del(var db, KeccakHash) is bool + get(db, KeccakHash) is string + |