aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index ee2ecfcf..551b21ab 100644
--- a/main.cpp
+++ b/main.cpp
@@ -93,9 +93,20 @@ int main()
*/
{
Trie t;
- cout << hex << hash256(StringMap({})) << endl;
+ t.insert("dog", "puppy");
+ cout << hex << t.hash256() << endl;
+ cout << RLP(t.rlp()) << endl;
+ }
+ {
+ Trie t;
+ t.insert("bed", "d");
+ t.insert("be", "e");
cout << hex << t.hash256() << endl;
+ cout << RLP(t.rlp()) << endl;
+ }
+ {
cout << hex << hash256({{"dog", "puppy"}, {"doe", "reindeer"}}) << endl;
+ Trie t;
t.insert("dog", "puppy");
t.insert("doe", "reindeer");
cout << hex << t.hash256() << endl;