You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@resilientdb.apache.org by gi...@apache.org on 2026/01/26 04:43:04 UTC

(incubator-resilientdb) branch development updated (25411ef0 -> 4b841039)

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch development
in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb.git


 discard 25411ef0 check if author resert works
 discard 4359dde2 checking if reset-author works
 discard 75f6f8d5 adding back token info
 discard f5e99607 checking if the git config works
 discard 70eec5a5 fix for author conflict outside vercel org
 discard 37dad3d7 update deployment config to trigger beacon deployment
 discard 9dd7ea97 Merge commit '2795117aed4f060e29b4df7ab60f414a81aed81a' as 'ecosystem/ai-tools/beacon'
 discard 2795117a Squashed 'ecosystem/ai-tools/beacon/' content from commit a77bbe3f0
 discard 344bd3c8 remove unecessary config file
 discard 34df070d revert project id changes. vercel deployment breaks with author validation error
 discard 51406fa3 update project id for reslens deployment
 discard 3b22091b updating build command for reslens
 discard 985d7854 Merge commit 'f95a2e7b10982657680b17b9e1776e8bcc871e98' as 'ecosystem/monitoring/reslens'
 discard f95a2e7b Squashed 'ecosystem/monitoring/reslens/' content from commit 0e4305048
 discard 63cc6463 Remove reslens to re-add as subtree
 discard 00ab4efa Update deployment command in workflow to include --yes flag for automatic confirmation
 discard bfb41661 using vercel.json instead of vercel.ts
 discard 8f00e132 Additional Optimisations to the vercel deployment pipeline
 discard d287ab2f Offload Project Build to Vercel
 discard ed8c4157 fixed JSON parsing in workflow
 discard d55b66e6 use jq instead to parse projects config
 discard 559eebc1 update workflow to python runners
 discard e05de974 update yaml parsing in wfl
 discard 837e2f2d update workflow - resolve caching
 discard 967f0d25 update workflow
 discard c56151de Merge branch 'development' of https://github.com/apache/incubator-resilientdb into development
 discard 36a28485 ResLens Vercel deployment - Workflow Test
 discard bf9a7f26 ResLens Vercel deployment - Workflow Test
 discard 6c5b1fe1 ResLens Deployment from Monorepo
 discard dc2e4a83 Add Bazel configuration for C++17 and optimization; refactor JSONScalar implementation; update service configuration for replicas
    omit 550d5ec9 Recovery ckpt (#222)
    omit 89361043 Fix Memdb with seq 0 (#219)
    omit 289e07e2 Poc merge (#215)
    omit 8416beb3 Recovery ckpt (#214)
    omit cfb177f0 Support Leveldb with Recovery Data locally (#208)
    omit 70843091 rm files
    omit 709b3a48 add license
    omit 181340e8 add license
    omit 28fc6a94 add file
    omit 86c6ac18 add version
    omit 8da5b8bb Merge branch 'master' of https://github.com/apache/incubator-resilientdb
    omit e4381847 add license
    omit 70b6f363 Revert "Adding AI tools to Monorepo (#200)" (#204)
    omit 356b378d add config license
    omit 80db8b9c Adding AI tools to Monorepo (#200)
    omit ee8bf250 Remove license comments from README.md
    omit a7dc9536 Change license notice to HTML comment format
    omit 335c7622 Add drawing-lib tool to README (#198)
    omit 78484f31 Add drawing toolkit to ecosystem/tools (#195)
    omit c3acc53c Issue 193: removed & from deploy_local.sh line 115 to fix race condition. (#194)
    omit e18d5762 Update kv_server.conf
    omit 27d800db Update template.config
    omit a600a428 Update poe.config
    omit 7c05d339 Update pbft.config
    omit cea40e53 Update kv_performance_server_local.conf
    omit b06283e6 Update kv_performance_server.conf
    omit 0577383a Update key_example.conf
    omit 9767f53b Update README.md
    omit c9eb323b Update WORKSPACE
    omit 3d0246fc Smart contract bug fixes (#186)
    omit 294003f1 Update .licenserc.yaml
    omit 035b2aa2 Update .licenserc.yaml
    omit 377e7e64 Monorepo setup (#185)
    omit 19346d28 Monorepo setup - Correction for Workflow files (#183)
    omit 362807fe Monorepo setup (#182)
    omit 8a58f0ee update license
    omit 26939605 fix header
    omit 84a11e99 fix header
    omit 3f395d95 add header
    omit 8daa38c5 add header
    omit 898d92e4 change licence
    omit 4ca8d64b mv DISCLAIMER-WIP DISCLAIMER
    omit a6592741 fix homepage link on README (#179)
    omit 7a1eafc8 fix issues in NOTICE (#178)
    omit cd3eb062 add apache
    omit e936f365 Update CHANGELOG.md
    omit d57ef48f Update CHANGELOG.md
    omit dae979f2 Update performance_manager.cpp
    omit 3550e4fa Update response_manager.h
    omit 820b0298 Update CHANGELOG.md (#175)
    omit 2eeed2f6 Update CHANGELOG.md
    omit 90ad5e2a add bazel version
    omit d935a5e7 update asf
    omit edff4f8e Local perf (#174)
    omit d34e9f5a MemLens Database Specific Changes (#170)
    omit 035a1bb3 Smart contract merge (#173)
    omit cc0112ee Smart contract merge (#172)
    omit aa54deb7 Support SmartContract with Key-Value (#171)
    omit 3d2d9348 add custom path
    omit 3c3e9a2b Fix ut (#168)
    omit 208d829c add gcc (#167)
    omit 3aa81aec change to 6.0.0
    omit 98f28fc8 change bazel to 5.0
    omit df847184 add bazel version
    omit 9e6f8e6c add bazel version
    omit 80cb7343 Update README.md
    omit d8ddf673 Use custom Ports (#165)
    omit 0541fe43 Added external address addition function
    omit 282fe2da Update INSTALL.sh
    omit ed317a72 Update README.md
    omit c7178879 rm key
    omit 834f7021 add changelog
    omit 0d639a6f rm key
    omit ab6dfd55 rm cert
    omit c4fffcdc upate
    omit 6282b5c1 Minor fixes to the Dockerfile, Entrypoint and Readme (#157)
    omit 9a2b697e Update LICENSE
    omit 4ac57060 [License]Add the missing license file (#154)
    omit a0f54bff Update index.js
    omit 39ed0872 Update CHANGELOG.md (#153)
    omit 2dd1b504 Update README.md (#152)
    omit dba221bb Update README.md
    omit ea4116cf Update README.md
    omit 71e7dc7a Update .licenserc.yaml (#151)
    omit 3243bd2a Add missing ASF headers (#150)
    omit 8bcaf3d9 Update DISCLAIMER-WIP
    omit 9bdc6783 Install (#145)
    omit 1b5b5e39 add civetweb build
    omit a511fdf7 civetweb
    omit af58d7e5 civetweb
    omit a69c34c2 Update README.md
    omit fc5559ce Update DISCLAIMER-WIP
    omit f0832b73 Update DISCLAIMER-WIP
    omit f1f330f1 add license in wip
    omit d8b0da0d add version
    omit 255df5ba fix typo
    omit 0590e8af mv DISCLAIMER-WIP
    omit e92b6af1 fix name error
    omit efce5f30 rm rocksdb
    omit 9dc93e9e add thirdparty license
    omit 48adcb93 Merge branch 'master' of https://github.com/apache/incubator-resilientdb
    omit b5783d52 add url in notice
    omit 2f0ae14e Fix Apache License (#143)
    omit 761ce31f add npm in workflow
    omit b6aace2b add apache license check workflow
    omit c4c07264 format
    omit 1b04ed84 fix apache header
    omit 9123cf95 Fix Bug (#142)
    omit 36f38bc7 add disclaimer
    omit 3037f80e Update CHANGELOG.md (#141)
    omit d2225665 Update CHANGELOG.md
    omit fe73ffa2 add poe (#140)
    omit 69069c87 "Fixed issue with data carryover between instances" (#139)
    omit 69ef5830 ResView Branch (#138)
    omit ca0ac0f9 update kv_operation.py route to bazel-out and update readme (#137)
    omit c3953f90 kv-service python api (#136)
    omit a145249f Fix incorrect comment intervals in Prometheus config (#135)
    omit a6b6bbcf change the script path in start_contract_service.sh
    omit 7d478836 add GetRequestFromReplica interface (#133)
    omit 9c6a8293 fix get txn bug
    omit 95443cd1 add get block numbers
    omit 5601a1ec Merge branch 'master' of https://github.com/ResilientEcosystem/resilientdb
    omit 3f1bcf39 update state client to obtain the replica state
    omit 24c54323 Change the deploy logging type
    omit 7b7df246 add bazel version (#132)
    omit fe31ff22 Merge pull request #130 from apache/CalvinKirs-patch-1
    omit 5fdd1466 Use .asf.yaml to manage GitHub settings
    omit 9040da20 Update copyright date in NOTICE (#129)
    omit 295d1b99 Merge pull request #126 from AtariDreams/patch-1
    omit ad7abb85 Update README.md
    omit 43a30b35 Fix the failure memory order argument to atomic_compare_exchange_strong_explicit
    omit 5f06d8b9 Merge pull request #124 from resilientdb/license
    omit 74e1af3f change apache license
    omit 7ed9ff2f Merge pull request #123 from resilientdb/license
    omit 8ab20b99 add notice file
    omit a93921fa Merge pull request #122 from resilientdb/license
    omit 44d103a6 change apache license
    omit 1bac6a90 Merge pull request #121 from resilientdb/license
    omit d0137313 del file
    omit 9aa2df1d change to apache license
    omit 89964b23 Merge pull request #120 from resilientdb/license
    omit 996e7647 format code
    omit 056896c4 change license
    omit 9507bc80 Merge pull request #119 from resilientdb/mvcc
    omit 8f4e6f48 support old api command line
    omit 0db8bf2f Update CHANGELOG.md
    omit b2c7e9b2 Merge pull request #118 from resilientdb/cjcchen-patch-1
    omit 92766657 Update CHANGELOG.md
    omit a86abc3a Merge pull request #117 from resilientdb/mvcc
    omit 8a242a46 Update kv_client.h
    omit 63d83b7d Update README.md
    omit cf41cb57 Update README.md
    omit 5c08784c format code
    omit e2ac5cbb add glog init
    omit 68dbd876 rm unused log
    omit 7021be50 remove unused log
    omit 6286cef9 remove log
    omit 07ae8b3a rm unused code
    omit bc3909c6 Merge branch 'mvcc' of https://github.com/resilientdb/resilientdb into mvcc
    omit f7809260 add mvcc for kv
    omit 041507eb add mvcc for kv
    omit 0f1ec7be add mvcc
    omit bb38084a add history
    omit cbb3b2ad add mvcc for mem-kv
    omit 530ed2f4 Merge pull request #116 from resilientdb/Bug-logo
    omit b1f09052 Fixed light logo bug | removed nexres refs
    omit f3a6f019 Merge pull request #115 from resilientdb/logo_latest
    omit 41170e51 Updated loqo quality
    omit 8951a404 Update README.md
    omit 3bcefd9b Update README.md
    omit 81f7eb0e Add files via upload
    omit 86fc301a Delete img/resilientdb_logo_light-text-modern-v3-1.png
    omit 641f8a2f Add files via upload
    omit b849f66b Merge pull request #114 from resilientdb/gopuman-docker-latest
    omit a011c863 Updated logo
    omit e7c07892 Update README.md
    omit edfbe4b5 Merge pull request #112 from resilientdb/utxo_api
    omit d172c4b5 Update README.md
    omit 430191f9 Add files via upload
    omit 45e162b3 Update README.md
    omit 06b7d4da Update README.md
    omit 04870ea6 end
    omit fa0ba1f7 support transfer to multi address
    omit a6b8a41b Merge pull request #111 from resilientdb/update-proto
    omit 30fcfe5f Change getvalues cmd type to getallvalues
    omit 503599bc Merge pull request #110 from resilientdb/gopuman-docker
    omit 84f8e24f Modified Dockerfile to add entrypoint
    omit a1955adb Merge pull request #108 from resilientdb/fix_local_confi
    omit 4c3e3b1d fix utxo start script
    omit 30345daf Merge pull request #106 from resilientdb/fix_local_confi
    omit d89db76c disable local recovery
    omit 772adcc3 Merge pull request #102 from resilientdb/deploy
    omit 1b388bd0 end
    omit 21c9df1b support custom config the configure file items
    omit 3bfd0328 Merge pull request #93 from resilientdb/deploy
    omit c05a9eea end
    omit ce30fed6 rm config_out
    omit 9ed7c5e6 format
    omit b57c751d Merge branch 'master' into deploy
    omit 51446383 Merge pull request #92 from resilientdb/grafna
    omit 3376ebe5 end
    omit b11be6cd add granfa support
    omit 87b1e997 add config for prometheus
    omit 8be7b819 support grafana
    omit cfcf68b1 add grafana port
    omit 8bf935cb Merge pull request #90 from resilientdb/fix_recovery
    omit a5225f4c Merge pull request #89 from resilientdb/gopuman-docker
    omit 37d57312 fix read permission
    omit 923f0be2 jjjjjjjj
    omit 32f453be Added build-push workflow
    omit bb0d9e8a Merge pull request #86 from resilientdb/gopuman-docker
    omit c50cd771 Added Dockerfiles and readme update
    omit 34501e84 Merge pull request #84 from resilientdb/fix_ub
    omit 6f777e6f remove syslock
    omit 81e0bd7a Merge pull request #83 from resilientdb/cjcchen-patch-5
    omit efe1b864 Add files via upload
    omit 977b439b Update README.md
    omit a1b309a6 Merge pull request #80 from Snowfall99/fix/performance
    omit 6a5d712d fix: kv service tools
    omit 8e96e2ca Merge pull request #79 from resilientdb/gupta-suyash-patch-4
    omit d4743cf4 Update README.md
    omit 4bbafc21 Merge pull request #78 from resilientdb/cjcchen-patch-3
    omit 5eac30c5 format code
    omit 3f7a8c56 add CI
    omit edabe66b Merge branch 'cjcchen-patch-3' of https://github.com/resilientdb/resilientdb into cjcchen-patch-3
    omit 3d21b42f add CI
    omit 3751e91d Merge pull request #77 from resilientdb/cjcchen-patch-3
    omit bd2b79fd Update README.md
    omit 136f2571 add ut
    omit 4d1ceab5 fix ut
    omit 79fb764c fix ut
    omit 37556fa4 fix
    omit 5fb2b9a8 change
    omit cef6123a add
    omit eeea1128 add master trigger
    omit 2571f577 add
    omit d34ce537 fix
    omit d26a3b54 add
    omit 3203d607 add
    omit 6800ce31 add
    omit 976303b9 add
    omit 56a963e0 add
    omit 1cff9855 Merge branch 'cjcchen-patch-3' of https://github.com/resilientdb/resilientdb into cjcchen-patch-3
    omit bbec9bcc add action
    omit 9d0af78b Update README.md
    omit e5915f37 Merge branch 'cjcchen-patch-3' of https://github.com/resilientdb/resilientdb into cjcchen-patch-3
    omit 43731894 fix
    omit d4a10c64 Update README.md
    omit 4bbd11a6 Update README.md
    omit 163c864a fix build
    omit 08ad02fd add
    omit 618eab92 add
    omit baefd185 add
    omit def7d588 add
    omit fda4427b add
    omit 8b8a9403 add
    omit 6a61721f add
    omit c370b711 ad
    omit 76a8b277 add
    omit a88b4b65 add build
    omit 8dbe9b1d add log
    omit 09777c0f add
    omit fba9081d add
    omit e44f3e66 add
    omit eb1bd98e Merge branch 'cjcchen-patch-3' of https://github.com/resilientdb/resilientdb into cjcchen-patch-3
    omit 3e8bf7b1 add
    omit 7940a2e8 Update README.md
    omit 9451cb9c add node
    omit 0e9bff9f add
    omit e831044b add pkg
    omit 96b2b2a1 add action
    omit c4a568c6 add loc
    omit d0e537c9 add
    omit 4e1c379a Merge branch 'cjcchen-patch-3' of https://github.com/resilientdb/resilientdb into cjcchen-patch-3
    omit bb06d66f add loc
    omit 7038c37d add loc
    omit 3640fe62 add loc
    omit 25b3b653 add loc
    omit 98c9d710 add loc
    omit 972947f8 add loc
    omit 47f947bf add workflows
    omit ca361b43 Update README.md
    omit 9079e3df Update CHANGELOG.md
    omit 4b55f443 Merge pull request #74 from omahs/omahs-patch-1
    omit 0c2e194e Merge pull request #76 from resilientdb/v_c_log
    omit c3a5686a viewchange changelog
    omit a28c48b5 Merge pull request #75 from resilientdb/v_c_log
    omit 5c2977f8 viewchange changelog
    omit b61596a8 fix typo
    omit b128a8be fix typos
    omit 07d80f2b Merge pull request #73 from resilientdb/local_recovery_sys
    omit 60067136 add system info in local recovery
    omit 91109b14 Merge pull request #72 from resilientdb/view_change
    omit a1747f4b fix error
    omit 74480c6d change as commented
    omit 9ab7e82c viewchange code
    omit b5e23da9 viewchange code
    omit c97cd7cb Merge pull request #71 from resilientdb/gupta-suyash-patch-5
    omit fc858cbc Update README.md
    omit d105f851 Merge pull request #69 from kamaci/master
    omit 4847f6ba fixed typo at README.md
    omit aaebaffa Update README.md
    omit abf5fe4f Update README.md
    omit ced8d522 Update README.md
    omit 520cf5ad Update CHANGELOG.md
    omit 02fca864 Merge pull request #68 from resilientdb/res_local
    omit 1be0a28e add changelog
    omit 1bdfd104 revert
    omit b7e22b06 revert
    omit 6f4d55b0 rm files
    omit b4c9a52d revert
    omit 65e4e376 revert readme
    omit b83beffa rm files
    omit cbf5cfa6 revert
    omit 0c2b99e5 rm unused files
    omit 814703cd add
    omit f1ded35e add recv
    omit 10741e8c Update README.md
    omit a07103db Update README.md
    omit 1df6b732 Merge pull request #67 from resilientdb/doc
    omit 70ccddfb fix wording
    omit c284367f add deploy
    omit 08e3bbe3 Merge pull request #66 from resilientdb/resilient_v2
    omit 4cfb746e change img path
    omit d5e30852 Merge pull request #65 from resilientdb/resilient_v2
    omit 6ccced88 add png
    omit 70cf8359 Merge pull request #64 from resilientdb/resilient_v2
    omit 7e830230 Update README.md
    omit 3609f874 add png
    omit f58f04a7 move storage
    omit 6dc175aa Merge pull request #63 from resilientdb/resilient_v2
    omit 293979ee move out storage
    omit 928afbb1 Merge pull request #62 from resilientdb/resilient_v2
    omit 5aab3774 add png
    omit 43ceb940 Merge branch 'master' into resilient_v2
    omit 66142229 move storage to chain
    omit 4581630d Update README.md
    omit f8cf7301 Update README.md
    omit 9c50c59e Update README.md
    omit 755c4f84 Update README.md
    omit a8cfbe27 Update README.md
    omit 0534712a Update CHANGELOG.md
    omit c81be082 Merge pull request #61 from resilientdb/cjcchen-patch-2
    omit b0293103 Update README.md
    omit 70227d74 Add files via upload
    omit f7a78b71 Merge pull request #60 from resilientdb/resilient_v2
    omit f3685e84 move server to service
    omit 61625f82 add pic in readme
    omit 1663ed15 Merge pull request #59 from resilientdb/resilient_v2
    omit b621d1ff add change log
    omit f35b95ad format
    omit 723eaaef fix header
    omit bef5a844 rm
    omit 0243435f release
    omit 10d721e1 change sys clock
    omit b183ba40 Update README.md
    omit 6a08bd99 add wording
    omit 9ce2be1f add state
    omit a01323f4 Merge pull request #57 from resilientdb/perf
    omit 789f464f rm wording
    omit f4f9da83 rm unused code
    omit 05ba1abe add benchmark tools
    omit b3cf9da3 Merge pull request #56 from resilientdb/aarch64
    omit 4b06f382 fix performance
    omit d80981cd fix
    omit 2d514989 fix
    omit a0b59eb9 Merge branch 'master' of https://github.com/resilientdb/resilientdb
    omit d1bd563d support arach6
    omit 3952617c Update CHANGELOG.md
    omit 22d41e6e Update CHANGELOG.md
    omit 9747ce16 Update CHANGELOG.md
    omit 156bf86e Update CHANGELOG.md
    omit a7e4e9b3 Merge pull request #55 from resilientdb/resilient_v2
    omit bba3a42c fix build
    omit 083a2db0 fix workspace
    omit c79fd46e add change log
    omit 8c148113 rm unused code
    omit ce0aa078 add deploy
    omit 42ada9e3 rm unused dep
    omit 9f414461 add deps
    omit 9fa694ac add dep
    omit b43a3856 add dep
    omit aa37a4f9 add dep
    omit eb513a06 add deps
    omit 852d58bc add dep
    omit d0336a9f remove crpyto
    omit d564429f fix build
    omit 34abc4e2 move deps
    omit 4191054a add boost
    omit b8c9f584 move pro to repo dep
    omit 6df03cfe add resilient v2
    omit 8b358c62 Merge pull request #54 from resilientdb/gupta-suyash-patch-3
    omit 919c67ba Update README.md
    omit 52c7f695 Merge pull request #53 from resilientdb/gupta-suyash-patch-2
    omit 3dd84fde Update README.md
    omit 5bb7ce24 Merge pull request #51 from resilientdb/cjcchen-patch-1
    omit 8978a7b8 Update deploy.sh
    omit fcb0b31e Update README.md
    omit 9294d433 Update README.md
    omit 386340b9 Merge pull request #49 from resilientdb/cjcchen-patch-1
    omit 0c9e32d2 Update README.md
    omit 32597fac Merge pull request #48 from resilientdb/deployment
    omit 5d6b9b7b rename key file
    omit 43625dd7 rm output files
    omit 4563a759 add compile check
    omit e7e043ff add deployment
    omit d37f8e7b Merge pull request #47 from resilientdb/sdk
    omit 500bc553 add doxygen comments to sdk
    omit 137f8e5c Merge pull request #46 from resilientdb/gnambiar_doxycleanup
    omit 19706c60 Fixed relative path issue
    omit 6729ca0f Update README.md
    omit a479cc30 Update CHANGELOG.md
    omit 54a785ff Merge pull request #45 from resilientdb/gnambiar_cname
    omit 9461696a Restructured doxygen directory to be within documents
    omit 7e01a57d Merge pull request #44 from resilientdb/utxo
    omit cb3c4a2b add ut
    omit 4ac20e33 Update README.md
    omit 2593cd71 add utxo
    omit df634f1c Update README.md
    omit d58a7468 Merge pull request #43 from resilientdb/gnambiar_cname
    omit 3652b8ea Modified gh-pages action, added cname option
    omit dd49e9f8 Merge pull request #42 from resilientdb/gnambiar_doxycleanup
    omit 6aa685d4 Modified Doxyfile
    omit c73118d3 Merge pull request #41 from resilientdb/gnambiar_pagesfix
    omit 80e3d81a Fixed publish directory key
    omit b090df41 Update README.md
    omit 99b31e0e Update README.md
    omit 3f085ca6 Create CNAME
    omit 8dce4cd5 Delete CNAME
    omit b594e643 Update README.md
    omit f77ece80 Create CNAME
    omit bb2d3670 Merge pull request #40 from resilientdb/gnambiar_Doc
    omit ec8e775f Merge pull request #39 from resilientdb/fix_build_pybind
    omit 21bfbfe7 format code
    omit 0e2f2bcc Added doxyfile and github actions config
    omit 8bc2224e python kvserver cleanup
    omit 2aa300b4 fix build kvserver
    omit b0a33a23 Merge branch 'master' into fix_build_pybind
    omit f7abc3b0 add select
    omit 12739554 add x to start script
    omit 03458de4 rm unused code
    omit ba957c11 fix build
    omit 1108fcbf fix pybuild
    omit 5a6d6a8b iadd python 10
    omit 8f919289 fix
    omit 9f09914e Update README.md
    omit 3fac21f5 Update CODE_OF_CONDUCT.md
    omit a23de6ed Merge pull request #38 from resilientdb/fixoption
    omit ee5560f0 revert INSTALL.sh
    omit e0387baf ifix optional
    omit b0fbbdee Update README.md
    omit 6ac47955 Update README.md
    omit 3d978a7f Update README.md
    omit dc58b026 Update CHANGELOG.md
    omit 53b1ffe3 Merge pull request #36 from resilientdb/cjcchen-patch-3
    omit be8a4600 Update CHANGELOG.md
    omit c82dda98 Update CHANGELOG.md
    omit afb36d70 Update CHANGELOG.md
    omit b88e61d4 Update CHANGELOG.md
    omit c09b15db Update README.md
    omit 54844492 Update README.md
    omit 1f0be4d4 Update CHANGELOG.md
    omit 6a8b23b7 Update CHANGELOG.md
    omit 6bacdb14 Update CHANGELOG.md
    omit d433fe3c Update README.md
    omit 23644e39 Merge pull request #35 from resilientdb/application_folder
    omit d342b692 Merge pull request #34 from resilientdb/changelog-1.3-update
    omit ef0e7e64 Update CHANGELOG.md
    omit ee34691d update kv client + kv server in application folder
    omit 91938ef2 Update CHANGELOG.md
    omit dfb2ea27 Merge pull request #33 from resilientdb/sdk
    omit 2265b25d fix durable layer tests
    omit 4f2d0476 remove namespace, rocksdb copts + formatting
    omit d32a22d7 sdk full release
    omit 8086a698 Update README.md
    omit 25d614f3 Update README.md
    omit fc4f33f2 Update README.md
    omit a3a94591 Update README.md
    omit d045c6ea Update README.md
    omit c1fecf76 Update README.md
    omit f3e1cde8 Update README.md
    omit 0b7c09bd Update README.md
    omit 26e1963f Update README.md
    omit de12d00e Update README.md
    omit 8f506014 Update README.md
    omit a2bd8a24 Update README.md
    omit 3a8916ff Update README.md
    omit edaeb31c Update README.md
    omit 01abc33b Update README.md
    omit 0413dfd3 Update README.md
    omit 3570e24b Merge pull request #32 from resilientdb/gupta-suyash-patch-2
    omit 297843e1 Merge pull request #31 from resilientdb/gupta-suyash-patch-1
    omit 077963e7 Code of conduct
    omit cd04bc48 Update README.md
    omit c21b2fb2 Update README.md
    omit 68135a47 Update README.md
    omit 051c0362 Update README.md
    omit cbd2fd8c Update README.md
    omit f23ef6fc Merge pull request #30 from resilientdb/cjcchen-patch-2
    omit a6aa5db0 Update README.md
    omit b2dcc662 Update README.md
    omit b939c4fd Create CHANGELOG.md
    omit 8021e15c Merge pull request #29 from resilientdb/cjcchen-patch-1
    omit eba8bb5f Update README.md
    omit 8cb86659 Merge pull request #28 from resilientdb/smart-contract
    omit eeb6dec6 typo
    omit ce2dc979 add simple smart-contract based on eEVM
    omit 0117537c Update README.md
    omit e92712af Delete LICENSE.md
    omit 906c547d Merge pull request #27 from resilientdb/add-license-1
    omit 77bb23c7 Create LICENSE
    omit 6eb19539 Create LICENSE
    omit 8c2ab51f Merge pull request #26 from resilientdb/geo_pbft
    omit 04e87b5e fix build fail
    omit 66a40ef3 rm unused
    omit 700a0a05 rm unused
    omit 17cdcc57 add geo_pbft
    omit 4ea3cb63 add img
    omit fc7ce124 add node manager for resilientdb.com
    omit 45e7ef0c Update INSTALL_MAC.sh
    omit b10bf76c Update README.md
    omit dd178bbd merge thirdpart
    omit a805748e add workspace
    omit c22e9b9a add sdk
    omit c22a0dd8 remove unused code
    omit 23959027 merge from nesrex repo
    omit 49ab5101 remove unused config file
    omit 99c4279d Update README.md
    omit 8df2d9be Update README.md
    omit af2d9d6e Update README.md
    omit ec8b2aaf Update README.md
    omit fd6c10db Update README.md
    omit 42c8bc85 Update README.md
    omit d3be5faf Update README.md
    omit 8fecd325 Update README.md
    omit 66c81868 Update README.md
    omit 413b90b6 Update README.md
    omit f253eb16 Update README.md
    omit b507596d Update README.md
    omit 599ad76d Update README.md
    omit da8c106b Merge branch 'nexres' of https://github.com/resilientdb/resilientdb into nexres
    omit 3455ecf4 add readme
    omit 08e7bd1a add dockerfiles for mac
    omit e1c762fd fix build for mac
    omit c8a2e343 fix build error
    omit 44435f9f add mac installation
    omit 7f4fbba9 remove lib specific code
    omit 29b1b24d add condition for storage to reduce the build time.
    omit 255afefb add pre-build cryptopp lib
    omit 36f1e461 Update README.md
    omit fa9b57bc Update CHANGELOG.md
    omit d9ef0f69 add change log
    omit e0b2195b add sha
    omit 4f4a0d4b add bas
    omit e1293159 fix build
    omit c4db0cb5 release nexres
    omit 0fb1e751 remove unused code
    omit 2bdd38fe release nexres-alpha basic
    omit e0dc66f6 Merge pull request #21 from xyhlinx/dev
    omit 3fa421b8 Merge pull request #23 from zjukdk/master
    omit ba3beaa9 fix bug
    omit 02097a40 fix bug
    omit f6011f40 restore config.h
    omit e0ecdfab tru
    omit 0bea791d fix error in msg_thread.cpp
    omit 70e4e011 fix error
    omit 2d6429f9 15 run
    omit 58019295 semaphore optimization
    omit 66b6084a fix input_thread bugs
    omit f00087bf Increase warmup time
    omit 42c60f22 fix: dev: fixed the regular expression
    omit a420714f Update Readme for Version 3
    omit c4ab335c Release V3
    omit e2efff96 Make Config Script
    omit cf35913e GeoBFT
    omit 844b1c39 Major Changes, Refactoring
    omit babcdfa1 Merge pull request #16 from resilientdb/client_memory
    omit 8973a133 Client Memory #11 and config file bug fixed
    omit 2f8f6673 Delete modeling
    omit 059e0491 Create modeling
    omit 0b4d44f6 Merge pull request #14 from resilientdb/nanomsg
    omit 160172c1 Nanomsg Next Generation upgrade
    omit b122ae81 #10 Fixed
    omit 15b7f6d4 updated CHANGELOG
    omit 51dae9cb minor edit to README
    omit 17e27716 update to README and config
    omit ca26dbda Dashboard Support. Fixed #9
    omit 6b3ce8d7 Smart Contract Support. Fixed #7
    omit 772a7163 Monitor results. fixed #8
    omit 953abef8 Docker Script Fixed
    omit 1bf0e8bf Mac Bug Fixed
    omit 9120818c DB file in docker fixed
    omit 217ae935 SQlite Support #6
    omit 55ea1aee #5 fixed. chain Initialization
    omit f2302e6c readme updated
    omit 6f38ecf0 changelog added
    omit db4bf1bd changelog added
    omit 86e17016 changelog added
    omit 038aa6e1 changelog added
    omit 198a509e changelog added
    omit 31210446 changelog added
    omit 8153a4a3 changelog added
    omit 24832b3e changelog added
    omit 466ca4a0 changelog added
    omit 5658292e readme update
    omit 56f500fe ledger archiecture defined
    omit 6b0fdc59 Merge pull request #2 from RohanSogani/master
    omit e221b3de Merge pull request #1 from RohanSogani/BFT-SMaRt
    omit 4f3096ff added -e to handle multiple clients in docker-ifconfig
    omit 1d6a62d5 Create CODE_OF_CONDUCT.md
    omit 04986555 readme update
    omit 8c5f2804 Initial Commit
    omit 3d7cf6ac Small Change
    omit ed58c784 Last updates
    omit 49ff704c readme update
    omit e38ec1e7 readme update
    omit b2f17cc9 readme update
    omit abb2db79 readme update
    omit 2251e5da readme update
    omit 5c06cc7a readme update
    omit cadb6840 readme update
    omit fe2a3ff2 readme update
    omit 1d5ed20a readme update
    omit ceed4593 readme update
    omit 266c06c7 readme update
    omit e543a5e8 readme update
    omit 51aca1c3 readme update
    omit bd0702fb readme update
    omit 3b49788a readme update
    omit 8f47dd0f readme update
    omit 8f7d5b82 readme update
    omit 04005bc6 readme update
    omit 208bef6c readme update
    omit d29aa4e3 readme update
    omit 87daba4e readme update
    omit d48c59c0 readme update
    omit 1e25d09f readme update
    omit 31197796 readme update
    omit b1edce8c readme update
    omit da35aa2a first update
     new 4b841039 check if author resert works

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (25411ef0)
            \
             N -- N -- N   refs/heads/development (4b841039)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:


(incubator-resilientdb) 01/01: check if author resert works

Posted by gi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch development
in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb.git

commit 4b841039e7781ea1d083e91ebe740dfff8fdf844
Author: github-actions[bot] <su...@resilientdb.com>
AuthorDate: Mon Jan 26 04:43:00 2026 +0000

    check if author resert works
---
 .asf.yaml                                          |    42 +
 .bazelignore                                       |     1 +
 .bazelrc                                           |     4 +
 .bazelversion                                      |     3 +
 .clang-format                                      |   168 +
 .github/deploy-ecosystem-configs.json              |    13 +
 .github/workflows/build-push.yml                   |    64 +
 .github/workflows/build.yml                        |    53 +
 .github/workflows/deploy-ecosystem.yml             |   175 +
 .github/workflows/license.yml                      |    37 +
 .github/workflows/loc.yml                          |    62 +
 .github/workflows/main.yml                         |    47 +
 .github/workflows/ut.yml                           |    53 +
 .gitignore                                         |    23 +
 .licenserc.yaml                                    |    21 +
 BUILD.bazel                                        |    35 +
 CHANGELOG.md                                       |   168 +
 CNAME                                              |     1 +
 CODE_OF_CONDUCT.md                                 |    95 +
 DISCLAIMER                                         |    22 +
 Docker/Dockerfile                                  |    56 +
 Docker/Dockerfile_mac                              |    53 +
 INSTALL.sh                                         |    66 +
 INSTALL/README.md                                  |    62 +
 INSTALL/bazel/install_bazel.sh                     |    27 +
 INSTALL/protobuf/install_protobuf.sh               |    20 +
 LICENSE                                            |   235 +
 NOTICE                                             |     6 +
 README.md                                          |   476 +
 WORKSPACE                                          |   266 +
 api/BUILD                                          |    38 +
 api/README.md                                      |    66 +
 api/kv_operation.py                                |    46 +
 api/pybind_kv_service.cpp                          |    66 +
 benchmark/protocols/pbft/BUILD                     |    43 +
 benchmark/protocols/pbft/kv_server_performance.cpp |    81 +
 benchmark/protocols/pbft/kv_service_tools.cpp      |    51 +
 benchmark/protocols/poe/BUILD                      |    33 +
 benchmark/protocols/poe/kv_server_performance.cpp  |    83 +
 chain/state/BUILD                                  |    38 +
 chain/state/chain_state.cpp                        |    44 +
 chain/state/chain_state.h                          |    42 +
 chain/state/chain_state_test.cpp                   |    65 +
 chain/storage/BUILD                                |    83 +
 chain/storage/kv_storage_test.cpp                  |   314 +
 chain/storage/leveldb.cpp                          |   444 +
 chain/storage/leveldb.h                            |   102 +
 chain/storage/leveldb_test.cpp                     |   117 +
 chain/storage/memory_db.cpp                        |   205 +
 chain/storage/memory_db.h                          |    95 +
 chain/storage/mock_storage.h                       |    63 +
 chain/storage/proto/BUILD                          |    44 +
 chain/storage/proto/kv.proto                       |    33 +
 chain/storage/proto/leveldb_config.proto           |    30 +
 chain/storage/setting/BUILD                        |    35 +
 chain/storage/storage.h                            |    72 +
 common/BUILD                                       |    85 +
 common/crypto/BUILD                                |   104 +
 common/crypto/hash.cpp                             |    48 +
 common/crypto/hash.h                               |    31 +
 common/crypto/hash_test.cpp                        |    50 +
 common/crypto/key_generator.cpp                    |   156 +
 common/crypto/key_generator.h                      |    31 +
 common/crypto/mock_signature_verifier.h            |    35 +
 common/crypto/signature_utils.cpp                  |   147 +
 common/crypto/signature_utils.h                    |    40 +
 common/crypto/signature_verifier.cpp               |   279 +
 common/crypto/signature_verifier.h                 |    83 +
 common/crypto/signature_verifier_interface.cpp     |    29 +
 common/crypto/signature_verifier_interface.h       |    37 +
 common/crypto/signature_verifier_test.cpp          |   160 +
 common/lru/BUILD                                   |    36 +
 common/lru/lru_cache.cpp                           |   122 +
 common/lru/lru_cache.h                             |    51 +
 common/lru/lru_cache_test.cpp                      |    94 +
 common/proto/BUILD                                 |    38 +
 common/proto/signature_info.proto                  |    80 +
 common/test/BUILD                                  |    62 +
 common/test/json_test.cpp                          |    55 +
 common/test/test.proto                             |    34 +
 common/test/test_macros.h                          |    47 +
 common/utils/BUILD                                 |    25 +
 common/utils/utils.cpp                             |    36 +
 common/utils/utils.h                               |    28 +
 dev/.rat-excludes                                  |    26 +
 dev/check-license                                  |    86 +
 documents/doxygen/.gitignore                       |     2 +
 documents/doxygen/Doxyfile                         |  2799 +++
 documents/doxygen/DoxygenLayout.xml                |   256 +
 documents/doxygen/doxygen_html_style.css           |    20 +
 documents/doxygen/header                           |    80 +
 documents/doxygen/logo.png                         |   Bin 0 -> 71672 bytes
 documents/file/Nexres-1654906717062.json           |  2909 +++
 documents/file/prometheus.yml                      |    66 +
 documents/image/dashboard/import.png               |   Bin 0 -> 11682 bytes
 documents/image/dashboard/resolution.png           |   Bin 0 -> 38037 bytes
 documents/image/dashboard/target list.png          |   Bin 0 -> 138486 bytes
 documents/image/dashboard/target.png               |   Bin 0 -> 40734 bytes
 documents/image/dashboard/yml_config.png           |   Bin 0 -> 61559 bytes
 documents/image/dashboard/yml_interval.png         |   Bin 0 -> 17770 bytes
 ecosystem/README.md                                |    76 +
 ecosystem/ai-tools/beacon/.env.local.example       |     9 +
 .../ai-tools/beacon/.github/assets/beacon-hero.png |   Bin 0 -> 463895 bytes
 .../ai-tools/beacon/.github/workflows/license.yml  |    37 +
 .../ai-tools/beacon/.github/workflows/loc.yml      |    61 +
 ecosystem/ai-tools/beacon/.gitignore               |   134 +
 ecosystem/ai-tools/beacon/.licenserc.yaml          |    27 +
 ecosystem/ai-tools/beacon/.npmrc                   |     3 +
 ecosystem/ai-tools/beacon/.nvmrc                   |     1 +
 ecosystem/ai-tools/beacon/.prettierignore          |     1 +
 ecosystem/ai-tools/beacon/.prettierrc.mjs          |    35 +
 ecosystem/ai-tools/beacon/.storybook/main.ts       |    16 +
 ecosystem/ai-tools/beacon/.storybook/preview.tsx   |    33 +
 ecosystem/ai-tools/beacon/.stylelintignore         |     2 +
 ecosystem/ai-tools/beacon/.stylelintrc.json        |    28 +
 ecosystem/ai-tools/beacon/.vscode/settings.json    |     4 +
 ecosystem/ai-tools/beacon/CODE_OF_CONDUCT.md       |    95 +
 ecosystem/ai-tools/beacon/DISCLAIMER.txt           |    38 +
 ecosystem/ai-tools/beacon/LICENSE                  |   201 +
 ecosystem/ai-tools/beacon/NOTICE                   |    10 +
 ecosystem/ai-tools/beacon/README.md                |    67 +
 ecosystem/ai-tools/beacon/app/_meta.ts             |    43 +
 .../ai-tools/beacon/app/api/ai-search/route.ts     |   556 +
 ecosystem/ai-tools/beacon/app/api/chat/route.ts    |   131 +
 ecosystem/ai-tools/beacon/app/api/compile/route.ts |   117 +
 .../beacon/app/api/github-releases/route.ts        |    36 +
 .../beacon/app/docs/[[...mdxPath]]/page.tsx        |    43 +
 ecosystem/ai-tools/beacon/app/global.css           |   286 +
 ecosystem/ai-tools/beacon/app/layout.tsx           |   120 +
 ecosystem/ai-tools/beacon/app/lib/constants.ts     |   350 +
 ecosystem/ai-tools/beacon/app/lib/utils.ts         |    22 +
 ecosystem/ai-tools/beacon/app/page.module.css      |   361 +
 ecosystem/ai-tools/beacon/app/page.tsx             |    17 +
 ecosystem/ai-tools/beacon/app/providers.tsx        |    26 +
 ecosystem/ai-tools/beacon/app/search/page.tsx      |    25 +
 ecosystem/ai-tools/beacon/app/sitemap.ts           |    95 +
 ecosystem/ai-tools/beacon/asf.yaml                 |    42 +
 .../ai-tools/beacon/components/AskAIModal.tsx      |   137 +
 .../ai-tools/beacon/components/AuthProviders.tsx   |    32 +
 .../ColorSchemeControl.module.css                  |    46 +
 .../ColorSchemeControl.story.tsx                   |    26 +
 .../ColorSchemeControl/ColorSchemeControl.tsx      |    49 +
 .../ColorSchemeControl/HeaderControl.module.css    |    50 +
 .../ColorSchemeControl/HeaderControl.tsx           |    51 +
 .../ColorSchemeToggle/ColorSchemeToggle.tsx        |    62 +
 .../ai-tools/beacon/components/CommentSection.tsx  |   133 +
 .../beacon/components/Content/Content.story.tsx    |    28 +
 .../ai-tools/beacon/components/Content/Content.tsx |    74 +
 .../beacon/components/FloatingAssistant.tsx        |   832 +
 .../ai-tools/beacon/components/GitHubAuth.tsx      |   182 +
 .../beacon/components/InstallationForm.tsx         |   128 +
 .../ai-tools/beacon/components/Logo/Logo.story.tsx |    26 +
 ecosystem/ai-tools/beacon/components/Logo/Logo.tsx |    24 +
 .../components/MantineFooter/MantineFooter.tsx     |   384 +
 .../components/MantineNavBar/MantineNavBar.tsx     |    28 +
 .../MantineNextraThemeObserver.tsx                 |    43 +
 .../beacon/components/PocketFlowChatbot.tsx        |   130 +
 ecosystem/ai-tools/beacon/components/PythonIDE.tsx |   114 +
 .../beacon/components/PythonPlayground.tsx         |   773 +
 .../components/ReleaseNotes/ReleaseNotes.tsx       |   148 +
 .../beacon/components/ResContractPlayground.tsx    |   316 +
 .../beacon/components/SearchBar/PagefindSearch.tsx |   725 +
 .../beacon/components/SearchBar/SearchBar.tsx      |     7 +
 .../beacon/components/TypeScriptPlayground.tsx     |   800 +
 .../beacon/components/Welcome/Welcome.module.css   |    32 +
 .../beacon/components/Welcome/Welcome.story.tsx    |    26 +
 .../beacon/components/Welcome/Welcome.test.tsx     |    31 +
 .../ai-tools/beacon/components/Welcome/Welcome.tsx |    91 +
 .../components/cache/NodeConfigGenerator.tsx       |   155 +
 .../beacon/components/cache/NodeQueryBuilder.tsx   |   145 +
 .../components/cache/PythonConfigGenerator.tsx     |   155 +
 .../beacon/components/cache/PythonQueryBuilder.tsx |   164 +
 ecosystem/ai-tools/beacon/components/index.ts      |    30 +
 .../ai-tools/beacon/components/landing/Header.tsx  |   220 +
 .../beacon/components/landing/HeroContent.tsx      |   130 +
 .../beacon/components/landing/PulsingCircle.tsx    |    54 +
 .../beacon/components/landing/ShaderBackground.tsx |   136 +
 .../ai-tools/beacon/components/ui/terminal.tsx     |    44 +
 .../beacon/components/utils/loadPyodide.ts         |    56 +
 ecosystem/ai-tools/beacon/content/_meta.ts         |    68 +
 ecosystem/ai-tools/beacon/content/about.mdx        |    53 +
 ecosystem/ai-tools/beacon/content/index.mdx        |   114 +
 ecosystem/ai-tools/beacon/content/installation.mdx |   224 +
 ecosystem/ai-tools/beacon/content/node_cache.mdx   |   221 +
 ecosystem/ai-tools/beacon/content/python_cache.mdx |   278 +
 ecosystem/ai-tools/beacon/content/pythonsdk.mdx    |    74 +
 ecosystem/ai-tools/beacon/content/rescli.mdx       |   138 +
 ecosystem/ai-tools/beacon/content/rescontract.mdx  |   217 +
 ecosystem/ai-tools/beacon/content/resdb_orm.mdx    |   195 +
 .../resilientdb/chapters/01_client_interaction.md  |   284 +
 .../chapters/02_network_communication.md           |   291 +
 .../chapters/03_consensus_management.md            |   214 +
 .../chapters/04_message_transaction_collection.md  |   314 +
 .../chapters/05_transaction_execution.md           |   286 +
 .../resilientdb/chapters/06_storage_layer.md       |   297 +
 .../resilientdb/chapters/07_checkpointing.md       |   440 +
 .../chapters/08_resilientdb_configuration.md       |   356 +
 .../ai-tools/beacon/content/resilientdb/index.mdx  |    50 +
 .../beacon/content/resilientdb_graphql/index.mdx   |   351 +
 .../beacon/content/resilientdb_graphql/setup.mdx   |   123 +
 ecosystem/ai-tools/beacon/content/reslens.mdx      |   160 +
 ecosystem/ai-tools/beacon/content/resvault.mdx     |   252 +
 ecosystem/ai-tools/beacon/eslint.config.mjs        |    30 +
 ecosystem/ai-tools/beacon/jest.config.cjs          |    35 +
 ecosystem/ai-tools/beacon/jest.setup.cjs           |    46 +
 ecosystem/ai-tools/beacon/lib/documentIndexer.ts   |   480 +
 ecosystem/ai-tools/beacon/mdx-components.ts        |    31 +
 ecosystem/ai-tools/beacon/next-env.d.ts            |     6 +
 ecosystem/ai-tools/beacon/next.config.mjs          |    54 +
 ecosystem/ai-tools/beacon/package-lock.json        | 24993 +++++++++++++++++++
 ecosystem/ai-tools/beacon/package.json             |   100 +
 .../beacon/pages/api/auth/[...nextauth].ts         |    83 +
 .../beacon/pages/api/create-github-issue.ts        |   131 +
 ecosystem/ai-tools/beacon/pages/auth/_meta.json    |     8 +
 ecosystem/ai-tools/beacon/pages/auth/error.tsx     |    50 +
 ecosystem/ai-tools/beacon/pages/auth/signin.tsx    |    72 +
 ecosystem/ai-tools/beacon/postcss.config.cjs       |    34 +
 ecosystem/ai-tools/beacon/public/favicon.svg       |    18 +
 ecosystem/ai-tools/beacon/public/lighthouse.png    |   Bin 0 -> 21666 bytes
 ecosystem/ai-tools/beacon/public/logo.png          |   Bin 0 -> 8982 bytes
 .../public/mantine+nextjs+nextra-template.png      |   Bin 0 -> 606702 bytes
 ecosystem/ai-tools/beacon/public/resdb_sdk.py      |   290 +
 ecosystem/ai-tools/beacon/scripts/build-index.js   |    47 +
 ecosystem/ai-tools/beacon/scripts/build-index.ts   |    41 +
 .../ai-tools/beacon/styles/installation.module.css |    45 +
 ecosystem/ai-tools/beacon/test-utils/index.ts      |    35 +
 ecosystem/ai-tools/beacon/test-utils/render.tsx    |    30 +
 ecosystem/ai-tools/beacon/theme.ts                 |    93 +
 ecosystem/ai-tools/beacon/tsconfig.json            |    50 +
 .../beacon/types/codemirror__lang-javascript.d.ts  |    27 +
 ecosystem/ai-tools/beacon/types/next-auth.d.ts     |    33 +
 .../ai-tools/beacon/types/react-markdown.d.ts      |    32 +
 .../beacon/types/react-syntax-highlighter.d.ts     |    37 +
 ecosystem/cache/resilient-node-cache/README.md     |   204 +
 .../cache/resilient-node-cache/dev/check-license   |    86 +
 .../cache/resilient-node-cache/package-lock.json   |  4133 +++
 ecosystem/cache/resilient-node-cache/package.json  |    55 +
 ecosystem/cache/resilient-node-cache/src/index.ts  |   397 +
 ecosystem/cache/resilient-node-cache/tsconfig.json |    30 +
 ecosystem/cache/resilient-python-cache/README.md   |   144 +
 .../cache/resilient-python-cache/dev/check-license |    86 +
 .../cache/resilient-python-cache/pyproject.toml    |    49 +
 .../resilient_python_cache/__init__.py             |    30 +
 .../resilient_python_cache/cache.py                |   307 +
 .../resilient_python_cache/config.py               |    39 +
 .../resilient_python_cache/exceptions.py           |    23 +
 ecosystem/deployment/ansible/README.md             |    38 +
 ecosystem/deployment/ansible/ansible.cfg           |    19 +
 ecosystem/deployment/ansible/dev/check-license     |    86 +
 ecosystem/deployment/ansible/dockerfile            |    57 +
 .../inventories/production/group_vars/all.yml      |    33 +
 .../ansible/inventories/production/hosts           |    22 +
 .../deployment/ansible/roles/common/tasks/main.yml |    55 +
 .../ansible/roles/crow/handlers/main.yml           |    29 +
 .../ansible/roles/crow/tasks/dependencies.yml      |    27 +
 .../deployment/ansible/roles/crow/tasks/main.yml   |    22 +
 .../ansible/roles/crow/tasks/service.yml           |    33 +
 .../roles/crow/templates/crow_service.service.j2   |    31 +
 .../ansible/roles/graphql/handlers/main.yml        |    29 +
 .../ansible/roles/graphql/tasks/dependencies.yml   |    49 +
 .../ansible/roles/graphql/tasks/main.yml           |    22 +
 .../ansible/roles/graphql/tasks/service.yml        |    33 +
 .../graphql/templates/graphql_service.service.j2   |    37 +
 .../ansible/roles/nginx/handlers/main.yml          |    30 +
 .../ansible/roles/nginx/tasks/configure.yml        |    35 +
 .../deployment/ansible/roles/nginx/tasks/main.yml  |    25 +
 .../nginx/templates/resilientdb_proxy.conf.j2      |    33 +
 .../ansible/roles/resilientdb/handlers/main.yml    |    27 +
 .../roles/resilientdb/tasks/dependencies.yml       |    48 +
 .../ansible/roles/resilientdb/tasks/main.yml       |    22 +
 .../roles/resilientdb/tasks/restart_node.yml       |    28 +
 .../ansible/roles/resilientdb/tasks/service.yml    |    98 +
 .../ansible/roles/resilientdb/templates/bazelrc.j2 |    20 +
 .../templates/resilientdb_client.service.j2        |    36 +
 .../templates/resilientdb_kv@.service.j2           |    36 +
 ecosystem/deployment/ansible/site.yml              |    30 +
 .../deployment/ansible/startup-services.service    |    28 +
 ecosystem/deployment/ansible/startup.sh            |    37 +
 ecosystem/deployment/orbit/CHANGES.md              |    26 +
 ecosystem/deployment/orbit/README.md               |    36 +
 ecosystem/deployment/orbit/bun.lockb               |   Bin 0 -> 97383 bytes
 ecosystem/deployment/orbit/components.json         |    33 +
 ecosystem/deployment/orbit/dev/check-license       |    86 +
 ecosystem/deployment/orbit/package.json            |    58 +
 ecosystem/deployment/orbit/postcss.config.js       |    25 +
 ecosystem/deployment/orbit/src-tauri/.gitignore    |    23 +
 ecosystem/deployment/orbit/src-tauri/Cargo.lock    |  4485 ++++
 ecosystem/deployment/orbit/src-tauri/Cargo.toml    |    40 +
 ecosystem/deployment/orbit/src-tauri/build.rs      |    22 +
 .../orbit/src-tauri/capabilities/default.json      |    27 +
 .../deployment/orbit/src-tauri/icons/128x128.png   |   Bin 0 -> 11059 bytes
 .../orbit/src-tauri/icons/128x128@2x.png           |   Bin 0 -> 23137 bytes
 .../deployment/orbit/src-tauri/icons/32x32.png     |   Bin 0 -> 2225 bytes
 .../orbit/src-tauri/icons/Square107x107Logo.png    |   Bin 0 -> 9202 bytes
 .../orbit/src-tauri/icons/Square142x142Logo.png    |   Bin 0 -> 12530 bytes
 .../orbit/src-tauri/icons/Square150x150Logo.png    |   Bin 0 -> 13032 bytes
 .../orbit/src-tauri/icons/Square284x284Logo.png    |   Bin 0 -> 25943 bytes
 .../orbit/src-tauri/icons/Square30x30Logo.png      |   Bin 0 -> 2078 bytes
 .../orbit/src-tauri/icons/Square310x310Logo.png    |   Bin 0 -> 28507 bytes
 .../orbit/src-tauri/icons/Square44x44Logo.png      |   Bin 0 -> 3419 bytes
 .../orbit/src-tauri/icons/Square71x71Logo.png      |   Bin 0 -> 6027 bytes
 .../orbit/src-tauri/icons/Square89x89Logo.png      |   Bin 0 -> 7551 bytes
 .../deployment/orbit/src-tauri/icons/StoreLogo.png |   Bin 0 -> 3971 bytes
 .../deployment/orbit/src-tauri/icons/icon.icns     |   Bin 0 -> 277003 bytes
 .../deployment/orbit/src-tauri/icons/icon.ico      |   Bin 0 -> 37710 bytes
 .../deployment/orbit/src-tauri/icons/icon.png      |   Bin 0 -> 49979 bytes
 .../deployment/orbit/src-tauri/src/commands.rs     |    23 +
 ecosystem/deployment/orbit/src-tauri/src/lib.rs    |    30 +
 ecosystem/deployment/orbit/src-tauri/src/main.rs   |   242 +
 .../deployment/orbit/src-tauri/tauri.conf.json     |    53 +
 ecosystem/deployment/orbit/src/app.css             |    94 +
 ecosystem/deployment/orbit/src/app.d.ts            |    32 +
 ecosystem/deployment/orbit/src/app.html            |    34 +
 .../deployment/orbit/src/lib/commands.svelte.ts    |    56 +
 .../orbit/src/lib/components/ui/badge/badge.svelte |    69 +
 .../orbit/src/lib/components/ui/badge/index.ts     |    21 +
 .../src/lib/components/ui/button/button.svelte     |    93 +
 .../orbit/src/lib/components/ui/button/index.ts    |    36 +
 .../src/lib/components/ui/card/card-content.svelte |    35 +
 .../lib/components/ui/card/card-description.svelte |    35 +
 .../src/lib/components/ui/card/card-footer.svelte  |    35 +
 .../src/lib/components/ui/card/card-header.svelte  |    35 +
 .../src/lib/components/ui/card/card-title.svelte   |    44 +
 .../orbit/src/lib/components/ui/card/card.svelte   |    39 +
 .../orbit/src/lib/components/ui/card/index.ts      |    41 +
 .../orbit/src/lib/components/ui/input/index.ts     |    26 +
 .../orbit/src/lib/components/ui/input/input.svelte |    41 +
 .../orbit/src/lib/components/ui/table/index.ts     |    47 +
 .../src/lib/components/ui/table/table-body.svelte  |    32 +
 .../lib/components/ui/table/table-caption.svelte   |    32 +
 .../src/lib/components/ui/table/table-cell.svelte  |    37 +
 .../lib/components/ui/table/table-footer.svelte    |    32 +
 .../src/lib/components/ui/table/table-head.svelte  |    38 +
 .../lib/components/ui/table/table-header.svelte    |    33 +
 .../src/lib/components/ui/table/table-row.svelte   |    41 +
 .../orbit/src/lib/components/ui/table/table.svelte |    34 +
 ecosystem/deployment/orbit/src/lib/index.ts        |    21 +
 ecosystem/deployment/orbit/src/lib/utils.ts        |    25 +
 .../deployment/orbit/src/routes/+layout.svelte     |    25 +
 ecosystem/deployment/orbit/src/routes/+layout.ts   |    21 +
 ecosystem/deployment/orbit/src/routes/+page.svelte |   331 +
 ecosystem/deployment/orbit/static/favicon.png      |   Bin 0 -> 1571 bytes
 ecosystem/deployment/orbit/svelte.config.js        |    37 +
 ecosystem/deployment/orbit/tailwind.config.ts      |   115 +
 ecosystem/deployment/orbit/tsconfig.json           |    35 +
 ecosystem/deployment/orbit/vite.config.ts          |    49 +
 ecosystem/graphql/.bazelrc                         |     5 +
 ecosystem/graphql/CNAME                            |     1 +
 ecosystem/graphql/Dockerfile                       |    66 +
 ecosystem/graphql/INSTALL.sh                       |    30 +
 ecosystem/graphql/README.md                        |   305 +
 ecosystem/graphql/WORKSPACE                        |   271 +
 ecosystem/graphql/app.py                           |   123 +
 ecosystem/graphql/docker-compose.yml               |    44 +
 ecosystem/graphql/docs/doxygen/.gitignore          |    22 +
 ecosystem/graphql/docs/doxygen/Doxyfile            |  2799 +++
 ecosystem/graphql/docs/doxygen/DoxygenLayout.xml   |   264 +
 .../graphql/docs/doxygen/doxygen_html_style.css    |    27 +
 ecosystem/graphql/docs/doxygen/header              |    79 +
 ecosystem/graphql/docs/doxygen/logo.png            |   Bin 0 -> 71672 bytes
 ecosystem/graphql/docs/nft_market.md               |   138 +
 ecosystem/graphql/docs/research.md                 |    50 +
 ecosystem/graphql/entrypoint.sh                    |    23 +
 ecosystem/graphql/get-pip.py                       |    19 +
 ecosystem/graphql/nginx.conf                       |    35 +
 ecosystem/graphql/requirements.txt                 |    70 +
 ecosystem/graphql/resdb_driver/__init__.py         |    21 +
 ecosystem/graphql/resdb_driver/connection.py       |   151 +
 ecosystem/graphql/resdb_driver/crypto.py           |    51 +
 ecosystem/graphql/resdb_driver/driver.py           |   543 +
 .../graphql/resdb_driver/driver_experiment.py      |   292 +
 ecosystem/graphql/resdb_driver/exceptions.py       |   199 +
 ecosystem/graphql/resdb_driver/offchain.py         |   353 +
 ecosystem/graphql/resdb_driver/pool.py             |    78 +
 ecosystem/graphql/resdb_driver/transaction.py      |  1275 +
 ecosystem/graphql/resdb_driver/transport.py        |   107 +
 ecosystem/graphql/resdb_driver/utils.py            |   139 +
 ecosystem/graphql/resdb_driver/validate.py         |    90 +
 ecosystem/graphql/service/http_server/BUILD        |    55 +
 ecosystem/graphql/service/http_server/README.md    |    56 +
 .../graphql/service/http_server/crow_service.cpp   |   541 +
 .../graphql/service/http_server/crow_service.h     |    58 +
 .../service/http_server/crow_service_main.cpp      |    39 +
 .../service/http_server/crow_service_test.cpp      |    96 +
 .../graphql/service/http_server/example/BUILD      |    35 +
 .../service/http_server/example/crow_example.cpp   |    44 +
 .../http_server/example/pistache_example.cpp       |    41 +
 .../service/http_server/sdk_transaction.cpp        |    39 +
 .../graphql/service/http_server/sdk_transaction.h  |    32 +
 .../service/http_server/server_config.config       |    40 +
 ecosystem/graphql/service/kv_service/BUILD         |    75 +
 ecosystem/graphql/service/kv_service/README.md     |    20 +
 ecosystem/graphql/service/kv_service/kv_server.cpp |    83 +
 .../service/kv_service/kv_service_tools.cpp        |    91 +
 .../kv_service/kv_service_transaction_manager.cpp  |    96 +
 .../kv_service/kv_service_transaction_manager.h    |    51 +
 ecosystem/graphql/service/kv_service/proto/BUILD   |    34 +
 .../service/kv_service/proto/kv_server.proto       |    44 +
 .../graphql/service/kv_service/py_verificator.cpp  |    98 +
 .../graphql/service/kv_service/py_verificator.h    |    34 +
 .../graphql/service/kv_service/resdb_kv_client.cpp |    79 +
 .../graphql/service/kv_service/resdb_kv_client.h   |    38 +
 ecosystem/graphql/service/pybind_sample/BUILD      |    30 +
 ecosystem/graphql/service/pybind_sample/README.md  |    40 +
 ecosystem/graphql/service/pybind_sample/client.cpp |    85 +
 .../graphql/service/pybind_sample/endpoint_test.py |    29 +
 .../graphql/service/pybind_sample/print_sample.py  |    21 +
 .../service/pybind_sample/validator_example.py     |    58 +
 ecosystem/graphql/service/sdk_validator/README.md  |    60 +
 .../service/sdk_validator/docs/nft_market.md       |   138 +
 .../graphql/service/sdk_validator/docs/research.md |    50 +
 .../graphql/service/sdk_validator/requirements.txt |    24 +
 .../sdk_validator/resdb_validator/__init__.py      |    25 +
 .../sdk_validator/resdb_validator/crypto.py        |    67 +
 .../sdk_validator/resdb_validator/exceptions.py    |   130 +
 .../service/sdk_validator/resdb_validator/lib.py   |   496 +
 .../sdk_validator/resdb_validator/memoize.py       |    76 +
 .../sdk_validator/resdb_validator/models.py        |    87 +
 .../sdk_validator/resdb_validator/transaction.py   |  1344 +
 .../service/sdk_validator/resdb_validator/utils.py |   179 +
 .../graphql/service/sdk_validator/validator.py     |    54 +
 .../service/tools/config/interface/client.config   |    27 +
 .../service/tools/config/interface/service.config  |    28 +
 .../service/tools/config/server/server.config      |    57 +
 .../service/tools/config/server/utxo_config.config |    27 +
 .../graphql/service/tools/data/cert/admin.key.pri  |     2 +
 .../graphql/service/tools/data/cert/admin.key.pub  |     2 +
 .../graphql/service/tools/data/cert/cert_1.cert    |   Bin 0 -> 166 bytes
 .../graphql/service/tools/data/cert/cert_2.cert    |     7 +
 .../graphql/service/tools/data/cert/cert_3.cert    |     7 +
 .../graphql/service/tools/data/cert/cert_4.cert    |     6 +
 .../graphql/service/tools/data/cert/cert_5.cert    |     8 +
 .../graphql/service/tools/data/cert/cert_6.cert    |   Bin 0 -> 166 bytes
 .../graphql/service/tools/data/cert/cert_7.cert    |     6 +
 .../graphql/service/tools/data/cert/cert_8.cert    |   Bin 0 -> 166 bytes
 .../graphql/service/tools/data/cert/cert_9.cert    |     7 +
 .../graphql/service/tools/data/cert/node1.key.pri  |     2 +
 .../graphql/service/tools/data/cert/node1.key.pub  |     3 +
 .../graphql/service/tools/data/cert/node2.key.pri  |     2 +
 .../graphql/service/tools/data/cert/node2.key.pub  |     2 +
 .../graphql/service/tools/data/cert/node3.key.pri  |   Bin 0 -> 36 bytes
 .../graphql/service/tools/data/cert/node3.key.pub  |     3 +
 .../graphql/service/tools/data/cert/node4.key.pri  |   Bin 0 -> 36 bytes
 .../graphql/service/tools/data/cert/node4.key.pub  |     2 +
 .../graphql/service/tools/data/cert/node5.key.pri  |     2 +
 .../graphql/service/tools/data/cert/node5.key.pub  |     3 +
 .../service/tools/data/cert/node6.key.key.pri      |     2 +
 .../service/tools/data/cert/node6.key.key.pub      |     2 +
 .../graphql/service/tools/data/cert/node6.key.pri  |     2 +
 .../graphql/service/tools/data/cert/node6.key.pub  |     2 +
 .../service/tools/data/cert/node7.key.key.pri      |     2 +
 .../service/tools/data/cert/node7.key.key.pub      |     2 +
 .../graphql/service/tools/data/cert/node7.key.pri  |     2 +
 .../graphql/service/tools/data/cert/node7.key.pub  |     2 +
 .../service/tools/data/cert/node8.key.key.pri      |     2 +
 .../service/tools/data/cert/node8.key.key.pub      |     2 +
 .../graphql/service/tools/data/cert/node8.key.pri  |     2 +
 .../graphql/service/tools/data/cert/node8.key.pub  |     2 +
 .../service/tools/data/cert/node9.key.key.pri      |     2 +
 .../service/tools/data/cert/node9.key.key.pub      |     2 +
 .../graphql/service/tools/data/cert/node9.key.pri  |     2 +
 .../graphql/service/tools/data/cert/node9.key.pub  |     2 +
 .../graphql/service/tools/start_kv_service_sdk.sh  |    34 +
 ecosystem/graphql/test_driver.py                   |    98 +
 ecosystem/graphql/test_driver_2.py                 |    99 +
 ecosystem/graphql/test_sdk.py                      |    99 +
 ecosystem/graphql/test_update_metadata.py          |   146 +
 ecosystem/graphql/third_party/BUILD                |    44 +
 ecosystem/graphql/third_party/asio.BUILD           |    39 +
 ecosystem/graphql/third_party/crow.BUILD           |    39 +
 ecosystem/graphql/third_party/json.BUILD           |    30 +
 ecosystem/graphql/third_party/rapidjson.BUILD      |    28 +
 ecosystem/graphql/wsgi.py                          |    23 +
 ecosystem/monitoring/reslens-middleware/README.md  |   108 +
 .../reslens-middleware/docker-compose.yml          |    67 +
 .../reslens-middleware/middleware/.dockerignore    |    23 +
 .../reslens-middleware/middleware/.env.example     |    26 +
 .../reslens-middleware/middleware/.prettierrc      |    23 +
 .../reslens-middleware/middleware/Dockerfile       |    43 +
 .../reslens-middleware/middleware/app.js           |    44 +
 .../middleware/controllers/explorer.js             |   241 +
 .../middleware/controllers/nodeExporter.js         |   268 +
 .../middleware/controllers/processExporter.js      |    68 +
 .../middleware/controllers/pyroscope.js            |   149 +
 .../middleware/controllers/statsExporter.js        |    99 +
 .../middleware/controllers/transactions.js         |   162 +
 .../reslens-middleware/middleware/cron/Dockerfile  |    36 +
 .../middleware/cron/syncTransactionHistory.js      |   368 +
 .../middleware/package-lock.json                   |  2965 +++
 .../reslens-middleware/middleware/package.json     |    57 +
 .../middleware/routes/explorer.js                  |    33 +
 .../middleware/routes/healthcheck.js               |    36 +
 .../middleware/routes/nodeExporter.js              |    36 +
 .../middleware/routes/pyroscope.js                 |    33 +
 .../middleware/routes/statsExporter.js             |    32 +
 .../middleware/routes/transactions.js              |    34 +
 .../reslens-middleware/middleware/server.js        |    30 +
 .../middleware/tmp/dummy_analysis.md               |    58 +
 .../middleware/utils/encoding.js                   |   119 +
 .../middleware/utils/envParser.js                  |    54 +
 .../reslens-middleware/middleware/utils/logger.js  |    33 +
 .../middleware/utils/pprofConverter.js             |   162 +
 .../middleware/utils/profileAnalyzer.js            |    73 +
 .../reslens-middleware/middleware/utils/time.js    |    89 +
 .../middleware/utils/urlHelper.js                  |    36 +
 .../reslens-middleware/process-exporter/Dockerfile |    28 +
 .../reslens-middleware/process-exporter/config.yml |    23 +
 .../reslens-middleware/pyroscope/Dockerfile        |    44 +
 .../pyroscope/connect_pyroscope.js                 |    45 +
 .../reslens-middleware/pyroscope/package.json      |    25 +
 ecosystem/monitoring/reslens/.asf.yaml             |    40 +
 ecosystem/monitoring/reslens/.eslintrc.json        |     3 +
 .../reslens/.github/workflows/license.yml          |    37 +
 .../monitoring/reslens/.github/workflows/loc.yml   |    61 +
 ecosystem/monitoring/reslens/.gitignore            |    43 +
 ecosystem/monitoring/reslens/.licenserc.yaml       |    22 +
 ecosystem/monitoring/reslens/.vscode/launch.json   |    15 +
 ecosystem/monitoring/reslens/.vscode/settings.json |     2 +
 ecosystem/monitoring/reslens/CODE_OF_CONDUCT.md    |    95 +
 ecosystem/monitoring/reslens/DISCLAIMER-WIP        |    21 +
 ecosystem/monitoring/reslens/INSTALLATION.md       |    60 +
 ecosystem/monitoring/reslens/INSTRUCTIONS.md       |    31 +
 ecosystem/monitoring/reslens/LICENSE               |   201 +
 ecosystem/monitoring/reslens/NOTICE                |     5 +
 ecosystem/monitoring/reslens/README.md             |   122 +
 ecosystem/monitoring/reslens/components.json       |    21 +
 .../docs/screenshots/flamegraph_get_method.png     |   Bin 0 -> 1856402 bytes
 .../reslens/docs/screenshots/reslens_dev_fg_sb.png |   Bin 0 -> 1595357 bytes
 .../screenshots/reslens_dev_fire_setvalues.png     |   Bin 0 -> 1810225 bytes
 .../docs/screenshots/reslens_dev_insepect.png      |   Bin 0 -> 1477297 bytes
 .../reslens/docs/screenshots/reslens_dev_mode.png  |   Bin 0 -> 1805714 bytes
 .../docs/screenshots/reslens_dev_sandwich_menu.png |   Bin 0 -> 1441688 bytes
 .../screenshots/reslens_dev_search_refresh.png     |   Bin 0 -> 1647105 bytes
 ecosystem/monitoring/reslens/eslint.config.js      |    48 +
 ecosystem/monitoring/reslens/index.html            |    37 +
 ecosystem/monitoring/reslens/package-lock.json     | 19468 +++++++++++++++
 ecosystem/monitoring/reslens/package.json          |   111 +
 ecosystem/monitoring/reslens/postcss.config.js     |    26 +
 ecosystem/monitoring/reslens/public/B.JPG          |   Bin 0 -> 104223 bytes
 ecosystem/monitoring/reslens/public/G.jpg          |   Bin 0 -> 36996 bytes
 ecosystem/monitoring/reslens/public/H.jpeg         |   Bin 0 -> 127824 bytes
 ecosystem/monitoring/reslens/public/K.jpg          |   Bin 0 -> 759980 bytes
 .../monitoring/reslens/public/Reslens logo old.png |   Bin 0 -> 22224 bytes
 .../monitoring/reslens/public/Reslens logo.svg     |    21 +
 ecosystem/monitoring/reslens/public/Reslens.png    |   Bin 0 -> 21200 bytes
 ecosystem/monitoring/reslens/public/try.JPG        |   Bin 0 -> 387384 bytes
 ecosystem/monitoring/reslens/public/vite.svg       |    21 +
 ecosystem/monitoring/reslens/src/App.css           |    70 +
 ecosystem/monitoring/reslens/src/App.tsx           |    58 +
 ecosystem/monitoring/reslens/src/assets/react.svg  |    21 +
 .../reslens/src/components/Authors/3d-card.tsx     |   179 +
 .../reslens/src/components/Authors/AuthorPage.tsx  |    86 +
 .../reslens/src/components/Authors/Authorcard.tsx  |    91 +
 .../monitoring/reslens/src/components/craft.tsx    |   376 +
 .../reslens/src/components/dashboard/dashboard.tsx |   188 +
 .../graphs/MemorySpecs/memoryMetricsGrid.tsx       |   358 +
 .../graphs/MemorySpecs/memoryTrackerPage.tsx       |    59 +
 .../graphs/MemorySpecs/storageEngineMetrics.tsx    |   534 +
 .../src/components/graphs/MemorySpecs/terminal.tsx |   154 +
 .../src/components/graphs/TransactionChart.tsx     |   217 +
 .../reslens/src/components/graphs/cpuCard.tsx      |    41 +
 .../reslens/src/components/graphs/dependency.tsx   |   171 +
 .../reslens/src/components/graphs/explorer.tsx     |   366 +
 .../reslens/src/components/graphs/flamegraph.tsx   |  1170 +
 .../reslens/src/components/graphs/lineGraph.tsx    |   383 +
 .../reslens/src/components/graphs/resView.tsx      |    63 +
 .../reslens/src/components/graphs/table.tsx        |   459 +
 .../src/components/home-page/PBFTFullView.tsx      |   136 +
 .../src/components/home-page/description.tsx       |    89 +
 .../reslens/src/components/home-page/hero.tsx      |    54 +
 .../reslens/src/components/home-page/homePage.tsx  |    48 +
 .../reslens/src/components/layout/PageLayout.tsx   |   151 +
 .../components/navigation/DashboardNavigation.tsx  |   137 +
 .../src/components/navigation/Navigation.tsx       |   150 +
 .../reslens/src/components/theme-provider.tsx      |    93 +
 .../monitoring/reslens/src/components/toggle.tsx   |    93 +
 .../reslens/src/components/ui/LineGraphChart.tsx   |   390 +
 .../reslens/src/components/ui/MarkdownRenderer.tsx |   201 +
 .../components/ui/PBFT graph/FullScreenButton.tsx  |    47 +
 .../components/ui/PBFT graph/PBFTVisualization.css |   139 +
 .../components/ui/PBFT graph/PBFTVisualization.tsx |   287 +
 .../reslens/src/components/ui/ScrollEffectHP.tsx   |   198 +
 .../monitoring/reslens/src/components/ui/alert.tsx |    79 +
 .../monitoring/reslens/src/components/ui/badge.tsx |    56 +
 .../reslens/src/components/ui/banner.tsx           |    50 +
 .../reslens/src/components/ui/button.tsx           |    77 +
 .../monitoring/reslens/src/components/ui/card.tsx  |   103 +
 .../reslens/src/components/ui/copyToClipboard.tsx  |    68 +
 .../reslens/src/components/ui/dialog.tsx           |   140 +
 .../reslens/src/components/ui/drawer.tsx           |   136 +
 .../reslens/src/components/ui/dropdown-menu.tsx    |   221 +
 .../reslens/src/components/ui/footer.tsx           |   120 +
 .../monitoring/reslens/src/components/ui/input.tsx |    42 +
 .../reslens/src/components/ui/loader.tsx           |    52 +
 .../reslens/src/components/ui/loading.tsx          |    32 +
 .../reslens/src/components/ui/navbar.tsx           |   129 +
 .../reslens/src/components/ui/not-found.tsx        |    58 +
 .../reslens/src/components/ui/progress.tsx         |    48 +
 .../reslens/src/components/ui/select.tsx           |   179 +
 .../reslens/src/components/ui/skeleton.tsx         |    35 +
 .../reslens/src/components/ui/starcardcta.tsx      |   200 +
 .../monitoring/reslens/src/components/ui/table.tsx |   140 +
 .../monitoring/reslens/src/components/ui/tabs.tsx  |    75 +
 .../monitoring/reslens/src/components/ui/toast.tsx |   149 +
 .../reslens/src/components/ui/toaster.tsx          |    55 +
 .../reslens/src/components/ui/tooltip.tsx          |    52 +
 .../monitoring/reslens/src/components/ui/tour.tsx  |   102 +
 .../reslens/src/contexts/ModeContext.tsx           |   172 +
 ecosystem/monitoring/reslens/src/hooks/context.ts  |    25 +
 .../monitoring/reslens/src/hooks/use-mobile.tsx    |    39 +
 .../monitoring/reslens/src/hooks/use-toast.ts      |   211 +
 .../monitoring/reslens/src/hooks/use-tour.tsx      |    85 +
 ecosystem/monitoring/reslens/src/index.css         |   171 +
 ecosystem/monitoring/reslens/src/lib/api.ts        |    37 +
 .../FlameGraph/FlameGraphComponent/CheckIcon.tsx   |    27 +
 .../FlameGraphComponent/ContextMenu.module.scss    |    12 +
 .../FlameGraphComponent/ContextMenu.spec.tsx       |    84 +
 .../FlameGraph/FlameGraphComponent/ContextMenu.tsx |    85 +
 .../ContextMenuHighlight.module.css                |     8 +
 .../FlameGraphComponent/ContextMenuHighlight.tsx   |    47 +
 .../FlameGraphComponent/DiffLegend.module.css      |    21 +
 .../FlameGraph/FlameGraphComponent/DiffLegend.tsx  |    52 +
 .../DiffLegendPaletteDropdown.module.css           |    40 +
 .../DiffLegendPaletteDropdown.tsx                  |   110 +
 .../FlameGraphComponent/Flamegraph.spec.ts         |   552 +
 .../FlameGraph/FlameGraphComponent/Flamegraph.ts   |   446 +
 .../FlameGraphComponent/Flamegraph_render.spec.tsx |   206 +
 .../FlameGraphComponent/Flamegraph_render.ts       |   478 +
 .../FlameGraphComponent/Header.module.css          |    27 +
 .../FlameGraph/FlameGraphComponent/Header.tsx      |    71 +
 .../FlameGraphComponent/Highlight.module.css       |     7 +
 .../FlameGraphComponent/Highlight.spec.tsx         |    53 +
 .../FlameGraph/FlameGraphComponent/Highlight.tsx   |    94 +
 .../FlameGraphComponent/LogoLink.module.scss       |    10 +
 .../FlameGraph/FlameGraphComponent/LogoLink.tsx    |   101 +
 ...shot-collapses-small-blocks-into-one-1-snap.png |   Bin 0 -> 52946 bytes
 ...-group-snapshot-works-with-diff-mode-1-snap.png |   Bin 0 -> 24121 bytes
 ...ot-works-with-highlighted-flamegraph-1-snap.png |   Bin 0 -> 16704 bytes
 ...napshot-works-with-normal-flamegraph-1-snap.png |   Bin 0 -> 14888 bytes
 ...up-snapshot-works-with-selected-node-1-snap.png |   Bin 0 -> 14018 bytes
 ...er-group-snapshot-focused-also-zooms-1-snap.png |   Bin 0 -> 13485 bytes
 ...ders-a-focused-node-in-the-beginning-1-snap.png |   Bin 0 -> 9275 bytes
 ...de-when-node-is-not-in-the-beginning-1-snap.png |   Bin 0 -> 9788 bytes
 ...enders-a-focused-node-zoom-top-level-1-snap.png |   Bin 0 -> 10284 bytes
 ...napshot-renders-a-complex-flamegraph-1-snap.png |   Bin 0 -> 56003 bytes
 ...hot-renders-a-double-diff-flamegraph-1-snap.png |   Bin 0 -> 25008 bytes
 ...ders-a-highlighted-double-flamegraph-1-snap.png |   Bin 0 -> 25613 bytes
 ...hot-renders-a-highlighted-flamegraph-1-snap.png |   Bin 0 -> 16243 bytes
 ...snapshot-renders-a-simple-flamegraph-1-snap.png |   Bin 0 -> 15700 bytes
 ...group-snapshot-renders-a-simple-tree-1-snap.png |   Bin 0 -> 14888 bytes
 ...snapshot-renders-a-zoomed-flamegraph-1-snap.png |   Bin 0 -> 15238 bytes
 ...-renders-a-zoomed-with-fit-mode-tail-1-snap.png |   Bin 0 -> 11730 bytes
 .../FlameGraphComponent/canvas.module.css          |     6 +
 .../FlameGraph/FlameGraphComponent/color.spec.ts   |   307 +
 .../FlameGraph/FlameGraphComponent/color.ts        |   167 +
 .../FlameGraph/FlameGraphComponent/colorPalette.ts |    58 +
 .../FlameGraph/FlameGraphComponent/constants.ts    |     5 +
 .../FlameGraph/FlameGraphComponent/index.spec.tsx  |   291 +
 .../FlameGraph/FlameGraphComponent/index.tsx       |   517 +
 .../FlameGraph/FlameGraphComponent/murmur3.ts      |    97 +
 .../FlameGraphComponent/styles.module.scss         |    10 +
 .../FlameGraph/FlameGraphComponent/testData.ts     |   427 +
 .../FlameGraph/FlameGraphComponent/utils.ts        |    31 +
 .../FlameGraph/FlameGraphComponent/viewTypes.ts    |     1 +
 .../flamegraph/FlameGraph/FlameGraphRenderer.tsx   |   607 +
 .../FlameGraph/FlamegraphRenderer.module.scss      |    93 +
 .../src/lib/flamegraph/FlameGraph/decode.ts        |    75 +
 .../src/lib/flamegraph/FlamegraphRenderer.tsx      |    40 +
 .../reslens/src/lib/flamegraph/Icons.tsx           |    74 +
 .../reslens/src/lib/flamegraph/ProfilerTable.tsx   |   478 +
 .../lib/flamegraph/SharedQueryInput.module.scss    |    82 +
 .../src/lib/flamegraph/SharedQueryInput.tsx        |   126 +
 .../reslens/src/lib/flamegraph/Toolbar.module.scss |   117 +
 .../reslens/src/lib/flamegraph/Toolbar.spec.tsx    |   217 +
 .../reslens/src/lib/flamegraph/Toolbar.tsx         |   452 +
 .../flamegraph/Tooltip/FlamegraphTooltip.spec.tsx  |    81 +
 .../lib/flamegraph/Tooltip/FlamegraphTooltip.tsx   |   257 +
 .../src/lib/flamegraph/Tooltip/LeftClickIcon.tsx   |    18 +
 .../src/lib/flamegraph/Tooltip/RightClickIcon.tsx  |    18 +
 .../lib/flamegraph/Tooltip/TableTooltip.spec.tsx   |    44 +
 .../src/lib/flamegraph/Tooltip/TableTooltip.tsx    |   145 +
 .../src/lib/flamegraph/Tooltip/Tooltip.module.scss |    71 +
 .../src/lib/flamegraph/Tooltip/Tooltip.spec.tsx    |   395 +
 .../reslens/src/lib/flamegraph/Tooltip/Tooltip.tsx |   375 +
 .../flamegraph/__snapshots__/Toolbar.spec.tsx.snap |   274 +
 .../convert/convertJaegerTraceToProfile.ts         |    97 +
 .../src/lib/flamegraph/convert/diffTwoProfiles.ts  |    81 +
 .../lib/flamegraph/convert/flamebearersToTree.ts   |    78 +
 .../convert/sandwichViewProfiles.spec.ts           |    65 +
 .../lib/flamegraph/convert/sandwichViewProfiles.ts |   188 +
 .../reslens/src/lib/flamegraph/convert/subtract.ts |    86 +
 .../reslens/src/lib/flamegraph/convert/testData.ts |   145 +
 .../src/lib/flamegraph/fitMode/fitMode.spec.ts     |    93 +
 .../reslens/src/lib/flamegraph/fitMode/fitMode.ts  |   122 +
 .../src/lib/flamegraph/format/format.spec.ts       |   291 +
 .../reslens/src/lib/flamegraph/format/format.ts    |   303 +
 .../reslens/src/lib/flamegraph/index.css           |     3 +
 .../reslens/src/lib/flamegraph/index.node.ts       |    19 +
 .../reslens/src/lib/flamegraph/index.spec.tsx      |   383 +
 .../reslens/src/lib/flamegraph/index.tsx           |    16 +
 .../reslens/src/lib/flamegraph/logo-v3-small.svg   |    32 +
 .../src/lib/flamegraph/sass/flamegraph.scss        |    14 +
 .../reslens/src/lib/flamegraph/search.spec.ts      |    11 +
 .../reslens/src/lib/flamegraph/search.ts           |     4 +
 ecosystem/monitoring/reslens/src/lib/utils.ts      |    54 +
 .../monitoring/reslens/src/lib/webapp/.eslintrc.js |    21 +
 .../monitoring/reslens/src/lib/webapp/CHANGELOG.md |  2524 ++
 .../monitoring/reslens/src/lib/webapp/README.md    |    78 +
 .../monitoring/reslens/src/lib/webapp/assets.go    |    14 +
 .../reslens/src/lib/webapp/assets_embedded.go      |    25 +
 .../reslens/src/lib/webapp/images/comment.svg      |    12 +
 .../reslens/src/lib/webapp/images/favicon.ico      |   Bin 0 -> 15406 bytes
 .../src/lib/webapp/images/logo-v3-small.png        |   Bin 0 -> 166611 bytes
 .../src/lib/webapp/images/logo-v3-small.svg        |    32 +
 .../components/AppSelector/AppSelector.module.scss |    42 +
 .../components/AppSelector/AppSelector.spec.tsx    |   184 +
 .../AppSelector/SelectButton.module.scss           |    55 +
 .../components/AppSelector/SelectButton.tsx        |    85 +
 .../javascript/components/AppSelector/index.tsx    |   238 +
 .../javascript/components/ChartTitle.module.scss   |    34 +
 .../webapp/javascript/components/ChartTitle.tsx    |    57 +
 .../lib/webapp/javascript/components/CheckIcon.tsx |    28 +
 .../webapp/javascript/components/Continuous.tsx    |    36 +
 .../components/CustomDatePicker.module.scss        |     7 +
 .../javascript/components/CustomDatePicker.tsx     |   138 +
 .../javascript/components/DateRangePicker.tsx      |   151 +
 .../javascript/components/ExportData.module.scss   |    56 +
 .../javascript/components/ExportData.spec.tsx      |   522 +
 .../webapp/javascript/components/ExportData.tsx    |   399 +
 .../javascript/components/FileList.module.scss     |    67 +
 .../lib/webapp/javascript/components/FileList.tsx  |   139 +
 .../webapp/javascript/components/Footer.spec.tsx   |   100 +
 .../lib/webapp/javascript/components/Footer.tsx    |   139 +
 .../components/Heatmap/Heatmap.module.scss         |   173 +
 .../javascript/components/Heatmap/Heatmap.spec.tsx |    67 +
 .../components/Heatmap/HeatmapTooltip.module.scss  |    29 +
 .../components/Heatmap/HeatmapTooltip.spec.tsx     |    28 +
 .../components/Heatmap/HeatmapTooltip.tsx          |   149 +
 .../javascript/components/Heatmap/constants.ts     |    23 +
 .../webapp/javascript/components/Heatmap/index.tsx |   298 +
 .../Heatmap/useHeatmapSelection.hook.spec.tsx      |    64 +
 .../components/Heatmap/useHeatmapSelection.hook.ts |   228 +
 .../webapp/javascript/components/Heatmap/utils.ts  |   138 +
 .../components/Modals/ConfirmDelete/index.tsx      |    41 +
 .../components/Modals/ModalWithInput/index.tsx     |    21 +
 .../webapp/javascript/components/Notifications.jsx |    34 +
 .../javascript/components/PageTitle.spec.tsx       |    25 +
 .../lib/webapp/javascript/components/PageTitle.tsx |    30 +
 .../components/ProfilerHeader.module.css           |    20 +
 .../lib/webapp/javascript/components/Protected.tsx |    35 +
 .../components/QueryInput/QueryInput.module.scss   |    67 +
 .../components/QueryInput/QueryInput.spec.tsx      |    45 +
 .../components/QueryInput/QueryInput.tsx           |   103 +
 .../webapp/javascript/components/RefreshButton.tsx |    19 +
 .../javascript/components/ServerNotifications.tsx  |    30 +
 .../components/Settings/APIKeys/APIKeyAddForm.tsx  |   156 +
 .../Settings/APIKeys/APIKeyForm.module.css         |     8 +
 .../components/Settings/APIKeys/index.tsx          |   116 +
 .../Settings/Apps/AppTableItem.module.css          |     9 +
 .../components/Settings/Apps/Apps.module.css       |    24 +
 .../components/Settings/Apps/getAppTableRows.tsx   |    72 +
 .../javascript/components/Settings/Apps/index.tsx  |   107 +
 .../components/Settings/Preferences/index.tsx      |    82 +
 .../Settings/Security/ChangePasswordForm.tsx       |    98 +
 .../components/Settings/Security/index.tsx         |    18 +
 .../components/Settings/Settings.module.css        |    49 +
 .../components/Settings/SettingsTable.module.scss  |    41 +
 .../components/Settings/Users/UserAddForm.tsx      |   106 +
 .../Settings/Users/UserTableItem.module.css        |    20 +
 .../components/Settings/Users/Users.module.css     |    23 +
 .../components/Settings/Users/getUserTableRows.tsx |   109 +
 .../javascript/components/Settings/Users/index.tsx |   145 +
 .../javascript/components/Settings/index.tsx       |   167 +
 .../components/SideTimelineComparator/index.tsx    |   237 +
 .../components/SideTimelineComparator/periods.ts   |    32 +
 .../SideTimelineComparator/styles.module.scss      |   132 +
 .../javascript/components/Sidebar.module.css       |    33 +
 .../webapp/javascript/components/Sidebar.spec.tsx  |    78 +
 .../lib/webapp/javascript/components/Sidebar.tsx   |   350 +
 .../javascript/components/SidebarCustomIcons.tsx   |    50 +
 .../javascript/components/TagsBar.module.scss      |     6 +
 .../lib/webapp/javascript/components/TagsBar.tsx   |   235 +
 .../TimelineChart/AnnotationMark/index.tsx         |    74 +
 .../AnnotationMark/styles.module.scss              |    23 +
 .../TimelineChart/Annotations.plugin.tsx           |   125 +
 .../TimelineChart/ContextMenu.plugin.tsx           |    84 +
 .../TimelineChart/ExploreTooltip/index.tsx         |    64 +
 .../components/TimelineChart/Selection.plugin.ts   |   619 +
 .../SyncTimelines/SyncTimelines.spec.tsx           |   151 +
 .../SyncTimelines/getSelectionBoundaries.ts        |    22 +
 .../TimelineChart/SyncTimelines/index.tsx          |    68 +
 .../TimelineChart/SyncTimelines/styles.module.scss |    14 +
 .../TimelineChart/SyncTimelines/useSync.ts         |   105 +
 .../components/TimelineChart/TimelineChart.tsx     |    58 +
 .../TimelineChart/TimelineChartPlugin.ts           |   209 +
 .../TimelineChart/TimelineChartWrapper.module.css  |     3 +
 .../TimelineChart/TimelineChartWrapper.tsx         |   501 +
 .../components/TimelineChart/Tooltip.plugin.tsx    |   156 +
 .../TimelineChart/TooltipWrapper/index.tsx         |    46 +
 .../TooltipWrapper/styles.module.scss              |    24 +
 .../components/TimelineChart/centerTimelineData.ts |    30 +
 .../components/TimelineChart/clamp.spec.ts         |    13 +
 .../javascript/components/TimelineChart/clamp.ts   |    12 +
 .../components/TimelineChart/extractRange.ts       |    45 +
 .../TimelineChart/getFormatLabel.spec.ts           |    43 +
 .../components/TimelineChart/getFormatLabel.ts     |    33 +
 .../components/TimelineChart/injectTooltip.ts      |     9 +
 .../components/TimelineChart/markings.spec.ts      |    84 +
 .../components/TimelineChart/markings.ts           |    75 +
 .../components/TimelineTooltip.module.css          |    22 +
 .../javascript/components/TimelineTooltip.tsx      |    54 +
 .../lib/webapp/javascript/components/Toolbar.tsx   |    32 +
 .../components/exportToFlamegraphDotCom.hook.ts    |    33 +
 .../reslens/src/lib/webapp/javascript/globals.tsx  |    10 +
 .../lib/webapp/javascript/hooks/colorMode.hook.ts  |    23 +
 .../javascript/hooks/flamegraphSharedQuery.hook.ts |    22 +
 .../hooks/navigateUserIntroPages.hook.ts           |    26 +
 .../hooks/populateLeftRightQuery.hook.ts           |    33 +
 .../src/lib/webapp/javascript/hooks/tags.hook.ts   |    46 +
 .../lib/webapp/javascript/hooks/timeZone.hook.ts   |    48 +
 .../lib/webapp/javascript/hooks/timeline.hook.ts   |    48 +
 .../reslens/src/lib/webapp/javascript/index.tsx    |   160 +
 .../src/lib/webapp/javascript/models/adhoc.ts      |    12 +
 .../src/lib/webapp/javascript/models/annotation.ts |     9 +
 .../src/lib/webapp/javascript/models/apikeys.ts    |    17 +
 .../src/lib/webapp/javascript/models/app.ts        |    13 +
 .../src/lib/webapp/javascript/models/appNames.ts   |     5 +
 .../lib/webapp/javascript/models/flamebearer.ts    |   126 +
 .../javascript/models/flamegraphDotComResponse.ts  |    15 +
 .../src/lib/webapp/javascript/models/query.ts      |    32 +
 .../src/lib/webapp/javascript/models/tags.ts       |    10 +
 .../src/lib/webapp/javascript/models/targets.ts    |    17 +
 .../src/lib/webapp/javascript/models/timeline.ts   |    16 +
 .../src/lib/webapp/javascript/models/users.ts      |    42 +
 .../src/lib/webapp/javascript/models/utils.spec.ts |    21 +
 .../src/lib/webapp/javascript/models/utils.ts      |    20 +
 .../pages/ContinuousComparison.module.css          |    19 +
 .../javascript/pages/ContinuousComparisonView.tsx  |   369 +
 .../webapp/javascript/pages/ContinuousDiffView.tsx |   242 +
 .../javascript/pages/ContinuousSingleView.tsx      |   263 +
 .../pages/IntroPages/Divider/Divider.module.css    |    23 +
 .../javascript/pages/IntroPages/Divider/index.tsx  |    18 +
 .../pages/IntroPages/Forbidden/index.tsx           |    23 +
 .../webapp/javascript/pages/IntroPages/Icons.tsx   |    39 +
 .../pages/IntroPages/InputGroup.module.css         |    13 +
 .../pages/IntroPages/IntroPages.module.css         |   125 +
 .../javascript/pages/IntroPages/NotFound/index.tsx |    23 +
 .../pages/IntroPages/SignIn/buttons.module.css     |    51 +
 .../javascript/pages/IntroPages/SignIn/index.tsx   |   178 +
 .../javascript/pages/IntroPages/SignUp/index.tsx   |   140 +
 .../javascript/pages/ServiceDiscovery.module.scss  |   111 +
 .../webapp/javascript/pages/ServiceDiscovery.tsx   |   218 +
 .../javascript/pages/TagExplorerView.module.scss   |   159 +
 .../webapp/javascript/pages/TagExplorerView.tsx    |   728 +
 .../javascript/pages/TracingSingleView.module.scss |     3 +
 .../webapp/javascript/pages/TracingSingleView.tsx  |   115 +
 .../javascript/pages/adhoc/Adhoc.module.scss       |     7 +
 .../pages/adhoc/AdhocComparison.module.scss        |    12 +
 .../javascript/pages/adhoc/AdhocComparison.tsx     |   174 +
 .../webapp/javascript/pages/adhoc/AdhocDiff.tsx    |   168 +
 .../webapp/javascript/pages/adhoc/AdhocSingle.tsx  |   100 +
 .../adhoc/components/FileUploader.module.scss      |    88 +
 .../pages/adhoc/components/FileUploader.tsx        |   142 +
 .../pages/adhoc/components/UploadIcon.tsx          |    13 +
 .../javascript/pages/adhoc/components/humanize.ts  |    52 +
 .../src/lib/webapp/javascript/pages/constants.ts   |    20 +
 .../contextMenu/AddAnnotation.menuitem.tsx         |   105 +
 .../continuous/contextMenu/AnnotationInfo.tsx      |    71 +
 .../pages/continuous/contextMenu/ContextMenu.tsx   |    36 +
 .../continuous/contextMenu/useAnnotationForm.ts    |    48 +
 .../exemplars/ExemplarsSingleView.module.scss      |    41 +
 .../pages/exemplars/ExemplarsSingleView.tsx        |   397 +
 .../javascript/pages/exemplars/HeatmapIcons.tsx    |   145 +
 .../javascript/pages/exemplars/filterNonCPU.ts     |    59 +
 .../pages/exemplars/filterNonCpu.spec.ts           |    33 +
 .../pages/exemplars/heatmapSelectionPreview.gif    |   Bin 0 -> 299039 bytes
 .../javascript/pages/formatTableData.spec.ts       |    68 +
 .../lib/webapp/javascript/pages/formatTableData.ts |    89 +
 .../webapp/javascript/pages/formatTitle.spec.ts    |    29 +
 .../src/lib/webapp/javascript/pages/formatTitle.ts |    41 +
 .../src/lib/webapp/javascript/pages/loading.ts     |    10 +
 .../src/lib/webapp/javascript/pages/math.spec.ts   |    18 +
 .../src/lib/webapp/javascript/pages/math.ts        |    19 +
 .../tagExplorer/components/Legend.module.scss      |    23 +
 .../pages/tagExplorer/components/Legend.spec.tsx   |    64 +
 .../pages/tagExplorer/components/Legend.tsx        |    49 +
 .../components/TagsSelector.module.scss            |    51 +
 .../tagExplorer/components/TagsSelector.spec.tsx   |    82 +
 .../pages/tagExplorer/components/TagsSelector.tsx  |   148 +
 .../PieChart/Interactivity.plugin.ts               |    76 +
 .../TotalSamplesChart/PieChart/index.tsx           |   102 +
 .../TotalSamplesChart/PieChart/styles.module.scss  |    12 +
 .../TotalSamplesChart/PieChartTooltip/index.tsx    |    32 +
 .../PieChartTooltip/styles.module.scss             |    25 +
 .../components/TotalSamplesChart/index.module.scss |     5 +
 .../components/TotalSamplesChart/index.tsx         |    66 +
 .../src/lib/webapp/javascript/redux/async-thunk.ts |    20 +
 .../src/lib/webapp/javascript/redux/hooks.ts       |     6 +
 .../lib/webapp/javascript/redux/reducers/adhoc.ts  |   276 +
 .../webapp/javascript/redux/reducers/continuous.ts |   497 +
 .../reducers/continuous/annotations.thunks.ts      |    27 +
 .../reducers/continuous/comparisonView.thunks.ts   |    85 +
 .../redux/reducers/continuous/diffView.thunks.ts   |    54 +
 .../redux/reducers/continuous/selectors.ts         |    85 +
 .../redux/reducers/continuous/singleView.thunks.ts |    41 +
 .../javascript/redux/reducers/continuous/state.ts  |   155 +
 .../reducers/continuous/tagExplorer.thunks.ts      |   112 +
 .../redux/reducers/continuous/tags.thunks.ts       |   177 +
 .../redux/reducers/continuous/timelines.thunks.ts  |    75 +
 .../javascript/redux/reducers/notifications.ts     |    25 +
 .../javascript/redux/reducers/serviceDiscovery.ts  |    58 +
 .../webapp/javascript/redux/reducers/settings.ts   |   359 +
 .../webapp/javascript/redux/reducers/tracing.ts    |   391 +
 .../src/lib/webapp/javascript/redux/reducers/ui.ts |   102 +
 .../lib/webapp/javascript/redux/reducers/user.ts   |   129 +
 .../src/lib/webapp/javascript/redux/store.ts       |   160 +
 .../src/lib/webapp/javascript/services/TestData.ts |    31 +
 .../src/lib/webapp/javascript/services/adhoc.ts    |   134 +
 .../lib/webapp/javascript/services/annotations.ts  |    20 +
 .../src/lib/webapp/javascript/services/apiKeys.ts  |    48 +
 .../src/lib/webapp/javascript/services/apps.ts     |    37 +
 .../lib/webapp/javascript/services/base.spec.ts    |   253 +
 .../src/lib/webapp/javascript/services/base.ts     |   223 +
 .../javascript/services/exemplarsTestData.ts       |   252 +
 .../src/lib/webapp/javascript/services/render.ts   |   374 +
 .../webapp/javascript/services/serviceDiscovery.ts |    18 +
 .../lib/webapp/javascript/services/share.spec.ts   |    54 +
 .../src/lib/webapp/javascript/services/share.ts    |    45 +
 .../src/lib/webapp/javascript/services/tags.ts     |    33 +
 .../lib/webapp/javascript/services/testUtils.ts    |     4 +
 .../javascript/services/testdata/example.html      |    55 +
 .../lib/webapp/javascript/services/tsconfig.json   |     8 +
 .../src/lib/webapp/javascript/services/users.ts    |   185 +
 .../src/lib/webapp/javascript/standalone.tsx       |    41 +
 .../src/lib/webapp/javascript/types/custom.d.ts    |    46 +
 .../src/lib/webapp/javascript/types/flot.d.ts      |    19 +
 .../src/lib/webapp/javascript/ui/Box.module.scss   |    57 +
 .../reslens/src/lib/webapp/javascript/ui/Box.tsx   |    66 +
 .../lib/webapp/javascript/ui/Button.module.scss    |   129 +
 .../src/lib/webapp/javascript/ui/Button.tsx        |   128 +
 .../webapp/javascript/ui/Dialog/Dialog.module.css  |    93 +
 .../src/lib/webapp/javascript/ui/Dialog/Dialog.tsx |    98 +
 .../src/lib/webapp/javascript/ui/Dialog/index.ts   |     1 +
 .../lib/webapp/javascript/ui/Dropdown.module.scss  |    65 +
 .../src/lib/webapp/javascript/ui/Dropdown.tsx      |   109 +
 .../javascript/ui/Form/TextField/index.module.scss |    31 +
 .../webapp/javascript/ui/Form/TextField/index.tsx  |    46 +
 .../ui/Form/ValidationError/index.module.css       |     7 +
 .../javascript/ui/Form/ValidationError/index.tsx   |    18 +
 .../reslens/src/lib/webapp/javascript/ui/Icon.tsx  |    13 +
 .../src/lib/webapp/javascript/ui/Input.module.scss |    15 +
 .../reslens/src/lib/webapp/javascript/ui/Input.tsx |    55 +
 .../javascript/ui/InputField/InputField.module.css |    12 +
 .../lib/webapp/javascript/ui/InputField/index.tsx  |    44 +
 .../webapp/javascript/ui/LoadingOverlay.module.css |    20 +
 .../lib/webapp/javascript/ui/LoadingOverlay.tsx    |    57 +
 .../lib/webapp/javascript/ui/LoadingSpinner.tsx    |    42 +
 .../reslens/src/lib/webapp/javascript/ui/Menu.tsx  |     9 +
 .../webapp/javascript/ui/Modals/Modal.module.css   |    31 +
 .../ui/Modals/ModalWithToggle.module.scss          |    58 +
 .../javascript/ui/Modals/ModalWithToggle.tsx       |    87 +
 .../javascript/ui/Modals/ModalWithToggler.spec.tsx |    75 +
 .../src/lib/webapp/javascript/ui/Modals/index.ts   |    80 +
 .../webapp/javascript/ui/NoData/NoData.module.scss |     6 +
 .../webapp/javascript/ui/NoData/NoData.spec.tsx    |    14 +
 .../src/lib/webapp/javascript/ui/NoData/index.tsx  |    11 +
 .../webapp/javascript/ui/Notifications.module.scss |    15 +
 .../src/lib/webapp/javascript/ui/Notifications.tsx |    87 +
 .../lib/webapp/javascript/ui/Popover.module.scss   |    29 +
 .../src/lib/webapp/javascript/ui/Popover.tsx       |   114 +
 .../src/lib/webapp/javascript/ui/Portal.tsx        |     4 +
 .../lib/webapp/javascript/ui/Select.module.scss    |    17 +
 .../src/lib/webapp/javascript/ui/Select.tsx        |    41 +
 .../src/lib/webapp/javascript/ui/Sidebar.scss      |   140 +
 .../src/lib/webapp/javascript/ui/Sidebar.tsx       |    78 +
 .../ui/StatusMessage/StatusMessage.module.scss     |    39 +
 .../webapp/javascript/ui/StatusMessage/index.tsx   |    42 +
 .../src/lib/webapp/javascript/ui/Table.module.scss |    77 +
 .../src/lib/webapp/javascript/ui/Table.spec.tsx    |    63 +
 .../reslens/src/lib/webapp/javascript/ui/Table.tsx |   179 +
 .../src/lib/webapp/javascript/ui/Tabs.module.scss  |    20 +
 .../src/lib/webapp/javascript/ui/Tabs.spec.tsx     |    44 +
 .../reslens/src/lib/webapp/javascript/ui/Tabs.tsx  |    50 +
 .../lib/webapp/javascript/ui/Tooltip.module.scss   |   110 +
 .../src/lib/webapp/javascript/ui/Tooltip.tsx       |    31 +
 .../javascript/ui/TooltipInfoIcon.module.scss      |     5 +
 .../lib/webapp/javascript/ui/TooltipInfoIcon.tsx   |    21 +
 .../src/lib/webapp/javascript/util/baseurl.spec.ts |    64 +
 .../src/lib/webapp/javascript/util/baseurl.ts      |    21 +
 .../src/lib/webapp/javascript/util/buildInfo.ts    |    51 +
 .../src/lib/webapp/javascript/util/features.ts     |    45 +
 .../src/lib/webapp/javascript/util/flamebearer.ts  |    24 +
 .../lib/webapp/javascript/util/formatDate.spec.ts  |   126 +
 .../src/lib/webapp/javascript/util/formatDate.ts   |   140 +
 .../reslens/src/lib/webapp/javascript/util/fp.ts   |    13 +
 .../src/lib/webapp/javascript/util/handleError.ts  |    35 +
 .../src/lib/webapp/javascript/util/history.ts      |     8 +
 .../src/lib/webapp/javascript/util/prism.ts        |   102 +
 .../src/lib/webapp/javascript/util/query.ts        |    19 +
 .../lib/webapp/javascript/util/randomId.spec.ts    |     7 +
 .../src/lib/webapp/javascript/util/randomId.ts     |    23 +
 .../src/lib/webapp/javascript/util/testData.ts     |    50 +
 .../src/lib/webapp/javascript/util/timerange.ts    |    15 +
 .../lib/webapp/javascript/util/updateRequests.ts   |    43 +
 .../monitoring/reslens/src/lib/webapp/package.json |    19 +
 .../reslens/src/lib/webapp/public/.gitkeep         |     0
 .../reslens/src/lib/webapp/sass/common.scss        |   181 +
 .../src/lib/webapp/sass/components/button.scss     |    41 +
 .../webapp/sass/components/daterangepicker.scss    |   149 +
 .../src/lib/webapp/sass/components/labels.scss     |    82 +
 .../src/lib/webapp/sass/components/tagsbar.scss    |    24 +
 .../reslens/src/lib/webapp/sass/login.scss         |   232 +
 .../src/lib/webapp/sass/mixins/outline.scss        |    11 +
 .../reslens/src/lib/webapp/sass/prism.scss         |   131 +
 .../reslens/src/lib/webapp/sass/profile.scss       |   264 +
 .../reslens/src/lib/webapp/sass/reset.scss         |    11 +
 .../src/lib/webapp/sass/sanitize.css/CHANGELOG.md  |   218 +
 .../src/lib/webapp/sass/sanitize.css/LICENSE.md    |   108 +
 .../src/lib/webapp/sass/sanitize.css/README.md     |   379 +
 .../src/lib/webapp/sass/sanitize.css/forms.css     |    52 +
 .../src/lib/webapp/sass/sanitize.css/package.json  |    53 +
 .../src/lib/webapp/sass/sanitize.css/page.css      |    26 +
 .../src/lib/webapp/sass/sanitize.css/sanitize.css  |   566 +
 .../lib/webapp/sass/sanitize.css/typography.css    |    29 +
 .../reslens/src/lib/webapp/sass/standalone.scss    |     4 +
 .../reslens/src/lib/webapp/sass/variables.css      |   142 +
 .../reslens/src/lib/webapp/sass/variables.scss     |    74 +
 .../reslens/src/lib/webapp/templates/index.html    |    41 +
 .../src/lib/webapp/templates/standalone.html       |    15 +
 .../reslens/src/lib/webapp/traces/traceSample.json |  4058 +++
 .../reslens/src/lib/webapp/tsconfig.json           |    17 +
 ecosystem/monitoring/reslens/src/main.tsx          |    30 +
 ecosystem/monitoring/reslens/src/pages/CpuPage.tsx |    34 +
 .../monitoring/reslens/src/pages/ExplorerPage.tsx  |    30 +
 .../reslens/src/pages/FlamegraphPage.tsx           |    36 +
 .../monitoring/reslens/src/pages/MemoryPage.tsx    |    30 +
 .../monitoring/reslens/src/pages/ResViewPage.tsx   |    30 +
 .../monitoring/reslens/src/static/MemoryStats.ts   |  3229 +++
 .../reslens/src/static/dependencyGraphData.ts      |   466 +
 .../monitoring/reslens/src/static/encoding.ts      |   121 +
 .../reslens/src/static/processCpuChartData.ts      |  3113 +++
 .../reslens/src/static/testFlamegraph.ts           |  9285 +++++++
 .../reslens/src/static/transactionHistory.ts       |  1198 +
 ecosystem/monitoring/reslens/src/static/url.ts     |    21 +
 ecosystem/monitoring/reslens/src/vite-env.d.ts     |    21 +
 ecosystem/monitoring/reslens/tailwind.config.ts    |    96 +
 ecosystem/monitoring/reslens/tsconfig.app.json     |    34 +
 ecosystem/monitoring/reslens/tsconfig.json         |    18 +
 ecosystem/monitoring/reslens/tsconfig.node.json    |    24 +
 ecosystem/monitoring/reslens/vercel.json           |    10 +
 ecosystem/monitoring/reslens/vite.config.ts        |    33 +
 ecosystem/sdk/resdb-orm/INSTALL.sh                 |   217 +
 ecosystem/sdk/resdb-orm/MANIFEST.in                |    21 +
 ecosystem/sdk/resdb-orm/README.md                  |   124 +
 ecosystem/sdk/resdb-orm/config.yaml                |    17 +
 ecosystem/sdk/resdb-orm/dev/check-license          |    86 +
 ecosystem/sdk/resdb-orm/requirements.txt           |    18 +
 ecosystem/sdk/resdb-orm/resdb_orm/__init__.py      |    16 +
 ecosystem/sdk/resdb-orm/resdb_orm/orm.py           |    94 +
 ecosystem/sdk/resdb-orm/setup.py                   |    41 +
 ecosystem/sdk/resdb-orm/tests/test.py              |    42 +
 ecosystem/sdk/resvault-sdk/README.md               |   128 +
 ecosystem/sdk/resvault-sdk/dev/check-license       |    86 +
 ecosystem/sdk/resvault-sdk/package-lock.json       |    29 +
 ecosystem/sdk/resvault-sdk/package.json            |    31 +
 ecosystem/sdk/resvault-sdk/src/resvault-sdk.ts     |   149 +
 ecosystem/sdk/resvault-sdk/tsconfig.json           |    64 +
 ecosystem/sdk/rust-sdk/.asf.yaml                   |    42 +
 .../sdk/rust-sdk/.github/workflows/license.yml     |    37 +
 ecosystem/sdk/rust-sdk/.github/workflows/rust.yml  |    41 +
 ecosystem/sdk/rust-sdk/Cargo.toml                  |    45 +
 ecosystem/sdk/rust-sdk/README.md                   |    87 +
 ecosystem/sdk/rust-sdk/dev/check-license           |    86 +
 ecosystem/sdk/rust-sdk/src/blocks.rs               |   142 +
 ecosystem/sdk/rust-sdk/src/crypto.rs               |    55 +
 ecosystem/sdk/rust-sdk/src/lib.rs                  |    33 +
 ecosystem/sdk/rust-sdk/src/resdb.rs                |   423 +
 ecosystem/sdk/rust-sdk/src/transaction.rs          |   149 +
 ecosystem/sdk/rust-sdk/test/Cargo.toml             |    28 +
 ecosystem/sdk/rust-sdk/test/src/main.rs            |   286 +
 ecosystem/sdk/rust-sdk/test/src/models.rs          |   164 +
 ecosystem/smart-contract/rescontract/README.md     |   209 +
 ecosystem/smart-contract/rescontract/config.js     |    59 +
 ecosystem/smart-contract/rescontract/config.yaml   |    16 +
 .../smart-contract/rescontract/dev/check-license   |    86 +
 ecosystem/smart-contract/rescontract/index.js      |   421 +
 ecosystem/smart-contract/rescontract/logger.js     |    46 +
 .../smart-contract/rescontract/package-lock.json   |   852 +
 ecosystem/smart-contract/rescontract/package.json  |    43 +
 .../rescontract/scripts/postinstall.js             |    67 +
 ecosystem/smart-contract/rescontract/token.sol     |    48 +
 .../resilient-contract-kit/README.md               |    20 +
 .../resilient-contract-kit/dev/check-license       |    86 +
 .../resilient-contract-kit/jest.config.js          |    32 +
 .../resilient-contract-kit/package.json            |    43 +
 .../resilient-contract-kit/src/graphql-client.ts   |    28 +
 .../resilient-contract-kit/src/index.ts            |    59 +
 .../resilient-contract-kit/src/utils.ts            |    29 +
 .../tests/executeSmartContract.test.ts             |    43 +
 .../tests/integration.test.ts                      |    35 +
 .../resilient-contract-kit/tsconfig.json           |    30 +
 .../smart-contract-graphql/INSTALL.sh              |    70 +
 .../smart-contract-graphql/README.md               |   368 +
 .../smart-contract-graphql/cli-functions.js        |   242 +
 .../smart-contract-graphql/config.yaml             |    16 +
 .../smart-contract-graphql/dev/check-license       |    86 +
 .../smart-contract-graphql/logger.js               |    47 +
 .../smart-contract-graphql/package.json            |    51 +
 .../smart-contract-graphql/schema.js               |   157 +
 .../smart-contract-graphql/server.js               |    45 +
 .../smart-contract-graphql/test/server.test.js     |    46 +
 .../smart-contract-graphql/token.sol               |    48 +
 ecosystem/tools/create-resilient-app/README.md     |   130 +
 .../tools/create-resilient-app/dev/check-license   |    86 +
 ecosystem/tools/create-resilient-app/package.json  |    55 +
 .../tools/create-resilient-app/src/add-shebang.ts  |    46 +
 ecosystem/tools/create-resilient-app/src/index.ts  |   140 +
 .../templates/react-js-resvault-sdk/README.md      |    89 +
 .../templates/react-js-resvault-sdk/package.json   |    61 +
 .../react-js-resvault-sdk/public/favicon.ico       |   Bin 0 -> 3870 bytes
 .../react-js-resvault-sdk/public/index.html        |    62 +
 .../react-js-resvault-sdk/public/logo192.png       |   Bin 0 -> 5347 bytes
 .../react-js-resvault-sdk/public/logo512.png       |   Bin 0 -> 9664 bytes
 .../react-js-resvault-sdk/public/manifest.json     |    41 +
 .../react-js-resvault-sdk/public/robots.txt        |    23 +
 .../templates/react-js-resvault-sdk/src/App.css    |   192 +
 .../templates/react-js-resvault-sdk/src/App.js     |    69 +
 .../src/assets/images/animation.json               |    17 +
 .../react-js-resvault-sdk/src/assets/images/bg.svg |    17 +
 .../src/assets/images/resilientdb.svg              |    31 +
 .../react-js-resvault-sdk/src/components/Loader.js |    32 +
 .../react-js-resvault-sdk/src/components/Login.js  |   160 +
 .../src/components/NotificationModal.js            |    41 +
 .../src/components/TransactionForm.js              |   183 +
 .../templates/react-js-resvault-sdk/src/index.css  |    32 +
 .../templates/react-js-resvault-sdk/src/index.js   |    30 +
 .../templates/react-js-resvault-sdk/src/logo.svg   |    17 +
 .../react-js-resvault-sdk/src/setupTests.js        |    24 +
 .../templates/react-ts-resvault-sdk/README.md      |    66 +
 .../templates/react-ts-resvault-sdk/package.json   |    72 +
 .../react-ts-resvault-sdk/public/favicon.ico       |   Bin 0 -> 3870 bytes
 .../react-ts-resvault-sdk/public/index.html        |    62 +
 .../react-ts-resvault-sdk/public/logo192.png       |   Bin 0 -> 5347 bytes
 .../react-ts-resvault-sdk/public/logo512.png       |   Bin 0 -> 9664 bytes
 .../react-ts-resvault-sdk/public/manifest.json     |    41 +
 .../react-ts-resvault-sdk/public/robots.txt        |    23 +
 .../templates/react-ts-resvault-sdk/src/App.css    |   192 +
 .../templates/react-ts-resvault-sdk/src/App.tsx    |    69 +
 .../src/assets/images/animation.json               |    17 +
 .../react-ts-resvault-sdk/src/assets/images/bg.svg |    17 +
 .../src/assets/images/resilientdb.svg              |    31 +
 .../src/components/Loader.tsx                      |    32 +
 .../react-ts-resvault-sdk/src/components/Login.tsx |   154 +
 .../src/components/NotificationModal.tsx           |    48 +
 .../src/components/TransactionForm.tsx             |   174 +
 .../templates/react-ts-resvault-sdk/src/index.css  |    32 +
 .../templates/react-ts-resvault-sdk/src/index.tsx  |    36 +
 .../react-ts-resvault-sdk/src/react-app-env.d.ts   |    20 +
 .../templates/react-ts-resvault-sdk/tsconfig.json  |    43 +
 .../templates/vue-js-resvault-sdk/README.md        |    25 +
 .../templates/vue-js-resvault-sdk/index.html       |    32 +
 .../templates/vue-js-resvault-sdk/package.json     |    42 +
 .../templates/vue-js-resvault-sdk/public/vite.svg  |    17 +
 .../templates/vue-js-resvault-sdk/src/App.css      |   192 +
 .../templates/vue-js-resvault-sdk/src/App.vue      |    30 +
 .../src/assets/images/animation.json               |    17 +
 .../vue-js-resvault-sdk/src/assets/images/bg.svg   |    17 +
 .../src/assets/images/resilientdb.svg              |    31 +
 .../vue-js-resvault-sdk/src/components/Home.vue    |    48 +
 .../vue-js-resvault-sdk/src/components/Loader.vue  |    33 +
 .../vue-js-resvault-sdk/src/components/Login.vue   |   175 +
 .../src/components/NotificationModal.vue           |   107 +
 .../src/components/TransactionForm.vue             |   196 +
 .../templates/vue-js-resvault-sdk/src/main.js      |    41 +
 .../vue-js-resvault-sdk/src/router/index.js        |    40 +
 .../vue-js-resvault-sdk/src/store/index.js         |    67 +
 .../templates/vue-js-resvault-sdk/src/style.css    |    98 +
 .../templates/vue-js-resvault-sdk/vite.config.js   |    26 +
 .../vue-ts-resvault-sdk/.vscode/extensions.json    |    20 +
 .../templates/vue-ts-resvault-sdk/README.md        |    25 +
 .../templates/vue-ts-resvault-sdk/index.html       |    32 +
 .../templates/vue-ts-resvault-sdk/package.json     |    45 +
 .../templates/vue-ts-resvault-sdk/public/vite.svg  |    17 +
 .../templates/vue-ts-resvault-sdk/src/App.css      |   192 +
 .../templates/vue-ts-resvault-sdk/src/App.vue      |    32 +
 .../src/assets/images/animation.json               |    18 +
 .../vue-ts-resvault-sdk/src/assets/images/bg.svg   |    17 +
 .../src/assets/images/resilientdb.svg              |    31 +
 .../vue-ts-resvault-sdk/src/components/Home.vue    |    49 +
 .../vue-ts-resvault-sdk/src/components/Loader.vue  |    34 +
 .../vue-ts-resvault-sdk/src/components/Login.vue   |   179 +
 .../src/components/NotificationModal.vue           |   106 +
 .../src/components/TransactionForm.vue             |   196 +
 .../templates/vue-ts-resvault-sdk/src/main.ts      |    35 +
 .../vue-ts-resvault-sdk/src/router/index.ts        |    40 +
 .../vue-ts-resvault-sdk/src/store/index.ts         |    68 +
 .../vue-ts-resvault-sdk/src/vite-env.d.ts          |    20 +
 .../vue-ts-resvault-sdk/tsconfig.app.json          |    41 +
 .../templates/vue-ts-resvault-sdk/tsconfig.json    |    24 +
 .../vue-ts-resvault-sdk/tsconfig.node.json         |    39 +
 .../templates/vue-ts-resvault-sdk/vite.config.ts   |    26 +
 ecosystem/tools/create-resilient-app/tsconfig.json |    30 +
 ecosystem/tools/drawing-lib/.babelrc.js            |    38 +
 ecosystem/tools/drawing-lib/.gitignore             |    27 +
 ecosystem/tools/drawing-lib/README.md              |   627 +
 .../drawing-lib/examples/basic-drawing-app.html    |   450 +
 ecosystem/tools/drawing-lib/jest.config.js         |    38 +
 ecosystem/tools/drawing-lib/package.json           |    62 +
 ecosystem/tools/drawing-lib/src/index.js           |   269 +
 ecosystem/tools/drawing-lib/src/modules/auth.js    |   147 +
 .../tools/drawing-lib/src/modules/canvases.js      |   300 +
 ecosystem/tools/drawing-lib/src/modules/invites.js |    67 +
 .../tools/drawing-lib/src/modules/notifications.js |   105 +
 ecosystem/tools/drawing-lib/src/modules/rooms.js   |   300 +
 ecosystem/tools/drawing-lib/src/modules/socket.js  |   208 +
 .../tools/drawing-lib/tests/test-functional.js     |  1021 +
 .../tools/drawing-lib/tests/test-integration.js    |   480 +
 ecosystem/tools/drawing-lib/tests/test-syntax.js   |   510 +
 ecosystem/tools/resvault/README.md                 |    97 +
 ecosystem/tools/resvault/config-overrides.js       |    34 +
 ecosystem/tools/resvault/dev/check-license         |    86 +
 ecosystem/tools/resvault/package.json              |    99 +
 ecosystem/tools/resvault/public/background.js      |   841 +
 ecosystem/tools/resvault/public/content.js         |   475 +
 ecosystem/tools/resvault/public/icon-128.png       |   Bin 0 -> 2221 bytes
 ecosystem/tools/resvault/public/icon-16.png        |   Bin 0 -> 454 bytes
 ecosystem/tools/resvault/public/icon-32.png        |   Bin 0 -> 783 bytes
 ecosystem/tools/resvault/public/icon-64.png        |   Bin 0 -> 1288 bytes
 ecosystem/tools/resvault/public/index.html         |    63 +
 ecosystem/tools/resvault/public/manifest.json      |    54 +
 ecosystem/tools/resvault/public/robots.txt         |    24 +
 ecosystem/tools/resvault/src/App.js                |    60 +
 ecosystem/tools/resvault/src/App.test.js           |    29 +
 .../tools/resvault/src/context/GlobalContext.js    |   426 +
 ecosystem/tools/resvault/src/css/App.css           |  3778 +++
 ecosystem/tools/resvault/src/data/version.json     |    21 +
 ecosystem/tools/resvault/src/images/bg.json        |    18 +
 .../tools/resvault/src/images/icons/arrow-back.svg |    24 +
 .../tools/resvault/src/images/icons/arrow-down.svg |    25 +
 ecosystem/tools/resvault/src/images/icons/card.svg |    33 +
 .../resvault/src/images/icons/checked-simple.svg   |    27 +
 .../tools/resvault/src/images/logos/graphql.png    |   Bin 0 -> 120736 bytes
 ecosystem/tools/resvault/src/images/modal.json     |    17 +
 ecosystem/tools/resvault/src/images/resvault.png   |   Bin 0 -> 25209 bytes
 ecosystem/tools/resvault/src/images/signup.json    |    17 +
 ecosystem/tools/resvault/src/images/splash.svg     |    31 +
 ecosystem/tools/resvault/src/index.css             |    34 +
 ecosystem/tools/resvault/src/index.js              |    56 +
 ecosystem/tools/resvault/src/logo.svg              |    37 +
 ecosystem/tools/resvault/src/pages/Contract.jsx    |  1095 +
 ecosystem/tools/resvault/src/pages/Dashboard.jsx   |   939 +
 ecosystem/tools/resvault/src/pages/Home.jsx        |    94 +
 ecosystem/tools/resvault/src/pages/Login.jsx       |   255 +
 ecosystem/tools/resvault/src/pages/SignUp.jsx      |   241 +
 ecosystem/tools/resvault/src/reportWebVitals.js    |    33 +
 ecosystem/tools/resvault/src/setupTests.js         |    26 +
 ecosystem/tools/resvault/webpack.config.js         |    57 +
 entrypoint.sh                                      |    23 +
 executor/common/BUILD                              |    44 +
 executor/common/custom_query.h                     |    36 +
 executor/common/mock_transaction_manager.h         |    43 +
 executor/common/transaction_manager.cpp            |   112 +
 executor/common/transaction_manager.h              |    77 +
 executor/contract/executor/BUILD                   |    46 +
 executor/contract/executor/contract_executor.cpp   |   150 +
 executor/contract/executor/contract_executor.h     |    53 +
 .../contract/executor/contract_executor_test.cpp   |   517 +
 executor/contract/executor/test_data/BUILD         |    19 +
 executor/contract/executor/test_data/contract.json |    32 +
 executor/contract/executor/test_data/token.json    |    33 +
 executor/contract/manager/BUILD                    |   104 +
 executor/contract/manager/address_manager.cpp      |    58 +
 executor/contract/manager/address_manager.h        |    47 +
 executor/contract/manager/address_manager_test.cpp |    51 +
 executor/contract/manager/contract_manager.cpp     |   157 +
 executor/contract/manager/contract_manager.h       |    65 +
 .../contract/manager/contract_manager_test.cpp     |   255 +
 executor/contract/manager/evm_state.h              |    42 +
 executor/contract/manager/global_state.cpp         |    90 +
 executor/contract/manager/global_state.h           |    62 +
 executor/contract/manager/global_view.cpp          |    42 +
 executor/contract/manager/global_view.h            |    44 +
 executor/contract/manager/test_data/BUILD          |    19 +
 executor/contract/manager/test_data/contract.json  |    38 +
 executor/contract/manager/utils.h                  |    30 +
 executor/kv/BUILD                                  |    45 +
 executor/kv/kv_executor.cpp                        |   205 +
 executor/kv/kv_executor.h                          |    64 +
 executor/kv/kv_executor_test.cpp                   |   343 +
 executor/utxo/executor/BUILD                       |    46 +
 executor/utxo/executor/utxo_executor.cpp           |    79 +
 executor/utxo/executor/utxo_executor.h             |    57 +
 executor/utxo/executor/utxo_executor_test.cpp      |    80 +
 executor/utxo/manager/BUILD                        |    82 +
 executor/utxo/manager/transaction.cpp              |   190 +
 executor/utxo/manager/transaction.h                |    56 +
 executor/utxo/manager/transaction_test.cpp         |   117 +
 executor/utxo/manager/tx_mempool.cpp               |   128 +
 executor/utxo/manager/tx_mempool.h                 |    55 +
 executor/utxo/manager/tx_mempool_test.cpp          |   196 +
 executor/utxo/manager/wallet.cpp                   |    38 +
 executor/utxo/manager/wallet.h                     |    41 +
 executor/utxo/manager/wallet_test.cpp              |    40 +
 img/apache-incubator.png                           |   Bin 0 -> 30207 bytes
 img/apache-resdb.png                               |   Bin 0 -> 98785 bytes
 img/nexres.jpg                                     |   Bin 0 -> 71181 bytes
 img/nexres.pdf                                     |   Bin 0 -> 35993 bytes
 img/nexres.png                                     |   Bin 0 -> 72738 bytes
 img/resdb-v2.png                                   |   Bin 0 -> 41784 bytes
 img/resdb.png                                      |   Bin 0 -> 36015 bytes
 interface/common/BUILD                             |    74 +
 interface/common/mock_resdb_txn_accessor.h         |    37 +
 interface/common/resdb_state_accessor.cpp          |    59 +
 interface/common/resdb_state_accessor.h            |    47 +
 interface/common/resdb_state_accessor_test.cpp     |   106 +
 interface/common/resdb_txn_accessor.cpp            |   191 +
 interface/common/resdb_txn_accessor.h              |    54 +
 interface/common/resdb_txn_accessor_test.cpp       |   162 +
 interface/contract/BUILD                           |    32 +
 interface/contract/contract_client.cpp             |   121 +
 interface/contract/contract_client.h               |    47 +
 interface/kv/BUILD                                 |    43 +
 interface/kv/contract_client.cpp                   |   169 +
 interface/kv/contract_client.h                     |    56 +
 interface/kv/kv_client.cpp                         |   136 +
 interface/kv/kv_client.h                           |    65 +
 interface/rdbc/BUILD                               |    77 +
 interface/rdbc/mock_net_channel.h                  |    42 +
 interface/rdbc/mock_resdb_txn_accessor.h           |    37 +
 interface/rdbc/net_channel.cpp                     |   231 +
 interface/rdbc/net_channel.h                       |   109 +
 interface/rdbc/net_channel_test.cpp                |   214 +
 interface/rdbc/transaction_constructor.cpp         |    89 +
 interface/rdbc/transaction_constructor.h           |    51 +
 interface/rdbc/transaction_constructor_test.cpp    |   160 +
 interface/utxo/BUILD                               |    30 +
 interface/utxo/utxo_client.cpp                     |    98 +
 interface/utxo/utxo_client.h                       |    40 +
 monitoring/README.md                               |    54 +
 monitoring/prometheus/prometheus.yml               |    74 +
 platform/common/data_comm/BUILD                    |    35 +
 platform/common/data_comm/data_comm.h              |    39 +
 platform/common/data_comm/network_comm.h           |    32 +
 platform/common/network/BUILD                      |    58 +
 platform/common/network/mock_socket.h              |    43 +
 platform/common/network/network_utils.cpp          |    50 +
 platform/common/network/network_utils.h            |    32 +
 platform/common/network/network_utils_test.cpp     |    43 +
 platform/common/network/socket.h                   |    51 +
 platform/common/network/tcp_socket.cpp             |   237 +
 platform/common/network/tcp_socket.h               |    59 +
 platform/common/network/tcp_socket_test.cpp        |    94 +
 platform/common/queue/BUILD                        |    65 +
 platform/common/queue/batch_queue.h                |    79 +
 platform/common/queue/batch_queue_test.cpp         |    98 +
 platform/common/queue/blocking_queue.h             |   106 +
 platform/common/queue/lock_free_queue.h            |    78 +
 platform/common/queue/lock_free_queue_test.cpp     |    50 +
 platform/config/BUILD                              |    74 +
 platform/config/expect_test.config                 |    55 +
 platform/config/resdb_config.cpp                   |   256 +
 platform/config/resdb_config.h                     |   151 +
 platform/config/resdb_config_test.cpp              |   140 +
 platform/config/resdb_config_utils.cpp             |   187 +
 platform/config/resdb_config_utils.h               |    46 +
 platform/config/resdb_poc_config.cpp               |    85 +
 platform/config/resdb_poc_config.h                 |    76 +
 platform/config/test.config                        |    56 +
 platform/consensus/checkpoint/BUILD                |    36 +
 platform/consensus/checkpoint/checkpoint.h         |    33 +
 platform/consensus/checkpoint/mock_checkpoint.h    |    34 +
 platform/consensus/execution/BUILD                 |   132 +
 platform/consensus/execution/duplicate_manager.cpp |   143 +
 platform/consensus/execution/duplicate_manager.h   |    69 +
 .../consensus/execution/geo_global_executor.cpp    |   131 +
 platform/consensus/execution/geo_global_executor.h |    70 +
 .../execution/geo_global_executor_test.cpp         |    95 +
 .../execution/geo_transaction_executor.cpp         |   127 +
 .../consensus/execution/geo_transaction_executor.h |    58 +
 .../execution/geo_transaction_executor_test.cpp    |   150 +
 .../consensus/execution/mock_geo_global_executor.h |    37 +
 platform/consensus/execution/system_info.cpp       |    75 +
 platform/consensus/execution/system_info.h         |    54 +
 platform/consensus/execution/system_info_test.cpp  |    75 +
 .../consensus/execution/transaction_executor.cpp   |   519 +
 .../consensus/execution/transaction_executor.h     |   147 +
 .../execution/transaction_executor_test.cpp        |   282 +
 platform/consensus/ordering/common/BUILD           |    29 +
 platform/consensus/ordering/common/algorithm/BUILD |    29 +
 .../ordering/common/algorithm/protocol_base.cpp    |    65 +
 .../ordering/common/algorithm/protocol_base.h      |    87 +
 platform/consensus/ordering/common/framework/BUILD |    66 +
 .../ordering/common/framework/consensus.cpp        |   168 +
 .../ordering/common/framework/consensus.h          |    78 +
 .../common/framework/performance_manager.cpp       |   276 +
 .../common/framework/performance_manager.h         |    97 +
 .../ordering/common/framework/response_manager.cpp |   236 +
 .../ordering/common/framework/response_manager.h   |    79 +
 .../common/framework/transaction_utils.cpp         |    43 +
 .../ordering/common/framework/transaction_utils.h  |    39 +
 .../ordering/common/transaction_utils.cpp          |    41 +
 .../consensus/ordering/common/transaction_utils.h  |    33 +
 platform/consensus/ordering/geo_pbft/BUILD         |    68 +
 platform/consensus/ordering/geo_pbft/README.md     |    23 +
 .../geo_pbft/consensus_manager_geo_pbft.cpp        |    45 +
 .../ordering/geo_pbft/consensus_manager_geo_pbft.h |    43 +
 .../ordering/geo_pbft/geo_pbft_commitment.cpp      |   142 +
 .../ordering/geo_pbft/geo_pbft_commitment.h        |    68 +
 .../ordering/geo_pbft/geo_pbft_commitment_test.cpp |   216 +
 platform/consensus/ordering/geo_pbft/hash_set.h    |    70 +
 platform/consensus/ordering/img/GeoBFT_1.png       |   Bin 0 -> 95131 bytes
 platform/consensus/ordering/img/PBFT_1.png         |   Bin 0 -> 28505 bytes
 platform/consensus/ordering/img/PBFT_2.png         |   Bin 0 -> 40103 bytes
 platform/consensus/ordering/img/PBFT_3.png         |   Bin 0 -> 49651 bytes
 platform/consensus/ordering/img/PBFT_4.png         |   Bin 0 -> 50363 bytes
 platform/consensus/ordering/img/PBFT_5.png         |   Bin 0 -> 49507 bytes
 platform/consensus/ordering/img/PBFT_6.png         |   Bin 0 -> 20268 bytes
 platform/consensus/ordering/pbft/BUILD             |   268 +
 platform/consensus/ordering/pbft/README.md         |    50 +
 .../consensus/ordering/pbft/checkpoint_manager.cpp |   558 +
 .../consensus/ordering/pbft/checkpoint_manager.h   |   149 +
 .../ordering/pbft/checkpoint_manager_test.cpp      |   313 +
 platform/consensus/ordering/pbft/commitment.cpp    |   352 +
 platform/consensus/ordering/pbft/commitment.h      |    82 +
 .../consensus/ordering/pbft/commitment_test.cpp    |   370 +
 .../ordering/pbft/consensus_manager_pbft.cpp       |   375 +
 .../ordering/pbft/consensus_manager_pbft.h         |    98 +
 .../ordering/pbft/lock_free_collector_pool.cpp     |    82 +
 .../ordering/pbft/lock_free_collector_pool.h       |    47 +
 .../pbft/lock_free_collector_pool_test.cpp         |    64 +
 .../consensus/ordering/pbft/message_manager.cpp    |   288 +
 platform/consensus/ordering/pbft/message_manager.h |   140 +
 .../ordering/pbft/mock_checkpoint_manager.h        |    47 +
 .../ordering/pbft/performance_manager.cpp          |   411 +
 .../consensus/ordering/pbft/performance_manager.h  |   118 +
 .../pbft/pre_very_consensus_service_pbft.h         |    55 +
 platform/consensus/ordering/pbft/query.cpp         |   152 +
 platform/consensus/ordering/pbft/query.h           |    48 +
 platform/consensus/ordering/pbft/query_test.cpp    |   207 +
 .../consensus/ordering/pbft/response_manager.cpp   |   420 +
 .../consensus/ordering/pbft/response_manager.h     |   109 +
 .../ordering/pbft/response_manager_test.cpp        |   208 +
 .../ordering/pbft/transaction_collector.cpp        |   238 +
 .../ordering/pbft/transaction_collector.h          |   141 +
 .../ordering/pbft/transaction_collector_test.cpp   |   397 +
 .../consensus/ordering/pbft/transaction_utils.cpp  |    41 +
 .../consensus/ordering/pbft/transaction_utils.h    |    38 +
 .../consensus/ordering/pbft/viewchange_manager.cpp |   595 +
 .../consensus/ordering/pbft/viewchange_manager.h   |   160 +
 .../ordering/pbft/viewchange_manager_test.cpp      |   124 +
 platform/consensus/ordering/poc/pow/BUILD          |   219 +
 .../consensus/ordering/poc/pow/block_manager.cpp   |   304 +
 .../consensus/ordering/poc/pow/block_manager.h     |   106 +
 .../ordering/poc/pow/block_manager_test.cpp        |   419 +
 .../ordering/poc/pow/consensus_service_pow.cpp     |    71 +
 .../ordering/poc/pow/consensus_service_pow.h       |    46 +
 .../poc/pow/consensus_service_pow_test.cpp         |   349 +
 platform/consensus/ordering/poc/pow/merkle.cpp     |    47 +
 platform/consensus/ordering/poc/pow/merkle.h       |    31 +
 .../consensus/ordering/poc/pow/merkle_test.cpp     |    65 +
 platform/consensus/ordering/poc/pow/miner.cpp      |   187 +
 platform/consensus/ordering/poc/pow/miner.h        |    63 +
 .../consensus/ordering/poc/pow/miner_manager.cpp   |    31 +
 .../consensus/ordering/poc/pow/miner_manager.h     |    37 +
 platform/consensus/ordering/poc/pow/miner_test.cpp |   189 +
 .../consensus/ordering/poc/pow/miner_utils.cpp     |   122 +
 platform/consensus/ordering/poc/pow/miner_utils.h  |    49 +
 .../ordering/poc/pow/miner_utils_test.cpp          |    95 +
 .../ordering/poc/pow/mock_transaction_accessor.h   |    35 +
 .../consensus/ordering/poc/pow/pow_manager.cpp     |   283 +
 platform/consensus/ordering/poc/pow/pow_manager.h  |   100 +
 .../ordering/poc/pow/pow_manager_test.cpp          |   531 +
 .../consensus/ordering/poc/pow/shift_manager.cpp   |    54 +
 .../consensus/ordering/poc/pow/shift_manager.h     |    44 +
 .../ordering/poc/pow/transaction_accessor.cpp      |   153 +
 .../ordering/poc/pow/transaction_accessor.h        |    68 +
 .../ordering/poc/pow/transaction_accessor_test.cpp |   142 +
 platform/consensus/ordering/poc/proto/BUILD        |    46 +
 platform/consensus/ordering/poc/proto/pow.proto    |    71 +
 .../consensus/ordering/poc/proto/transaction.proto |    31 +
 platform/consensus/ordering/poe/algorithm/BUILD    |    33 +
 platform/consensus/ordering/poe/algorithm/poe.cpp  |    91 +
 platform/consensus/ordering/poe/algorithm/poe.h    |    59 +
 platform/consensus/ordering/poe/framework/BUILD    |    33 +
 .../consensus/ordering/poe/framework/consensus.cpp |    98 +
 .../consensus/ordering/poe/framework/consensus.h   |    53 +
 platform/consensus/ordering/poe/proto/BUILD        |    34 +
 .../consensus/ordering/poe/proto/proposal.proto    |    46 +
 platform/consensus/recovery/BUILD                  |    47 +
 platform/consensus/recovery/recovery.cpp           |   630 +
 platform/consensus/recovery/recovery.h             |   114 +
 platform/consensus/recovery/recovery_test.cpp      |   469 +
 platform/networkstrate/BUILD                       |   196 +
 platform/networkstrate/README.md                   |    36 +
 platform/networkstrate/async_acceptor.cpp          |   162 +
 platform/networkstrate/async_acceptor.h            |    76 +
 platform/networkstrate/async_acceptor_test.cpp     |   135 +
 platform/networkstrate/async_replica_client.cpp    |   112 +
 platform/networkstrate/async_replica_client.h      |    63 +
 .../networkstrate/async_replica_client_test.cpp    |   170 +
 platform/networkstrate/consensus_manager.cpp       |   375 +
 platform/networkstrate/consensus_manager.h         |   114 +
 platform/networkstrate/consensus_manager_test.cpp  |   303 +
 platform/networkstrate/mock_async_replica_client.h |    35 +
 platform/networkstrate/mock_replica_communicator.h |    49 +
 platform/networkstrate/mock_service_interface.h    |    37 +
 platform/networkstrate/replica_communicator.cpp    |   337 +
 platform/networkstrate/replica_communicator.h      |   110 +
 .../networkstrate/replica_communicator_test.cpp    |   139 +
 platform/networkstrate/server_comm.h               |    32 +
 platform/networkstrate/service_interface.cpp       |    38 +
 platform/networkstrate/service_interface.h         |    47 +
 platform/networkstrate/service_network.cpp         |   141 +
 platform/networkstrate/service_network.h           |    68 +
 platform/networkstrate/service_network_test.cpp    |   116 +
 platform/proto/BUILD                               |   151 +
 platform/proto/broadcast.proto                     |    26 +
 platform/proto/checkpoint_info.proto               |    46 +
 platform/proto/client_test.proto                   |    30 +
 platform/proto/logging.proto                       |    37 +
 platform/proto/network_type.proto                  |    29 +
 platform/proto/replica_info.proto                  |    77 +
 platform/proto/resdb.proto                         |   234 +
 platform/proto/system_info_data.proto              |    27 +
 platform/proto/viewchange_message.proto            |    49 +
 platform/rdbc/BUILD                                |    34 +
 platform/rdbc/acceptor.cpp                         |    98 +
 platform/rdbc/acceptor.h                           |    57 +
 platform/statistic/BUILD                           |    57 +
 platform/statistic/README.md                       |   188 +
 platform/statistic/prometheus_handler.cpp          |   108 +
 platform/statistic/prometheus_handler.h            |    79 +
 platform/statistic/set_random_data.cpp             |    90 +
 platform/statistic/stats.cpp                       |   605 +
 platform/statistic/stats.h                         |   167 +
 platform/test/BUILD                                |    38 +
 platform/test/proto/BUILD                          |    33 +
 platform/test/proto/resdb_test.proto               |    29 +
 platform/test/resdb_test.cpp                       |   168 +
 platform/test/test_data/BUILD                      |    25 +
 platform/test/test_data/admin.key.pri              |     2 +
 platform/test/test_data/admin.key.pub              |     2 +
 platform/test/test_data/cert_1.cert                |     7 +
 platform/test/test_data/cert_2.cert                |   Bin 0 -> 167 bytes
 platform/test/test_data/cert_3.cert                |     8 +
 platform/test/test_data/cert_4.cert                |     6 +
 platform/test/test_data/cert_5.cert                |     7 +
 platform/test/test_data/cert_6.cert                |     7 +
 platform/test/test_data/kv_config.config           |    44 +
 platform/test/test_data/node1.key.pri              |     2 +
 platform/test/test_data/node1.key.pub              |     3 +
 platform/test/test_data/node2.key.pri              |     2 +
 platform/test/test_data/node2.key.pub              |     2 +
 platform/test/test_data/node3.key.pri              |   Bin 0 -> 36 bytes
 platform/test/test_data/node3.key.pub              |     3 +
 platform/test/test_data/node4.key.pri              |   Bin 0 -> 36 bytes
 platform/test/test_data/node4.key.pub              |     2 +
 platform/test/test_data/node5.key.pri              |     2 +
 platform/test/test_data/node5.key.pub              |     3 +
 platform/test/test_data/server.config              |    44 +
 proto/contract/BUILD                               |    68 +
 proto/contract/account.proto                       |    28 +
 proto/contract/contract.proto                      |    30 +
 proto/contract/func_params.proto                   |    40 +
 proto/contract/rpc.proto                           |    59 +
 proto/kv/BUILD                                     |    32 +
 proto/kv/kv.proto                                  |    74 +
 proto/utxo/BUILD                                   |    55 +
 proto/utxo/config.proto                            |    34 +
 proto/utxo/rpc.proto                               |    44 +
 proto/utxo/utxo.proto                              |    42 +
 repositories.bzl                                   |   108 +
 script.js                                          |   123 +
 scripts/deploy/README.md                           |    79 +
 scripts/deploy/config/key_example.conf             |    21 +
 scripts/deploy/config/kv_performance_server.conf   |    28 +
 .../deploy/config/kv_performance_server_local.conf |    28 +
 scripts/deploy/config/kv_server.conf               |    27 +
 scripts/deploy/config/pbft.config                  |    29 +
 scripts/deploy/config/poe.config                   |    29 +
 scripts/deploy/config/template.config              |    25 +
 scripts/deploy/performance/calculate_result.py     |    71 +
 scripts/deploy/performance/pbft_performance.sh     |    24 +
 scripts/deploy/performance/poe_performance.sh      |    23 +
 scripts/deploy/performance/run_performance.sh      |    59 +
 .../deploy/performance_local/calculate_result.py   |    71 +
 .../deploy/performance_local/pbft_performance.sh   |    24 +
 .../deploy/performance_local/poe_performance.sh    |    23 +
 .../deploy/performance_local/run_performance.sh    |    60 +
 scripts/deploy/script/deploy.sh                    |   185 +
 scripts/deploy/script/deploy_local.sh              |   169 +
 scripts/deploy/script/env.sh                       |    46 +
 scripts/deploy/script/generate_admin_key.sh        |    30 +
 scripts/deploy/script/generate_config.sh           |    82 +
 scripts/deploy/script/generate_key.sh              |    33 +
 scripts/deploy/script/load_config.sh               |    26 +
 scripts/format.sh                                  |    23 +
 service/contract/BUILD                             |    31 +
 service/contract/contract_service.cpp              |    73 +
 service/kv/BUILD                                   |    42 +
 service/kv/kv_service.cpp                          |    87 +
 service/poc/BUILD                                  |    29 +
 service/poc/pow_server.cpp                         |    74 +
 service/tools/config/generate_config.sh            |    92 +
 service/tools/config/interface/service.config      |    28 +
 service/tools/config/interface/service0.config     |    21 +
 service/tools/config/server.config                 |    21 +
 service/tools/config/server/contract_server.config |    53 +
 service/tools/config/server/server.config          |    55 +
 service/tools/config/server/utxo_config.config     |    28 +
 service/tools/contract/README.md                   |    37 +
 service/tools/contract/api_tools/BUILD             |    31 +
 .../tools/contract/api_tools/client_config.config  |    18 +
 .../contract/api_tools/config/server_config.config |    45 +
 .../tools/contract/api_tools/contract_tools.cpp    |   176 +
 service/tools/contract/api_tools/create.js         |    23 +
 service/tools/contract/api_tools/deploy.js         |    26 +
 .../contract/api_tools/example_contract/compile.sh |    20 +
 .../contract/api_tools/example_contract/token.sol  |    63 +
 service/tools/contract/api_tools/execute.js        |    27 +
 .../service_tools/start_contract_service.sh        |    32 +
 service/tools/data/cert/admin.key.pri              |     2 +
 service/tools/data/cert/admin.key.pub              |     2 +
 service/tools/data/cert/cert_1.cert                |   Bin 0 -> 166 bytes
 service/tools/data/cert/cert_2.cert                |     7 +
 service/tools/data/cert/cert_3.cert                |     7 +
 service/tools/data/cert/cert_4.cert                |     6 +
 service/tools/data/cert/cert_5.cert                |     8 +
 service/tools/data/cert/cert_6.cert                |   Bin 0 -> 166 bytes
 service/tools/data/cert/cert_7.cert                |     6 +
 service/tools/data/cert/cert_8.cert                |   Bin 0 -> 166 bytes
 service/tools/data/cert/cert_9.cert                |     7 +
 service/tools/data/cert/node1.key.pri              |     2 +
 service/tools/data/cert/node1.key.pub              |     3 +
 service/tools/data/cert/node2.key.pri              |     2 +
 service/tools/data/cert/node2.key.pub              |     2 +
 service/tools/data/cert/node3.key.pri              |   Bin 0 -> 36 bytes
 service/tools/data/cert/node3.key.pub              |     3 +
 service/tools/data/cert/node4.key.pri              |   Bin 0 -> 36 bytes
 service/tools/data/cert/node4.key.pub              |     2 +
 service/tools/data/cert/node5.key.pri              |     2 +
 service/tools/data/cert/node5.key.pub              |     3 +
 service/tools/data/cert/node6.key.key.pri          |     2 +
 service/tools/data/cert/node6.key.key.pub          |     2 +
 service/tools/data/cert/node6.key.pri              |     2 +
 service/tools/data/cert/node6.key.pub              |     2 +
 service/tools/data/cert/node7.key.key.pri          |     2 +
 service/tools/data/cert/node7.key.key.pub          |     2 +
 service/tools/data/cert/node7.key.pri              |     2 +
 service/tools/data/cert/node7.key.pub              |     2 +
 service/tools/data/cert/node8.key.key.pri          |     2 +
 service/tools/data/cert/node8.key.key.pub          |     2 +
 service/tools/data/cert/node8.key.pri              |     2 +
 service/tools/data/cert/node8.key.pub              |     2 +
 service/tools/data/cert/node9.key.key.pri          |     2 +
 service/tools/data/cert/node9.key.key.pub          |     2 +
 service/tools/data/cert/node9.key.pri              |     2 +
 service/tools/data/cert/node9.key.pub              |     2 +
 service/tools/kv/api_tools/BUILD                   |    51 +
 .../tools/kv/api_tools/contract_service_tools.cpp  |   235 +
 service/tools/kv/api_tools/create.js               |    22 +
 service/tools/kv/api_tools/deploy.js               |    26 +
 .../tools/kv/api_tools/example_contract/compile.sh |    21 +
 .../tools/kv/api_tools/example_contract/token.sol  |    45 +
 service/tools/kv/api_tools/execute.js              |    27 +
 service/tools/kv/api_tools/get_balance.js          |    23 +
 service/tools/kv/api_tools/kv_client_txn_tools.cpp |    67 +
 service/tools/kv/api_tools/kv_service_tools.cpp    |   275 +
 service/tools/kv/api_tools/set_balance.js          |    24 +
 service/tools/kv/server_tools/generate_config.sh   |    34 +
 service/tools/kv/server_tools/start_kv_service.sh  |    32 +
 .../kv/server_tools/start_kv_service_monitoring.sh |    34 +
 service/tools/utxo/README.md                       |    53 +
 .../tools/utxo/service_tools/start_utxo_service.sh |    34 +
 service/tools/utxo/wallet_tool/cpp/BUILD           |    48 +
 service/tools/utxo/wallet_tool/cpp/addr_utils.cpp  |    41 +
 service/tools/utxo/wallet_tool/cpp/addr_utils.h    |    32 +
 .../utxo/wallet_tool/cpp/client_config.config      |    18 +
 service/tools/utxo/wallet_tool/cpp/key_utils.cpp   |    36 +
 service/tools/utxo/wallet_tool/cpp/key_utils.h     |    30 +
 .../utxo/wallet_tool/cpp/server_config0.config     |    18 +
 .../utxo/wallet_tool/cpp/utxo_client_tools.cpp     |   182 +
 service/tools/utxo/wallet_tool/py/BUILD            |    40 +
 service/tools/utxo/wallet_tool/py/addr.py          |    32 +
 service/tools/utxo/wallet_tool/py/keys.py          |    26 +
 service/tools/utxo/wallet_tool/pybind/BUILD        |    38 +
 .../utxo/wallet_tool/pybind/wallet_tools_py.cpp    |    38 +
 service/tools/utxo/wallet_tool/test/BUILD          |    48 +
 service/tools/utxo/wallet_tool/test/key_tester.py  |    26 +
 .../utxo/wallet_tool/test/key_tester_utils.cpp     |    47 +
 service/utils/BUILD                                |    31 +
 service/utils/server_factory.cpp                   |    48 +
 service/utils/server_factory.h                     |   124 +
 service/utxo/BUILD                                 |    30 +
 service/utxo/config/server_config.config           |    45 +
 service/utxo/config/utxo_config.config             |    28 +
 service/utxo/start_contract_server.sh              |    32 +
 service/utxo/utxo_service.cpp                      |    96 +
 third_party/BUILD                                  |    59 +
 third_party/asio.BUILD                             |    38 +
 third_party/civetweb.BUILD                         |    52 +
 third_party/crow.BUILD                             |    38 +
 third_party/date.BUILD                             |    30 +
 third_party/eEVM.BUILD                             |    55 +
 third_party/json.BUILD                             |    29 +
 third_party/leveldb.BUILD                          |    54 +
 third_party/loc_script/action.yml                  |    72 +
 third_party/loc_script/src/index.js                |   109 +
 third_party/prometheus.BUILD                       |    33 +
 third_party/rapidjson.BUILD                        |    30 +
 third_party/snappy.BUILD                           |    74 +
 third_party/z.BUILD                                |    34 +
 third_party/zlib.BUILD                             |    60 +
 tools/BUILD                                        |    79 +
 tools/certificate_tools.cpp                        |   137 +
 tools/certificate_tools_test.cpp                   |    95 +
 tools/generate_certificate.sh                      |    55 +
 tools/generate_client.sh                           |    22 +
 tools/generate_cluster.sh                          |    29 +
 tools/generate_key.sh                              |    21 +
 tools/generate_mulregion_config.py                 |    69 +
 tools/generate_region_config.py                    |    95 +
 tools/key_generator_tools.cpp                      |    82 +
 tools/resdb_state_accessor_tools.cpp               |    43 +
 tools/resdb_txn_accessor_tools.cpp                 |    58 +
 1725 files changed, 244324 insertions(+)

diff --git a/.asf.yaml b/.asf.yaml
new file mode 100644
index 00000000..6aed65d9
--- /dev/null
+++ b/.asf.yaml
@@ -0,0 +1,42 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+github:
+  description: Global-Scale Sustainable Blockchain Fabric
+  homepage: https://resilientdb.incubator.apache.org/
+  labels:
+    - crypto 
+    - smart-contracts 
+    - blockchain 
+    - solidity 
+    - distributed-database 
+    - key-value-database 
+    - distributed-ledger 
+    - blockchain-platform
+    - utxo
+  enabled_merge_buttons:
+    squash: true
+    merge: false
+    rebase: false
+  protected_branches:
+    master:
+      required_status_checks:
+        strict: true
+  
+notifications:
+  commits:      commits@resilientdb.apache.org
+  issues:       commits@resilientdb.apache.org
+  pullrequests: commits@resilientdb.apache.org
diff --git a/.bazelignore b/.bazelignore
new file mode 100644
index 00000000..081bf6b4
--- /dev/null
+++ b/.bazelignore
@@ -0,0 +1 @@
+ecosystem/
diff --git a/.bazelrc b/.bazelrc
new file mode 100644
index 00000000..cc3d1af5
--- /dev/null
+++ b/.bazelrc
@@ -0,0 +1,4 @@
+build --cxxopt='-std=c++17' --copt=-O3 --jobs=40
+#build --action_env=PYTHON_BIN_PATH="/usr/bin/python3.10"
+#build --action_env=PYTHON_LIB_PATH="/usr/include/python3.10"
+
diff --git a/.bazelversion b/.bazelversion
new file mode 100644
index 00000000..4df4a2ec
--- /dev/null
+++ b/.bazelversion
@@ -0,0 +1,3 @@
+6.0.0
+
+
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 00000000..f2dd0de3
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,168 @@
+---
+Language:        Cpp
+# BasedOnStyle:  Google
+AccessModifierOffset: -1
+AlignAfterOpenBracket: Align
+AlignConsecutiveMacros: false
+AlignConsecutiveAssignments: false
+AlignConsecutiveDeclarations: false
+AlignEscapedNewlines: Left
+AlignOperands:   true
+AlignTrailingComments: true
+AllowAllArgumentsOnNextLine: true
+AllowAllConstructorInitializersOnNextLine: true
+AllowAllParametersOfDeclarationOnNextLine: true
+AllowShortBlocksOnASingleLine: Never
+AllowShortCaseLabelsOnASingleLine: false
+AllowShortFunctionsOnASingleLine: All
+AllowShortLambdasOnASingleLine: All
+AllowShortIfStatementsOnASingleLine: WithoutElse
+AllowShortLoopsOnASingleLine: true
+AlwaysBreakAfterDefinitionReturnType: None
+AlwaysBreakAfterReturnType: None
+AlwaysBreakBeforeMultilineStrings: true
+AlwaysBreakTemplateDeclarations: Yes
+BinPackArguments: true
+BinPackParameters: true
+BraceWrapping:
+  AfterCaseLabel:  false
+  AfterClass:      false
+  AfterControlStatement: false
+  AfterEnum:       false
+  AfterFunction:   false
+  AfterNamespace:  false
+  AfterObjCDeclaration: false
+  AfterStruct:     false
+  AfterUnion:      false
+  AfterExternBlock: false
+  BeforeCatch:     false
+  BeforeElse:      false
+  IndentBraces:    false
+  SplitEmptyFunction: true
+  SplitEmptyRecord: true
+  SplitEmptyNamespace: true
+BreakBeforeBinaryOperators: None
+BreakBeforeBraces: Attach
+BreakBeforeInheritanceComma: false
+BreakInheritanceList: BeforeColon
+BreakBeforeTernaryOperators: true
+BreakConstructorInitializersBeforeComma: false
+BreakConstructorInitializers: BeforeColon
+BreakAfterJavaFieldAnnotations: false
+BreakStringLiterals: true
+ColumnLimit:     80
+CommentPragmas:  '^ IWYU pragma:'
+CompactNamespaces: false
+ConstructorInitializerAllOnOneLineOrOnePerLine: true
+ConstructorInitializerIndentWidth: 4
+ContinuationIndentWidth: 4
+Cpp11BracedListStyle: true
+DeriveLineEnding: true
+DerivePointerAlignment: true
+DisableFormat:   false
+ExperimentalAutoDetectBinPacking: false
+FixNamespaceComments: true
+ForEachMacros:
+  - foreach
+  - Q_FOREACH
+  - BOOST_FOREACH
+IncludeBlocks:   Regroup
+IncludeCategories:
+  - Regex:           '^<ext/.*\.h>'
+    Priority:        2
+    SortPriority:    0
+  - Regex:           '^<.*\.h>'
+    Priority:        1
+    SortPriority:    0
+  - Regex:           '^<.*'
+    Priority:        2
+    SortPriority:    0
+  - Regex:           '.*'
+    Priority:        3
+    SortPriority:    0
+IncludeIsMainRegex: '([-_](test|unittest))?$'
+IncludeIsMainSourceRegex: ''
+IndentCaseLabels: true
+IndentGotoLabels: true
+IndentPPDirectives: None
+IndentWidth:     2
+IndentWrappedFunctionNames: false
+JavaScriptQuotes: Leave
+JavaScriptWrapImports: true
+KeepEmptyLinesAtTheStartOfBlocks: false
+MacroBlockBegin: ''
+MacroBlockEnd:   ''
+MaxEmptyLinesToKeep: 1
+NamespaceIndentation: None
+ObjCBinPackProtocolList: Never
+ObjCBlockIndentWidth: 2
+ObjCSpaceAfterProperty: false
+ObjCSpaceBeforeProtocolList: true
+PenaltyBreakAssignment: 2
+PenaltyBreakBeforeFirstCallParameter: 1
+PenaltyBreakComment: 300
+PenaltyBreakFirstLessLess: 120
+PenaltyBreakString: 1000
+PenaltyBreakTemplateDeclaration: 10
+PenaltyExcessCharacter: 1000000
+PenaltyReturnTypeOnItsOwnLine: 200
+PointerAlignment: Left
+RawStringFormats:
+  - Language:        Cpp
+    Delimiters:
+      - cc
+      - CC
+      - cpp
+      - Cpp
+      - CPP
+      - 'c++'
+      - 'C++'
+    CanonicalDelimiter: ''
+    BasedOnStyle:    google
+  - Language:        TextProto
+    Delimiters:
+      - pb
+      - PB
+      - proto
+      - PROTO
+    EnclosingFunctions:
+      - EqualsProto
+      - EquivToProto
+      - PARSE_PARTIAL_TEXT_PROTO
+      - PARSE_TEST_PROTO
+      - PARSE_TEXT_PROTO
+      - ParseTextOrDie
+      - ParseTextProtoOrDie
+    CanonicalDelimiter: ''
+    BasedOnStyle:    google
+ReflowComments:  true
+SortIncludes:    true
+SortUsingDeclarations: true
+SpaceAfterCStyleCast: false
+SpaceAfterLogicalNot: false
+SpaceAfterTemplateKeyword: true
+SpaceBeforeAssignmentOperators: true
+SpaceBeforeCpp11BracedList: false
+SpaceBeforeCtorInitializerColon: true
+SpaceBeforeInheritanceColon: true
+SpaceBeforeParens: ControlStatements
+SpaceBeforeRangeBasedForLoopColon: true
+SpaceInEmptyBlock: false
+SpaceInEmptyParentheses: false
+SpacesBeforeTrailingComments: 2
+SpacesInAngles:  false
+SpacesInConditionalStatement: false
+SpacesInContainerLiterals: true
+SpacesInCStyleCastParentheses: false
+SpacesInParentheses: false
+SpacesInSquareBrackets: false
+SpaceBeforeSquareBrackets: false
+Standard:        Auto
+StatementMacros:
+  - Q_UNUSED
+  - QT_REQUIRE_VERSION
+TabWidth:        8
+UseCRLF:         false
+UseTab:          Never
+...
+
diff --git a/.github/deploy-ecosystem-configs.json b/.github/deploy-ecosystem-configs.json
new file mode 100644
index 00000000..c12d9813
--- /dev/null
+++ b/.github/deploy-ecosystem-configs.json
@@ -0,0 +1,13 @@
+{
+  "projects": [
+    {
+      "name": "Reslens",
+      "path": "ecosystem/monitoring/reslens",
+      "vercel_project_id": "prj_g5KA6QQ36ltVydRW6TUKJhgdgYjT"
+    },
+    {
+      "name": "Beacon",
+      "path": "ecosystem/ai-tools/beacon"
+    }
+  ]
+}
diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml
new file mode 100644
index 00000000..e8e1460e
--- /dev/null
+++ b/.github/workflows/build-push.yml
@@ -0,0 +1,64 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: ci    
+
+on:
+  push:
+    branches:
+      - 'master'
+
+jobs:
+  docker:
+    runs-on: ubuntu-latest
+    steps:
+      -
+        name: Checkout
+        uses: actions/checkout@v3
+      -
+        name: Set up QEMU
+        uses: docker/setup-qemu-action@v3
+      -
+        name: Set up Docker Buildx
+        uses: docker/setup-buildx-action@v3
+      -
+        name: Login to Docker Hub
+        uses: docker/login-action@v3
+        with:
+          username: ${{ secrets.DOCKERHUB_USERNAME }}
+          password: ${{ secrets.DOCKERHUB_TOKEN }}
+      -
+        name: Build and push Dockerfile
+        uses: docker/build-push-action@v5
+        with:
+          file: ./Docker/Dockerfile
+          context: .
+          platforms: linux/amd64
+          push: true
+          tags: expolab/resdb:amd64
+
+      -
+        name: Build and push Dockerfile mac
+        uses: docker/build-push-action@v5
+        with:
+          file: ./Docker/Dockerfile_mac
+          context: .
+          platforms: linux/arm64
+          push: true
+          tags: expolab/resdb:arm64
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..eb689823
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,53 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: bazel-build CI
+
+on:
+  push: 
+    branches:
+      - master
+
+  pull_request:
+    branches: 
+      - master
+
+jobs:
+  ubuntu-build:
+    name: build
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v1
+      - name: Mount bazel cache
+        uses: actions/cache@v3
+        with:
+          path: "/home/runner/.cache/bazel"
+          key: bazel
+      - name: Set up Python
+        uses: actions/setup-python@v5
+        with:
+            python-version: '3.10'
+      - name: build
+        shell: bash
+        env:
+            CC: gcc-11
+            CXX: g++-11
+        run: |
+          sudo apt install gcc-11 g++-11
+          bazel build ...
diff --git a/.github/workflows/deploy-ecosystem.yml b/.github/workflows/deploy-ecosystem.yml
new file mode 100644
index 00000000..84ffead0
--- /dev/null
+++ b/.github/workflows/deploy-ecosystem.yml
@@ -0,0 +1,175 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: Deploy Ecosystem Projects to Vercel
+
+on:
+  push:
+    branches:
+      - development
+    paths:
+      - 'ecosystem/**'
+      - '.github/workflows/deploy-ecosystem.yml'
+      - '.github/deploy-ecosystem-configs.json'
+  workflow_dispatch:
+    inputs:
+      project_name:
+        description: 'Specific project to deploy (leave empty to deploy all changed projects)'
+        required: false
+        type: string
+      force_deploy_all:
+        description: 'Force deploy all projects regardless of changes'
+        required: false
+        type: boolean
+        default: false
+
+jobs:
+  determine-projects:
+    name: Determine Projects to Deploy
+    runs-on: ubuntu-latest
+    container:
+      image: node:20-bookworm-slim
+    outputs:
+      projects: ${{ steps.filter.outputs.projects }}
+      projects_json: ${{ steps.filter.outputs.projects_json }}
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0
+          token: ${{ secrets.GITHUB_TOKEN }}
+
+      - name: Read deployment config
+        id: config
+        shell: bash
+        run: |
+          # Read JSON config file and output as multiline string
+          echo "config_json<<EOF" >> "$GITHUB_OUTPUT"
+          cat .github/deploy-ecosystem-configs.json >> "$GITHUB_OUTPUT"
+          echo "EOF" >> "$GITHUB_OUTPUT"
+
+      - name: Filter projects based on inputs
+        id: filter
+        shell: bash
+        run: |
+          # Use Node.js to parse JSON (already available in container)
+          node << 'EOF'
+          const fs = require('fs');
+          const configJson = `${{ steps.config.outputs.config_json }}`;
+          const config = JSON.parse(configJson);
+          
+          const eventName = '${{ github.event_name }}';
+          const projectName = '${{ inputs.project_name }}';
+          const forceDeployAll = '${{ inputs.force_deploy_all }}' === 'true';
+          
+          let projectsToDeploy = [];
+          
+          // Manual trigger: deploy specific project or all
+          if (eventName === 'workflow_dispatch') {
+            if (projectName) {
+              const project = config.projects.find(p => p.name === projectName);
+              if (project) {
+                projectsToDeploy = [project];
+              } else {
+                projectsToDeploy = config.projects;
+              }
+            } else if (forceDeployAll) {
+              projectsToDeploy = config.projects;
+            } else {
+              projectsToDeploy = config.projects;
+            }
+          } else {
+            // For push events, deploy all projects
+            projectsToDeploy = config.projects;
+          }
+          
+          // Output results
+          const outputFile = process.env.GITHUB_OUTPUT;
+          const projectsJson = JSON.stringify(projectsToDeploy);
+          const projectsNames = JSON.stringify(projectsToDeploy.map(p => p.name));
+          
+          fs.appendFileSync(outputFile, `projects_json<<EOF\n${projectsJson}\nEOF\n`);
+          fs.appendFileSync(outputFile, `projects=${projectsNames}\n`);
+          EOF
+
+      - name: Show projects to deploy
+        run: |
+          echo "Projects to deploy: ${{ steps.filter.outputs.projects }}"
+          PROJECTS="${{ steps.filter.outputs.projects }}"
+          if [ "$PROJECTS" = "[]" ]; then
+            echo "No projects to deploy"
+          fi
+
+  deploy:
+    name: Deploy ${{ matrix.project.name }}
+    needs: determine-projects
+    if: needs.determine-projects.outputs.projects != '[]'
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        project: ${{ fromJson(needs.determine-projects.outputs.projects_json) }}
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v4
+
+      - name: Setup Node.js
+        uses: actions/setup-node@v4
+        with:
+          node-version: '20'
+
+      - name: Install Vercel CLI
+        run: npm install --global vercel@latest
+
+      - name: Pull Vercel Environment Information
+        working-directory: ${{ matrix.project.path }}
+        env:
+          VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
+          VERCEL_ORG_ID: ${{ matrix.project.vercel_org_id || secrets.VERCEL_ORG_ID }}
+          VERCEL_PROJECT_ID: ${{ matrix.project.vercel_project_id }}
+        run: |
+          if [ -n "$VERCEL_PROJECT_ID" ] && [ -n "$VERCEL_ORG_ID" ]; then
+            mkdir -p .vercel
+            echo "$VERCEL_ORG_ID" > .vercel/org-id
+            echo "$VERCEL_PROJECT_ID" > .vercel/project-id
+          fi
+
+          vercel pull --yes --environment=production --token=$VERCEL_TOKEN || echo "Could not pull Vercel config, continuing..."
+
+      - name: Amend commit author for Vercel
+        run: |
+          # Configure git user at repo root
+          git config user.name "github-actions[bot]"
+          git config user.email "support@resilientdb.com"
+          git commit --amend --reset-author --no-edit
+          git push origin HEAD:${{ github.ref }} --force
+
+      - name: Deploy to Vercel
+        working-directory: ${{ matrix.project.path }}
+        env:
+          VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
+        run: vercel deploy --prod --yes --token=$VERCEL_TOKEN
+
+      - name: Deployment Summary
+        if: always()
+        run: |
+          echo "### Deployment: ${{ matrix.project.name }}" >> $GITHUB_STEP_SUMMARY
+          echo "- **Path:** ${{ matrix.project.path }}" >> $GITHUB_STEP_SUMMARY
+          echo "- **Status:** ${{ job.status }}" >> $GITHUB_STEP_SUMMARY
+          echo "" >> $GITHUB_STEP_SUMMARY
diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml
new file mode 100644
index 00000000..9468e396
--- /dev/null
+++ b/.github/workflows/license.yml
@@ -0,0 +1,37 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: Check Apache License
+
+on:
+  push
+
+jobs:
+  ubuntu-build:
+    name: check license
+    runs-on: ubuntu-latest
+    steps:
+     - name: Checkout
+       uses: actions/checkout@v2
+       with:
+         repository: ${{github.repository}}
+         ref: ${{ env.BRANCH_NAME }}
+
+     - name: Check License Header
+       uses: apache/skywalking-eyes/header@main
diff --git a/.github/workflows/loc.yml b/.github/workflows/loc.yml
new file mode 100644
index 00000000..dc418b1e
--- /dev/null
+++ b/.github/workflows/loc.yml
@@ -0,0 +1,62 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: LOC
+
+on:
+  push: 
+    branches:
+      - master
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    steps:
+     - name: Checkout
+       uses: actions/checkout@v2
+       with:
+         repository: ${{github.repository}}
+         ref: ${{ env.BRANCH_NAME }}
+
+     - name: NPM Init
+       run: npm init -y 
+
+     - name: NPM Install
+       run: npm install badgen @actions/core glob-gitignore
+
+     - name: Launch the local action
+       id: badge
+       uses: ./third_party/loc_script/ # Uses an action in the root directory
+       with:
+         debug: true
+         directory: ./
+         patterns: '**/*.h|**/*.cpp'
+         badge: ./output/badge.svg
+         ignore: 'node_modules/|README'
+
+     - name: Deploy to image-data branch
+       uses: peaceiris/actions-gh-pages@v3
+       with:
+         publish_dir: ./output
+         publish_branch: image-data
+         github_token: ${{ secrets.GITHUB_TOKEN }}
+         user_name: 'github-actions[bot]'
+         user_email: 'github-actions[bot]@users.noreply.github.com'
+
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 00000000..3034255f
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,47 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: Doxygen Action
+
+on:
+  push:
+    branches: [ master ]
+ 
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v2
+    
+    - name: Doxygen Action
+      uses: mattnotmitt/doxygen-action@v1.1.0
+      with:
+        # Path to Doxyfile
+        doxyfile-path: "Doxyfile" # default is ./Doxyfile
+        # Working directory
+        working-directory: "documents/doxygen/" # default is .
+
+    - name: Deploy
+      uses: peaceiris/actions-gh-pages@v3
+      with:
+        github_token: ${{ secrets.GITHUB_TOKEN }}
+        publish_dir: documents/doxygen/html
+        cname: api.resilientdb.com
+
diff --git a/.github/workflows/ut.yml b/.github/workflows/ut.yml
new file mode 100644
index 00000000..7df61531
--- /dev/null
+++ b/.github/workflows/ut.yml
@@ -0,0 +1,53 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: Unite Test 
+
+on:
+  push: 
+    branches:
+      - master
+
+  pull_request:
+    branches: 
+      - master
+
+jobs:
+  ubuntu-build:
+    name: build
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v1
+      - name: Mount bazel cache
+        uses: actions/cache@v3
+        with:
+          path: "/home/runner/.cache/bazel"
+          key: bazel
+      - name: Set up Python
+        uses: actions/setup-python@v5
+        with:
+            python-version: '3.10'
+      - name: build
+        shell: bash
+        env:
+            CC: gcc-11
+            CXX: g++-11
+        run: |
+          sudo apt install gcc-11 g++-11
+          bazel build ...
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..6d1b093f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,23 @@
+deps/*/
+scripts/deploy/config/key.conf
+scripts/deploy/config_out/
+deploy/kv_server/output/
+.idea/
+.vscode/
+.DS_Store
+bazel-*
+*.log
+*.bak
+venv
+sdk_validator/venv
+__pycache__
+MODULE.*
+apache_release
+*.out.*
+*.data.*
+*.pb.*
+.cache/
+resdb/
+100*_db/
+gmon.out
+.history/
\ No newline at end of file
diff --git a/.licenserc.yaml b/.licenserc.yaml
new file mode 100644
index 00000000..badb8a63
--- /dev/null
+++ b/.licenserc.yaml
@@ -0,0 +1,21 @@
+header:
+  license:
+    spdx-id: Apache-2.0
+    copyright-owner: Apache Software Foundation
+
+  paths-ignore:
+    - '.*'
+    - '.**/**'
+    - '**/*.sol'
+    - CNAME
+    - DISCLAIMER
+    - LICENSE
+    - NOTICE
+    - 'dev/.rat-excludes'
+    - 'documents/doxygen/.gitignore'
+    - 'third_party/loc_script/src/index.js'
+
+
+
+  comment: on-failure
+
diff --git a/BUILD.bazel b/BUILD.bazel
new file mode 100644
index 00000000..a2966540
--- /dev/null
+++ b/BUILD.bazel
@@ -0,0 +1,35 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+load("@rules_foreign_cc//foreign_cc:defs.bzl", "make")
+
+make(
+    name = "cryptopp",
+    lib_source = "@cryptopp//:all_srcs",
+    out_static_libs = ["libcryptopp.a"],
+)
+
+cc_library(
+    name = "cryptopp_lib",
+    deps = [
+        ":cryptopp",
+    ],
+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 00000000..7708eaf6
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,168 @@
+<!-- #
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#  -->
+
+# Change Log
+
+### Apache ResilientDB v1.11.0 ([2025-4-27](https://github.com/resilientdb/resilientdb/releases/tag/v1.11.0))
+* Support Combined Runtime for SmartContact and Key-value Service. ([Junchao Chen](https://github.com/cjcchen))
+
+
+### Apache ResilientDB v1.10.1 ([2024-4-16](https://github.com/resilientdb/resilientdb/releases/tag/v1.10.1))
+* Remove the binary keys from the source code. ([Junchao Chen](https://github.com/cjcchen))
+* Fix few bugs on Docker and performance tools. ([Gopal Nambiar](gopalnambiar2@gmail.com), [Junchao Chen](https://github.com/cjcchen))
+
+### Apache ResilientDB v1.10.0 ([2024-4-16](https://github.com/resilientdb/resilientdb/releases/tag/v1.10.0-rc01))
+
+Add the prototype of PoE. ([Junchao Chen](https://github.com/cjcchen))
+
+* Implement the base version of the Proof-of-Execution (PoE) Consensus Protocol [EDBT 2011].
+
+Add ResView Data Collection and APIs ([Saipranav-Kotamreddy](https://github.com/Saipranav-Kotamreddy))
+
+* Consensus data such as PBFT messages and states is now collected and stored
+* Added APIs to query consensus data and progress of replicas
+* Added APIs to trigger faultiness and test view change
+
+### NexRes v1.9.0 ([2023-11-29](https://github.com/resilientdb/resilientdb/releases/tag/nexres-v1.9.0))
+
+Support Multi-version Key-Value Interface. ([Junchao Chen](https://github.com/cjcchen))
+
+* Get and Set need to provide a version number to fetch the correct version of the data (if exists) or write to the correct version of data (if not overwritten already), respectively.
+* Provide interfaces to obtain historical data with a specific version or a range of versions.
+
+
+### NexRes v1.8.0 ([2023-08-21](https://github.com/resilientdb/resilientdb/releases/tag/nexres-v1.8.0))
+
+**Implemented Enhancements:** The view-change recovery protocol was extensively expanded to support the following Byzantine failures through primary/leader replacement and replica recovery. ([Dakai Kang](https://github.com/DakaiKang))
+
+* Byzantine primary becomes non-responsive, stopping proposing any new Pre-Prepare messages.
+* Byzantine primary equivocates, proposing two different client requests to two subsets of replicas.
+* Byzantine replicas try to keep some non-faulty replicas in the dark.
+* Byzantine new primary becomes non-responsive, refusing to broadcast New-View messages.
+
+### NexRes v1.7.0 ([2023-08-04](https://github.com/resilientdb/resilientdb/releases/tag/nexres-v1.7.0))
+
+**Implemented Enhancements:** For each replica local recovery from durable storage upon system restart was added.([Junchao Chen](https://github.com/cjcchen))
+
+
+### NexRes v1.6.0 ([2023-05-30](https://github.com/resilientdb/resilientdb/releases/tag/nexres-v1.6.0))
+
+**Implemented Enhancements:** Refactoring and enhancement of the codebase to highlight the entire software stack of ResilientDB consisting of the following layers ([Junchao Chen](https://github.com/cjcchen))
+
+* SDK Layer (C++, Python, Go, Solidity)
+* Interface Layer (key-value, smart contract, UTXO)
+* ResilientDB Database Connectivity (RDBC) API
+* Platform Layer (consensus, chain, network, notary)
+* Transaction Layer (execution runtime and in-memory chain state)
+* Storage Layer (chain and chain state durability)
+
+
+### NexRes v1.5.0 ([2023-04-04](https://github.com/resilientdb/resilientdb/releases/tag/nexres-v1.5.0))
+
+**Implemented Enhancements:** 
+* A complete refactoring of the codebase such that (1) the core engine code is now moved to the platform folder, including the formwork architectures and protocols implementations; (2) the API/interface-related code is moved to the service folder, including UTXO, smart contract, and key-value interface;  (3) the python SDK code is moved to a different repository [here](https://github.com/resilientdb/sdk) ([Junchao Chen](https://github.com/cjcchen)).
+
+### NexRes v1.4.0 ([2023-02-28](https://github.com/resilientdb/resilientdb/releases/tag/nexres-v.1.4.0))
+Major Changes
+* Support of UTXO model and wallet integration: [Detailed Documentation](https://blog.resilientdb.com/2023/02/12/GettingStartedOnUtxo.html) ([Junchao Chen](https://github.com/cjcchen))
+
+
+### NexRes v1.3.0 ([2023-02-22](https://github.com/resilientdb/resilientdb/releases/tag/nexres-v1.3.0))
+
+**Implemented Enhancements:** 
+* Added Python SDK that supports UTXO-like transactions such as asset creation, transfer, and multi-party validations. ([Arindaam Roy](https://github.com/royari), [Glenn Chen](https://github.com/glenn-chen), and [Julieta Duarte](https://github.com/juduarte00))
+* Added REST CROW endpoints to interface with the on-chain KV service. ([Glenn Chen](https://github.com/glenn-chen) and [Julieta Duarte](https://github.com/juduarte00))
+* Extended KV service range queries. ([Glenn Chen](https://github.com/glenn-chen) and [Julieta Duarte](https://github.com/juduarte00))
+
+**Fixed Bugs:**
+* Fixed KV service queries on all values retrieving empty placeholder values ([Glenn Chen](https://github.com/glenn-chen))
+
+### NexRes v1.2.0 ([2023-01-29](https://github.com/resilientdb/resilientdb/releases/tag/nexres-v1.2.0))
+
+**Implemented Enhancements:** 
+* Support smart contract compiled from Solidity. ([Junchao Chen](https://github.com/cjcchen)) 
+* Use eEVM as a back-end service to execute the contract functions. ([Junchao Chen](https://github.com/cjcchen))
+
+### NexRes v1.1.0 ([2023-01-03](https://github.com/resilientdb/resilientdb/releases/tag/nexres-v1.1.0))
+
+**Implemented Enhancements:** 
+
+* Added Geo-Scale Byzantine Fault-tolerant consensus protocol, referred to as GeoBFT. It is designed for excellent scalability by using a topological-aware grouping of replicas in local clusters, giving rise to parallelization of consensus at the local level and by minimizing communication between clusters. ([WayneWang](https://github.com/WayneJa))
+
+ResilientDB: Global Scale Resilient Blockchain Fabric, VLDB 2020
+
+### NexRes v1.0.1 ([2022-10-13](https://github.com/resilientdb/resilientdb/releases/tag/nexres-v1.0.1))
+
+**Implemented Enhancements:** 
+
+* Add node manager backend for resilientdb.com to launch NexRes locally. ([Vishnu](https://github.com/sheshavpd) and [Junchao Chen](https://github.com/cjcchen))
+
+### NexRes v1.0.0 ([2022-09-30](https://github.com/resilientdb/resilientdb/releases/tag/nexres-v1.0.0))
+
+**Implemented Enhancements:** 
+
+* Release the next generation of RelisientDB referred to as NexRes. ([Junchao Chen](https://github.com/cjcchen))
+* NexRes supports PBFT as the default core protocol and provides a KV-Server as a service. ([Junchao Chen](https://github.com/cjcchen))
+* NexRes also supports LevelDB and RocksDB as the durable storage layer. ([Junchao Chen](https://github.com/cjcchen))
+* Add SDK endpoints. ([Junchao Chen](https://github.com/cjcchen))
+* Add implementation of Dashboard. ([Jianxio](https://github.com/jyu25utk))
+* Add the recovery protocol and checkpoint on PBFT. ([Junchao Chen](https://github.com/cjcchen) and [Vishnu](https://github.com/sheshavpd))
+
+
+### NexRes v1.0.0-alpha ([2022-09-22](https://github.com/resilientdb/resilientdb/releases/tag/nexres-alpha))
+
+**Implemented Enhancements:** 
+* Release the next generation of RelisientDB, a complete rewrite and re-architecting, referred to as NexRes. ([Junchao Chen](https://github.com/cjcchen))
+* NexRes supports PBFT as the default core protocol and provides a KV-Server as a service. ([Junchao Chen](https://github.com/cjcchen))
+* NexRes also supports LevelDB and RocksDB as the durable storage layer. ([Glenn Chen](https://github.com/glenn-chen), [Julieta Duarte](https://github.com/juduarte00), and [Junchao Chen](https://github.com/cjcchen))
+
+
+### v3.0 ([2021-09-30](https://github.com/resilientdb/resilientdb/releases/tag/v3.0))
+
+**Implemented Enhancements:** 
+* GeoBFT Protocol Added ([Sajjad Rahnama](https://github.com/sajjadrahnama))
+* Work Queue structure changed ([Sajjad Rahnama](https://github.com/sajjadrahnama))
+* Refactoring, and added Statistics and Scripts ([Sajjad Rahnama](https://github.com/sajjadrahnama))
+
+
+### v2.0 ([2020-02-29](https://github.com/resilientdb/resilientdb/releases/tag/v2.0))
+
+**Implemented Enhancements:** 
+* A GUI display for ResilientDB to ease user interaction and analysis. [#9](https://github.com/resilientdb/resilientdb/issues/9) ([Sajjad Rahnama](https://github.com/sajjadrahnama) and [RohanSogani](https://github.com/RohanSogani))
+* Added support for Smart Contracts with a Banking use case. [#7](https://github.com/resilientdb/resilientdb/issues/7) ([Sajjad Rahnama](https://github.com/sajjadrahnama))
+* Monitoring results for visualizing graphs using influxdb. [#8](https://github.com/resilientdb/resilientdb/issues/8) ([Sajjad Rahnama](https://github.com/sajjadrahnama), [Dhruv Krishnan](https://github.com/DhruvKrish) and [Priya Holani](https://github.com/Holani))
+* Added support for SQLite and provided a new representation for in-memory storage. [#6](https://github.com/resilientdb/resilientdb/issues/6) ([Sajjad Rahnama](https://github.com/sajjadrahnama))
+
+**Fixed Bugs:**
+* Bug in the Chain Initialization [#5](https://github.com/resilientdb/resilientdb/issues/5) ([Sajjad Rahnama](https://github.com/sajjadrahnama))
+
+
+### v1.1 ([2019-12-05](https://github.com/resilientdb/resilientdb/releases/tag/v1.1)) 
+
+**Implemented Enhancements:**
+* Defined class to represent ledger. [6b0fdc5](https://github.com/resilientdb/resilientdb/commit/56f500fe5e4749c45f57dc8e62d12bc7a218ce69) ([Suyash Gupta](https://github.com/gupta-suyash))
+
+**Fixed Bugs:**
+* Docker script fails to run for multiple client [#1](https://github.com/resilientdb/resilientdb/issues/1) ([RohanSogani](https://github.com/RohanSogani))	
+
+### v1.0 ([2019-11-24](https://github.com/resilientdb/resilientdb/releases/tag/v1.0)) 
+
+Launched ResilientDB ([Suyash Gupta](https://github.com/gupta-suyash) and [Sajjad Rahnama](https://github.com/sajjadrahnama))
+
+
diff --git a/CNAME b/CNAME
new file mode 100644
index 00000000..f53fa6a9
--- /dev/null
+++ b/CNAME
@@ -0,0 +1 @@
+api.resilientdb.com
\ No newline at end of file
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 00000000..ccd3a3bd
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,95 @@
+<!-- #
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# -->
+
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as
+contributors and maintainers pledge to making participation in our project and
+our community a harassment-free experience for everyone, regardless of age, body
+size, disability, ethnicity, sex characteristics, gender identity and expression,
+level of experience, education, socio-economic status, nationality, personal
+appearance, race, religion, or sexual identity and orientation.
+
+## Our Standards
+
+Examples of behavior that contributes to creating a positive environment
+include:
+
+* Using welcoming and inclusive language
+* Being respectful of differing viewpoints and experiences
+* Gracefully accepting constructive criticism
+* Focusing on what is best for the community
+* Showing empathy towards other community members
+
+Examples of unacceptable behavior by participants include:
+
+* The use of sexualized language or imagery and unwelcome sexual attention or
+ advances
+* Trolling, insulting/derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or electronic
+ address, without explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Our Responsibilities
+
+Project maintainers are responsible for clarifying the standards of acceptable
+behavior and are expected to take appropriate and fair corrective action in
+response to any instances of unacceptable behavior.
+
+Project maintainers have the right and responsibility to remove, edit, or
+reject comments, commits, code, wiki edits, issues, and other contributions
+that are not aligned to this Code of Conduct, or to ban temporarily or
+permanently any contributor for other behaviors that they deem inappropriate,
+threatening, offensive, or harmful.
+
+## Scope
+
+This Code of Conduct applies both within project spaces and in public spaces
+when an individual is representing the project or its community. Examples of
+representing a project or community include using an official project e-mail
+address, posting via an official social media account, or acting as an appointed
+representative at an online or offline event. Representation of a project may be
+further defined and clarified by project maintainers.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported by contacting the project team at support@resilientdb.com. All
+complaints will be reviewed and investigated and will result in a response that
+is deemed necessary and appropriate to the circumstances. The project team is
+obligated to maintain confidentiality with regard to the reporter of an incident.
+Further details of specific enforcement policies may be posted separately.
+
+Project maintainers who do not follow or enforce the Code of Conduct in good
+faith may face temporary or permanent repercussions as determined by other
+members of the project's leadership.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
+available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
+
+[homepage]: https://www.contributor-covenant.org
+
+For answers to common questions about this code of conduct, see
+https://www.contributor-covenant.org/faq
diff --git a/DISCLAIMER b/DISCLAIMER
new file mode 100644
index 00000000..d94e089d
--- /dev/null
+++ b/DISCLAIMER
@@ -0,0 +1,22 @@
+Apache ResilientDB is an effort undergoing incubation at the Apache Software
+Foundation (ASF), sponsored by the Apache Incubator PMC.
+
+Incubation is required of all newly accepted projects until a further review
+indicates that the infrastructure, communications, and decision making process
+have stabilized in a manner consistent with other successful ASF projects.
+
+While incubation status is not necessarily a reflection of the completeness
+or stability of the code, it does indicate that the project has yet to be
+fully endorsed by the ASF.
+
+Some of the incubating project’s releases may not be fully compliant with ASF policy.
+For example, releases may have incomplete or un-reviewed licensing conditions.
+What follows is a list of known issues the project is currently aware of
+(note that this list, by definition, is likely to be incomplete):
+
+If you are planning to incorporate this work into your product/project, please
+be aware that you will need to conduct a thorough licensing review to determine
+the overall implications of including this work. For the current status of this
+project through the Apache Incubator visit:
+https://incubator.apache.org/projects/resilientdb.html
+
diff --git a/Docker/Dockerfile b/Docker/Dockerfile
new file mode 100644
index 00000000..c68060dd
--- /dev/null
+++ b/Docker/Dockerfile
@@ -0,0 +1,56 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+FROM ubuntu:20.04
+
+ARG DEBIAN_FRONTEND=noninteractive
+
+# Update package lists and install required dependencies
+RUN apt-get update && apt-get install -y \
+    apt-transport-https \
+    curl \
+    gnupg \
+    protobuf-compiler \
+    rapidjson-dev \
+    build-essential \
+    openjdk-11-jdk \
+    zip \
+    unzip \
+    clang-format
+
+# Install Bazel
+RUN curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg \
+    && mv bazel.gpg /etc/apt/trusted.gpg.d/ \
+    && echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \
+    && curl https://bazel.build/bazel-release.pub.gpg | apt-key add - \
+    && apt-get update && apt-get install -y bazel=6.0.0 \
+    && rm /etc/apt/sources.list.d/bazel.list
+
+# Set the working directory
+WORKDIR /app
+
+# Copy your project files to the container
+COPY . /app
+
+# Build the project with Bazel 
+RUN bazel --version
+RUN bazel build @com_github_bazelbuild_buildtools//buildifier:buildifier
+RUN bazel build service/tools/kv/api_tools/kv_service_tools
+
+ENTRYPOINT ["./entrypoint.sh"]
diff --git a/Docker/Dockerfile_mac b/Docker/Dockerfile_mac
new file mode 100644
index 00000000..fb629b39
--- /dev/null
+++ b/Docker/Dockerfile_mac
@@ -0,0 +1,53 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# Use a base image for ARM64 architecture
+FROM arm64v8/ubuntu:20.04
+
+ARG DEBIAN_FRONTEND=noninteractive
+
+# Update package lists and install required dependencies
+RUN apt-get update && apt-get install -y \
+    apt-transport-https \
+    curl \
+    gnupg \
+    protobuf-compiler \
+    rapidjson-dev \
+    build-essential \
+    openjdk-11-jdk \
+    zip \
+    unzip \
+    clang-format
+
+# Install Bazelisk
+RUN curl -Lo /usr/local/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-arm64 \
+    && chmod +x /usr/local/bin/bazel
+
+# Set the working directory
+WORKDIR /app
+
+# Copy your project files to the container
+COPY . /app
+
+# Build the project with Bazel
+RUN bazel --version
+RUN bazel build @com_github_bazelbuild_buildtools//buildifier:buildifier
+RUN bazel build service/tools/kv/api_tools/kv_service_tools
+
+ENTRYPOINT ["./entrypoint.sh"]
diff --git a/INSTALL.sh b/INSTALL.sh
new file mode 100755
index 00000000..b7c1e9cd
--- /dev/null
+++ b/INSTALL.sh
@@ -0,0 +1,66 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+#!/bin/bash
+
+
+sudo apt update
+sudo apt install apt-transport-https curl gnupg -y
+sudo apt-get install protobuf-compiler -y
+sudo apt-get install rapidjson-dev -y
+
+curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg
+sudo mv bazel.gpg /etc/apt/trusted.gpg.d/ 
+echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
+curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
+sudo apt update && sudo apt install bazel=6.0.0 -y
+sudo apt install clang-format -y
+rm $PWD/.git/hooks/pre-push
+ln -s $PWD/hooks/pre-push $PWD/.git/hooks/pre-push
+
+bazel --version
+ret=$?
+
+if [[ $ret != "0" ]]; then
+
+sudo apt-get install build-essential openjdk-11-jdk zip unzip -y
+rm bazel-6.0.0-dist.zip
+rm -rf bazel_build
+wget wget https://releases.bazel.build/6.0.0/release/bazel-6.0.0-dist.zip
+mkdir -p bazel_build
+mv bazel-6.0.0-dist.zip bazel_build/
+cd bazel_build
+
+unzip bazel-6.0.0-dist.zip
+
+export JAVA_HOME='/usr/lib/jvm/java-1.11.0-openjdk-arm64/'
+env EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" bash ./compile.sh
+sudo cp output/bazel /usr/local/bin/
+cd ..
+rm -rf bazel_build
+
+fi
+
+# install buildifier
+bazel build @com_github_bazelbuild_buildtools//buildifier:buildifier
+
+sudo apt-get install python3.10-dev -y
+sudo apt-get install python3-dev -y
+
+
diff --git a/INSTALL/README.md b/INSTALL/README.md
new file mode 100755
index 00000000..152601a9
--- /dev/null
+++ b/INSTALL/README.md
@@ -0,0 +1,62 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#   http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# Prerequire 
+python3.10
+
+pip
+
+```
+sudo apt update
+sudo apt-get install python3.10-dev -y
+sudo apt-get install python3-dev -y
+sudo apt-get install python3-pip -y
+```
+
+# Install Protobuf
+```
+cd protobuf
+./install_protobuf.sh
+```
+
+# Install Bazel
+```
+cd bazel
+wget https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/bazelisk-darwin-amd64
+chmod +x bazelisk-darwin-amd64
+mkdir -p bin
+mv bazelisk-darwin-amd64 bin/bazel
+
+bin/bazel --version
+echo "export PATH="$PATH:$PWD/bin"" >> ~/.bashrc
+. ~/.bashrc
+```
+or
+```
+cd bazel
+./install_bazel.sh
+echo "export PATH="$PATH:$PWD/bin"" >> ~/.bashrc
+. ~/.bashrc
+```
+
+
+test bazel
+```
+bazel --version
+```
diff --git a/INSTALL/bazel/install_bazel.sh b/INSTALL/bazel/install_bazel.sh
new file mode 100755
index 00000000..499de820
--- /dev/null
+++ b/INSTALL/bazel/install_bazel.sh
@@ -0,0 +1,27 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+wget wget https://github.com/bazelbuild/bazelisk/releases/download/v1.8.1/bazelisk-linux-amd64
+chmod +x bazelisk-linux-amd64
+mkdir -p bin
+mv bazelisk-linux-amd64 bin/bazel
+
+bin/bazel --version
+echo "export PATH="$PATH:$PWD/bin"" >> ~/.bashrc
+. ~/.bashrc
diff --git a/INSTALL/protobuf/install_protobuf.sh b/INSTALL/protobuf/install_protobuf.sh
new file mode 100755
index 00000000..66edc5ac
--- /dev/null
+++ b/INSTALL/protobuf/install_protobuf.sh
@@ -0,0 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+pip install protobuf
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000..ad9b5c8b
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,235 @@
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+================================================================
+
+This product includes a number of dependencies with separate copyright notices
+and license terms. Your use of these submodules is subject to the terms and
+conditions of the following licenses.
+
+================================================================
+MIT licenses
+================================================================
+
+third_party/loc_script/src/index.js files from  https://github.com/shadowmoose/GHA-LoC-Badge/blob/1.0.0/src/index.js
+
+MIT License
+
+Copyright (c) 2020 Mike
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/NOTICE b/NOTICE
new file mode 100644
index 00000000..6bb607f8
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,6 @@
+Apache ResilientDB (Incubating)
+Copyright 2023-2025 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
diff --git a/README.md b/README.md
new file mode 100644
index 00000000..664f009a
--- /dev/null
+++ b/README.md
@@ -0,0 +1,476 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+--> 
+
+![](https://img.shields.io/github/v/release/resilientdb/resilientdb)
+![](https://img.shields.io/badge/language-c++-orange.svg)
+![](https://img.shields.io/badge/platform-Ubuntu20.0+-lightgrey.svg)
+![GitHub](https://img.shields.io/github/license/resilientdb/resilientdb)
+![Generated Button](https://raw.githubusercontent.com/resilientdb/resilientdb/image-data/badge.svg)
+![build](https://github.com/resilientdb/resilientdb/workflows/bazel-build%20CI/badge.svg)
+![build](https://github.com/resilientdb/resilientdb/workflows/Unite%20Test/badge.svg)
+
+
+
+# ResilientDB: Global-Scale Sustainable Blockchain Fabric
+
+**[ResilientDB](https://resilientdb.com/)** is a **High Throughput Yielding Permissioned Blockchain Fabric** founded by **[ExpoLab](https://expolab.org/)** at **[UC Davis](https://www.ucdavis.edu/)** in 2018. ResilientDB advocates a **system-centric** design by adopting a **multi-threaded architecture** that encompasses **deep pipelines**. Further, ResilientDB **separates** the ordering of client transactions from their execution, which allows it to **process messages out-of-order**.
+
+# Downloads:
+Download address for run-directly software package: https://downloads.apache.org/incubator/resilientdb/
+
+### Quick Facts on ResilientDB
+1. ResilientDB orders client transactions through a highly optimized implementation of the  **[PBFT](https://pmg.csail.mit.edu/papers/osdi99.pdf)** [Castro and Liskov, 1998] protocol, which helps to achieve consensus among its replicas. ResilientDB also supports deploying other state-of-the-art consensus protocols *[release are planned]* such as **[GeoBFT](http://www.vldb.org/pvldb/vol13/p868-gupta.pdf)** [**[blog](https://blog.resilientdb.com/2023/03/07/GeoBFT.html), [released](https:// [...]
+2. ResilientDB requires deploying at least **3f+1** replicas, where **f (f > 0)** is the maximum number of arbitrary (or malicious) replicas.
+3. ResilientDB supports primary-backup architecture, which designates one of the replicas as the **primary** (replica with identifier **0**). The primary replica initiates consensus on a client transaction, while backups agree to follow a non-malicious primary.
+4. ResilientDB exposes a wide range of interfaces such as a **Key-Value** store, **Smart Contracts**, **UTXO**, and **Python SDK**. Following are some of the decentralized applications (DApps) built on top of ResilientDB: **[NFT Marketplace](https://nft.resilientdb.com/)** and **[Debitable](https://debitable.resilientdb.com/)**.
+5. To persist blockchain, chain state, and metadata, ResilientDB provides durability through  **LevelDB**.
+6. ResilientDB provides access to a seamless **GUI display** for deployment and maintenance, and supports  **Grafana** for plotting monitoring data. 
+7. **[Historial Facts]** The ResilientDB project was founded by **[Mohammad Sadoghi](https://expolab.org/)** along with his students ([Suyash Gupta](https://gupta-suyash.github.io/index.html) as the lead Architect, [Sajjad Rahnama](https://sajjadrahnama.com/) as the lead System Designer, and [Jelle Hellings](https://www.jhellings.nl/)) at **[UC Davis](https://www.ucdavis.edu/)** in 2018 and was open-sourced in late 2019. On September 30, 2021, we released ResilientDB v-3.0. In 2022, Resi [...]
+
+<div align = "center">
+<img src="./img/resdb-v2.png" width="220">
+<img src="./img/apache-resdb.png" width="80">
+<img src="./img/apache-incubator.png" width="250">
+</div>
+
+---
+
+
+## Online Documentation:
+
+The latest ResilientDB documentation, including a programming guide, is available on our **[blog repository](https://blog.resilientdb.com/archive.html?tag=NexRes)**. This README file provides basic setup instructions.
+
+#### Table of Contents
+1. Software Stack Architecture 
+   - SDK, Interface/API, Platform, Execution, and Chain Layers 
+   - Detailed API Documentation: **[Core](https://api.resilientdb.com/)** and **[SDK](https://sdk.resilientdb.com/)**
+2. **SDK Layer:** **[Python SDK](https://blog.resilientdb.com/2023/02/01/UsingPythonSDK.html)** and **[Wallet - ResVault](https://blog.resilientdb.com/2023/09/21/ResVault.html)**
+3. **Interface Layer:** **[Key-Value](https://blog.resilientdb.com/2022/09/28/GettingStartedNexRes.html)**, **[Solidity Smart Contract](https://blog.resilientdb.com/2023/01/15/GettingStartedSmartContract.html)**, **[Unspent Transaction Output (UTXO) Model](https://blog.resilientdb.com/2023/02/12/UtxoOnNexres.html)**, ResilientDB Database Connectivity (RDBC) API
+4. **Platform Layer:** **[Consensus Manager Architecture (ordering, recovery, network, chain management)](https://blog.resilientdb.com/2022/09/27/What_Is_NexRes.html)**
+   - **[Recovery & Checkpoint Design](https://blog.resilientdb.com/2023/08/22/ViewChangeInNexRes.html)**
+5. **Execution Layer:** Transaction Manager Design (Runtime) 
+6. **Chain Layer:** Chain State & Storage Manager Design (**[durability](https://blog.resilientdb.com/2023/02/15/NexResDurabilityLayer.html)**) 
+7. **[Installing & Deploying ResilientDB](https://blog.resilientdb.com/2022/09/28/GettingStartedNexRes.html)**
+   - Build Your First Application: **[KV Service](https://blog.resilientdb.com/2022/09/28/StartYourApplication.html)**, **[UTXO](https://blog.resilientdb.com/2023/02/12/GettingStartedOnUtxo.html)**
+   - Dashboard: **[Monitoring](https://blog.resilientdb.com/2022/12/06/NexResGrafanaDashboardInstallation.html)**, **[Deployment](https://blog.resilientdb.com/2022/12/06/DeployGrafanaDashboardOnOracleCloud.html)**, **[Data Pipeline](https://blog.resilientdb.com/2022/12/12/NexResGrafanaDashboardPipeline.html)**
+   - System Parameters & Configuration   
+   - Continuous Integration & Testing 
+
+<div align = "center">
+<img src="./img/nexres.png" width="600">
+</div>
+
+## OS Requirements
+Ubuntu 20+
+
+---
+
+## Project Structure
+
+```
+incubator-resilientdb/
+├── api/                              # API layer and interfaces
+├── benchmark/                        # Performance benchmarking tools
+│   └── protocols/                    # Protocol-specific benchmarks
+│       ├── pbft/                     # PBFT protocol benchmarks
+│       └── poe/                      # PoE protocol benchmarks
+├── chain/                           # Blockchain chain management
+│   ├── state/                       # Chain state management
+│   └── storage/                     # Storage layer (LevelDB, etc.)
+├── common/                          # Common utilities and libraries
+│   ├── crypto/                      # Cryptographic functions
+│   ├── lru/                         # LRU cache implementation
+│   ├── proto/                       # Protocol buffer definitions
+│   ├── test/                        # Testing utilities
+│   └── utils/                       # General utilities
+├── ecosystem/                       # Ecosystem components (git subtrees)
+│   ├── cache/                       # Caching implementations
+│   │   ├── resilient-node-cache/    # Node.js caching
+│   │   └── resilient-python-cache/  # Python caching
+│   ├── deployment/                  # Deployment and infrastructure
+│   │   ├── ansible/                 # Ansible playbooks
+│   │   └── orbit/                   # Orbit deployment tool
+│   ├── graphql/                     # GraphQL service
+│   ├── monitoring/                  # Monitoring and observability
+│   │   ├── reslens/                 # ResLens monitoring tool
+│   │   └── reslens-middleware/      # ResLens middleware
+│   ├── sdk/                         # Software Development Kits
+│   │   ├── resdb-orm/               # Python ORM
+│   │   ├── resvault-sdk/            # ResVault SDK
+│   │   └── rust-sdk/                # Rust SDK
+│   ├── smart-contract/              # Smart contract ecosystem
+│   │   ├── rescontract/             # ResContract repository
+│   │   ├── resilient-contract-kit/  # Contract development toolkit
+│   │   └── smart-contract-graphql/  # Smart contract GraphQL service
+│   └── tools/                       # Development and operational tools
+│       ├── create-resilient-app/    # App scaffolding tool
+│       └── resvault/                # ResVault tool
+├── executor/                        # Transaction execution engine
+│   ├── common/                      # Common execution utilities
+│   ├── contract/                    # Smart contract execution
+│   ├── kv/                          # Key-value execution
+│   └── utxo/                        # UTXO execution
+├── interface/                       # Client interfaces and APIs
+│   ├── common/                      # Common interface utilities
+│   ├── contract/                    # Smart contract interface
+│   ├── kv/                          # Key-value interface
+│   ├── rdbc/                        # ResilientDB Database Connectivity
+│   └── utxo/                        # UTXO interface
+├── monitoring/                      # Core monitoring components
+├── platform/                        # Core platform components
+│   ├── common/                      # Common platform utilities
+│   ├── config/                      # Configuration management
+│   ├── consensus/                   # Consensus protocols
+│   │   ├── checkpoint/              # Checkpoint management
+│   │   ├── execution/               # Transaction execution
+│   │   ├── ordering/                # Transaction ordering
+│   │   └── recovery/                # Recovery mechanisms
+│   ├── networkstrate/               # Network strategy layer
+│   ├── proto/                       # Protocol definitions
+│   ├── rdbc/                        # RDBC implementation
+│   └── statistic/                   # Statistics and metrics
+├── proto/                           # Protocol buffer definitions
+│   ├── contract/                    # Smart contract protos
+│   ├── kv/                          # Key-value protos
+│   └── utxo/                        # UTXO protos
+├── scripts/                         # Deployment and utility scripts
+│   └── deploy/                      # Deployment scripts
+├── service/                         # Service implementations
+│   ├── contract/                    # Smart contract service
+│   ├── kv/                          # Key-value service
+│   ├── tools/                       # Service tools
+│   ├── utils/                       # Service utilities
+│   └── utxo/                        # UTXO service
+├── third_party/                     # Third-party dependencies
+└── tools/                           # Development and build tools
+```
+
+**Note**: The `ecosystem/` directory contains git subtrees for ecosystem components. You can clone the repository without ecosystem components for a smaller, faster download. See [ecosystem/README.md](ecosystem/README.md) for details.
+
+## Build and Deploy ResilientDB
+
+Next, we show how to quickly build ResilientDB and deploy 4 replicas and 1 client proxy on your local machine. The proxy acts as an interface for all the clients. It batches client requests and forwards these batches to the replica designated as the leader. The 4 replicas participate in the PBFT consensus to order and execute these batches. Post execution, they return the response to the leader.
+
+Install dependencies:
+
+    ./INSTALL.sh
+
+For non-root users, see [INSTALL/README.md](https://github.com/apache/incubator-resilientdb/blob/master/INSTALL/README.md)
+
+Run ResilientDB (Providing a Key-Value Service):
+
+    ./service/tools/kv/server_tools/start_kv_service.sh
+    
+- This script starts 4 replicas and 1 client. Each replica instantiates a key-value store.
+
+Build Interactive Tools:
+
+    bazel build service/tools/kv/api_tools/kv_service_tools
+
+### Issues ###
+If you cannot build the project successfully, try to reduce the bazel jobs [here](
+https://github.com/apache/incubator-resilientdb/blob/master/.bazelrc#L1).
+
+## Functions ##
+ResilientDB supports two types of functions: version-based and non-version-based.
+Version-based functions will leverage versions to protect each update, versions must be obtained before updating a key.
+
+***Note***: Version-based functions are not compatible with non-version-based functions. Do not use both in your applications.
+
+We show the functions below and show how to use [kv_service_tools](service/tools/kv/api_tools/kv_service_tools.cpp) to test the function.
+
+### Version-Based Functions ###
+#### Get ####
+Obtain the value of `key` with a specific version `v`.
+
+      kv_service_tools --config config_file --cmd get_with_version --key key --version v
+
+|  parameters   |  descriptions |
+|  ----  | ----  |
+| config  | the path of the client config which points to the db entrance |
+| cmd  | get_with_version |
+| key  | the key you want to obtain |
+| version | the version you want to obtain. (If the `v` is 0, it will return the latest version |
+
+
+Example:
+
+      bazel-bin/service/tools/kv/api_tools/kv_service_tools --config service/tools/config/interface/service.config --cmd get_with_version --key key1 --version 0
+
+Results:
+> get key = key1, value = value: "v2"
+> version: 2
+
+#### Set ####
+Set `value` to the key `key` based on version `v`.
+
+      kv_service_tools --config config_file --cmd set_with_version --key key --version v --value value
+
+|  parameters   |  descriptions |
+|  ----  | ----  |
+| config  | the path of the client config which points to the db entrance |
+| cmd  | set_with_version |
+| key  | the key you want to set |
+| version | the version you have obtained. (If the version has been changed during the update, the transaction will be ignored) |
+| value | the new value |
+
+Example:
+
+      bazel-bin/service/tools/kv/api_tools/kv_service_tools --config service/tools/config/interface/service.config --cmd set_with_version --key key1 --version 0 --value v1
+
+Results:
+> set key = key1, value = v3, version = 2 done, ret = 0
+> 
+> current value = value: "v3"
+> version: 3
+
+#### Get Key History ####
+Obtain the update history of key `key` within the versions [`v1`, `v2`].
+
+      kv_service_tools --config config_file --cmd get_history --key key --min_version v1 --max_version v2
+
+
+|  parameters   |  descriptions |
+|  ----  | ----  |
+| config  | the path of the client config which points to the db entrance |
+| cmd  | get_history |
+| key  | the key you want to obtain |
+| min_version | the minimum version you want to obtain |
+| max_version | the maximum version you want to obtain |
+
+Example:
+
+      bazel-bin/service/tools/kv/api_tools/kv_service_tools --config service/tools/config/interface/service.config --cmd get_history --key key1 --min_version 1 --max_version 2
+
+Results:
+
+> get history key = key1, min version = 1, max version = 2 <br>
+>  value = <br>
+> item { <br>
+>  &ensp; key: "key1" <br>
+>  &ensp; value_info { <br>
+>  &ensp;&ensp; value: "v1" <br>
+>  &ensp;&ensp; version: 2 <br>
+> &ensp;} <br>
+> } <br>
+> item { <br>
+> &ensp; key: "key1" <br>
+> &ensp; value_info { <br>
+> &ensp;&ensp; value: "v0" <br>
+> &ensp;&ensp; version: 1 <br>
+> &ensp;} <br>
+> } 
+
+#### Get Top ####
+Obtain the recent `top_number` history of the key `key`.
+
+      kv_service_tools --config config_path --cmd get_top --key key --top top_number
+
+|  parameters   |  descriptions |
+|  ----  | ----  |
+| config  | the path of the client config which points to the db entrance |
+| cmd  | get_top |
+| key  | the key you want to obtain |
+| top | the number of the recent updates |
+
+Example:
+
+      bazel-bin/service/tools/kv/api_tools/kv_service_tools --config service/tools/config/interface/service.config --cmd get_top --key key1 --top 1
+
+Results:
+
+>key = key1, top 1 <br>
+> value = <br>
+> item { <br>
+>&ensp;key: "key1" <br>
+>  &ensp;value_info { <br>
+>  &ensp;&ensp;  value: "v2" <br>
+>  &ensp;&ensp;  version: 3 <br>
+>  &ensp;} <br>
+>}
+
+#### Get Key Range ####
+Obtain the values of the keys in the ranges [`key1`, `key2`]. Do not use this function in your practice code
+
+      kv_service_tools --config config_file --cmd get_key_range_with_version --min_key key1 --max_key key2
+
+|  parameters   |  descriptions |
+|  ----  | ----  |
+| config  | the path of the client config which points to the db entrance |
+| cmd  | get_key_range_with_version |
+| min_key  | the minimum key  |
+| max_key | the maximum key |
+
+Example:
+
+      bazel-bin/service/tools/kv/api_tools/kv_service_tools --config service/tools/config/interface/service.config --cmd get_key_range_with_version --min_key key1 --max_key key3
+
+Results:
+
+>min key = key1 max key = key2 <br>
+> getrange value = <br>
+> item { <br>
+> &ensp; key: "key1" <br>
+> &ensp; value_info { <br>
+> &ensp;&ensp;   value: "v0" <br>
+> &ensp;&ensp;   version: 1 <br>
+> &ensp; } <br>
+> } <br>
+> item { <br>
+> &ensp; key: "key2" <br>
+> &ensp; value_info { <br>
+> &ensp;&ensp;   value: "v1" <br>
+> &ensp;&ensp;   version: 1 <br>
+> &ensp; } <br>
+>}
+
+
+### Non-Version-Based Function ###
+#### Set #####
+Set `value` to the key `key`.
+
+      kv_service_tools --config config_file --cmd set --key key --value value
+
+|  parameters   |  descriptions |
+|  ----  | ----  |
+| config  | the path of the client config which points to the db entrance |
+| cmd  | set |
+| key  | the key you want to set |
+| value | the new value |
+
+Example:
+
+      bazel-bin/service/tools/kv/api_tools/kv_service_tools --config service/tools/config/interface/service.config --cmd set --key key1 --value value1
+
+Results:
+> set key = key1, value = v1, done, ret = 0
+
+#### Get ####
+Obtain the value of `key`.
+
+      kv_service_tools --config config_file --cmd get --key key
+
+|  parameters   |  descriptions |
+|  ----  | ----  |
+| config  | the path of the client config which points to the db entrance |
+| cmd  | get |
+| key  | the key you want to obtain |
+
+Example:
+
+      bazel-bin/service/tools/kv/api_tools/kv_service_tools --config service/tools/config/interface/service.config --cmd get --key key1
+
+Results:
+> get key = key1, value = "v2"
+
+
+#### Get Key Range ####
+Obtain the values of the keys in the ranges [`key1`, `key2`]. Do not use this function in your practice code
+
+      kv_service_tools --config config_path --cmd get_key_range --min_key key1 --max_key key2
+
+|  parameters   |  descriptions |
+|  ----  | ----  |
+| config  | the path of the client config which points to the db entrance |
+| cmd  | get_key_range |
+| min_key  | the minimum key  |
+| max_key | the maximum key |
+
+Example:
+
+      bazel-bin/service/tools/kv/api_tools/kv_service_tools --config service/tools/config/interface/service.config --cmd get_key_range --min_key key1 --max_key key3
+
+Results:
+> getrange min key = key1, max key = key3 <br>
+> value = [v3,v2,v1]
+
+
+## Deployment Script
+
+We also provide access to a [deployment script](https://github.com/resilientdb/resilientdb/tree/master/scripts/deploy) that allows deployment on distinct machines.
+
+## Deploy via Docker
+
+1. **Install Docker**  
+   Before getting started, make sure you have Docker installed on your system. If you don't have Docker already, you can download and install it from the official [Docker website](https://www.docker.com/products/docker-desktop/).
+
+2. **Pull the Latest ResilientDB Image**  
+   Choose the appropriate [ResilientDB image](https://hub.docker.com/repository/docker/expolab/resdb/general) for your machine's architecture:
+
+   - For amd architecture, run:
+     ```shell
+     docker pull expolab/resdb:amd64
+     ```
+
+   - For Apple Silicon (M1/M2) architecture, run:
+     ```shell
+     docker pull expolab/resdb:arm64
+     ```
+
+3. **Run a Container with the Pulled Image**  
+   Launch a Docker container using the ResilientDB image you just pulled:
+
+   - For amd architecture, run:
+     ```shell
+     docker run -d --name myserver expolab/resdb:amd64
+     ```
+
+   - For Apple Silicon (M1/M2) architecture, run:
+     ```shell
+     docker run -d --name myserver expolab/resdb:arm64
+     ```
+
+4. **Test with Set and Get Commands**
+   Exec into the running server:
+   ```shell
+   docker exec -it myserver bash
+   ```
+
+5. **NOTE: If you encounter a Connection Refused error**
+
+   Run the following command within the container:
+   ```shell
+   ./service/tools/kv/server_tools/start_kv_service.sh
+   ```
+
+   Verify the functionality of the service by performing set and get operations provided above [functions](README.md#functions).
+
+
+## Custom Ports ##
+When starting the service locally, current services are running on 10000 port-base with 5 services where the server config is located [here](https://github.com/apache/incubator-resilientdb/blob/master/service/tools/config/server/server.config)
+
+If you want to change the setting,  you need to generate the certificates.
+
+Go the the workspace where the resilientdb repo is localted.
+
+Change the setting parameters here and run the script:
+  ```shell
+  ./service/tools/kv/server_tools/generate_config.sh
+  ```
+
+Then re-run the start script:
+  ```shell
+  ./service/tools/kv/server_tools/start_kv_service.sh
+  ```
+
+
+
+## Smart Contract ##
+If you want to use smart contracts, please go to:
+https://blog.resilientdb.com/2025/02/14/GettingStartedSmartContract.html
diff --git a/WORKSPACE b/WORKSPACE
new file mode 100644
index 00000000..b5071813
--- /dev/null
+++ b/WORKSPACE
@@ -0,0 +1,266 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+workspace(name = "com_resdb_nexres")
+
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+
+http_archive(
+    name = "hedron_compile_commands",
+    strip_prefix = "bazel-compile-commands-extractor-4f28899228fb3ad0126897876f147ca15026151e",
+    #Replace the commit hash (4f28899228fb3ad0126897876f147ca15026151e) with the latest commit hash from the repo
+    url = "https://github.com/hedronvision/bazel-compile-commands-extractor/archive/4f28899228fb3ad0126897876f147ca15026151e.tar.gz",
+)
+
+load("@hedron_compile_commands//:workspace_setup.bzl", "hedron_compile_commands_setup")
+
+hedron_compile_commands_setup()
+
+load("@hedron_compile_commands//:workspace_setup_transitive.bzl", "hedron_compile_commands_setup_transitive")
+
+hedron_compile_commands_setup_transitive()
+
+load("@hedron_compile_commands//:workspace_setup_transitive_transitive.bzl", "hedron_compile_commands_setup_transitive_transitive")
+
+hedron_compile_commands_setup_transitive_transitive()
+
+load("@hedron_compile_commands//:workspace_setup_transitive_transitive_transitive.bzl", "hedron_compile_commands_setup_transitive_transitive_transitive")
+
+hedron_compile_commands_setup_transitive_transitive_transitive()
+
+load("//:repositories.bzl", "nexres_repositories")
+
+nexres_repositories()
+
+http_archive(
+    name = "rules_foreign_cc",
+    sha256 = "69023642d5781c68911beda769f91fcbc8ca48711db935a75da7f6536b65047f",
+    strip_prefix = "rules_foreign_cc-0.6.0",
+    url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.6.0.tar.gz",
+)
+
+load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
+
+rules_foreign_cc_dependencies()
+
+http_archive(
+    name = "rules_proto",
+    sha256 = "66bfdf8782796239d3875d37e7de19b1d94301e8972b3cbd2446b332429b4df1",
+    strip_prefix = "rules_proto-4.0.0",
+    urls = [
+        "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz",
+        "https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz",
+    ],
+)
+
+load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
+
+rules_proto_dependencies()
+
+rules_proto_toolchains()
+
+http_archive(
+    name = "rules_python",
+    sha256 = "ffc7b877c95413c82bfd5482c017edcf759a6250d8b24e82f41f3c8b8d9e287e",
+    strip_prefix = "rules_python-0.19.0",
+    url = "https://github.com/bazelbuild/rules_python/releases/download/0.19.0/rules_python-0.19.0.tar.gz",
+)
+
+load("@rules_python//python:pip.bzl", "pip_install")
+load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
+
+rules_proto_dependencies()
+
+rules_proto_toolchains()
+
+load("@rules_proto_grpc//:repositories.bzl", "rules_proto_grpc_repos", "rules_proto_grpc_toolchains")
+
+rules_proto_grpc_toolchains()
+
+rules_proto_grpc_repos()
+
+bind(
+    name = "gtest",
+    actual = "@com_google_googletest//:gtest",
+)
+
+bind(
+    name = "glog",
+    actual = "@com_github_google_glog//:glog",
+)
+
+http_archive(
+    name = "com_github_google_glog",
+    sha256 = "21bc744fb7f2fa701ee8db339ded7dce4f975d0d55837a97be7d46e8382dea5a",
+    strip_prefix = "glog-0.5.0",
+    urls = ["https://github.com/google/glog/archive/v0.5.0.zip"],
+)
+
+load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
+
+git_repository(
+    name = "com_google_protobuf",
+    remote = "https://github.com/protocolbuffers/protobuf",
+    tag = "v3.10.0",
+)
+
+load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
+
+protobuf_deps()
+
+all_content = """filegroup(name = "all_srcs", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
+
+# buildifier is written in Go and hence needs rules_go to be built.
+# See https://github.com/bazelbuild/rules_go for the up to date setup instructions.
+http_archive(
+    name = "io_bazel_rules_go",
+    sha256 = "d6b2513456fe2229811da7eb67a444be7785f5323c6708b38d851d2b51e54d83",
+    urls = [
+        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.30.0/rules_go-v0.30.0.zip",
+        "https://github.com/bazelbuild/rules_go/releases/download/v0.30.0/rules_go-v0.30.0.zip",
+    ],
+)
+
+load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies")
+
+go_rules_dependencies()
+
+load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains")
+
+go_register_toolchains(version = "1.19.5")
+
+http_archive(
+    name = "bazel_gazelle",
+    sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb",
+    urls = [
+        "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
+        "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
+    ],
+)
+
+load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
+
+gazelle_dependencies()
+
+http_archive(
+    name = "com_github_bazelbuild_buildtools",
+    sha256 = "518b2ce90b1f8ad7c9a319ca84fd7de9a0979dd91e6d21648906ea68faa4f37a",
+    strip_prefix = "buildtools-5.0.1",
+    urls = [
+        "https://github.com/bazelbuild/buildtools/archive/refs/tags/5.0.1.zip",
+    ],
+)
+
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps")
+
+boost_deps()
+
+http_archive(
+    name = "net_zlib_zlib",
+    build_file = "@com_resdb_nexres//third_party:z.BUILD",
+    sha256 = "91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9",
+    strip_prefix = "zlib-1.2.12",
+    urls = [
+        "https://storage.googleapis.com/bazel-mirror/zlib.net/zlib-1.2.12.tar.gz",
+    ],
+)
+
+http_archive(
+    name = "com_google_leveldb",
+    build_file = "@com_resdb_nexres//third_party:leveldb.BUILD",
+    sha256 = "a6fa7eebd11de709c46bf1501600ed98bf95439d6967963606cc964931ce906f",
+    strip_prefix = "leveldb-1.23",
+    url = "https://github.com/google/leveldb/archive/refs/tags/1.23.zip",
+)
+
+bind(
+    name = "snappy",
+    actual = "@com_google_snappy//:snappy",
+)
+
+http_archive(
+    name = "com_google_snappy",
+    build_file = "@com_resdb_nexres//third_party:snappy.BUILD",
+    sha256 = "e170ce0def2c71d0403f5cda61d6e2743373f9480124bcfcd0fa9b3299d428d9",
+    strip_prefix = "snappy-1.1.9",
+    url = "https://github.com/google/snappy/archive/refs/tags/1.1.9.zip",
+)
+
+bind(
+    name = "zlib",
+    actual = "@com_zlib//:zlib",
+)
+
+http_archive(
+    name = "com_zlib",
+    build_file = "@com_resdb_nexres//third_party:zlib.BUILD",
+    sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
+    strip_prefix = "zlib-1.2.11",
+    url = "https://github.com/madler/zlib/archive/v1.2.11.tar.gz",
+)
+
+http_archive(
+    name = "pybind11_bazel",
+    strip_prefix = "pybind11_bazel-2.11.1.bzl.1",
+    urls = ["https://github.com/pybind/pybind11_bazel/archive/refs/tags/v2.11.1.bzl.1.zip"],
+)
+
+http_archive(
+    name = "pybind11",
+    build_file = "@pybind11_bazel//:pybind11.BUILD",
+    sha256 = "8ff2fff22df038f5cd02cea8af56622bc67f5b64534f1b83b9f133b8366acff2",
+    strip_prefix = "pybind11-2.6.2",
+    urls = ["https://github.com/pybind/pybind11/archive/v2.6.2.tar.gz"],
+)
+
+load("@pybind11_bazel//:python_configure.bzl", "python_configure")
+
+python_configure(
+    name = "local_config_python",
+    python_version = "3",
+)
+
+http_archive(
+    name = "nlohmann_json",
+    build_file = "@com_resdb_nexres//third_party:json.BUILD",  # see below
+    sha256 = "4cf0df69731494668bdd6460ed8cb269b68de9c19ad8c27abc24cd72605b2d5b",
+    strip_prefix = "json-3.9.1",
+    urls = ["https://github.com/nlohmann/json/archive/v3.9.1.tar.gz"],
+)
+
+http_archive(
+    name = "com_crowcpp_crow",
+    build_file = "//third_party:crow.BUILD",
+    sha256 = "f95128a8976fae6f2922823e07da59edae277a460776572a556a4b663ff5ee4b",
+    strip_prefix = "Crow-1.0-5",
+    url = "https://github.com/CrowCpp/Crow/archive/refs/tags/v1.0+5.zip",
+)
+
+bind(
+    name = "asio",
+    actual = "@com_chriskohlhoff_asio//:asio",
+)
+
+http_archive(
+    name = "com_chriskohlhoff_asio",
+    build_file = "//third_party:asio.BUILD",
+    sha256 = "babcdfd2c744905a73d20de211b51367bda0d5200f11d654c4314b909d8c963c",
+    strip_prefix = "asio-asio-1-26-0",
+    url = "https://github.com/chriskohlhoff/asio/archive/refs/tags/asio-1-26-0.zip",
+)
diff --git a/api/BUILD b/api/BUILD
new file mode 100644
index 00000000..5bad893b
--- /dev/null
+++ b/api/BUILD
@@ -0,0 +1,38 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+cc_binary(
+    name = "pybind_kv.so",
+    srcs = ["pybind_kv_service.cpp"],
+    linkshared = 1,
+    linkstatic = 1,
+    deps = [
+        "@//common/proto:signature_info_cc_proto",
+        "@//interface/kv:kv_client",
+        "@//platform/config:resdb_config_utils",
+        "@pybind11",
+    ],
+)
+
+py_library(
+    name = "pybind_kv_so",
+    data = [":pybind_kv.so"],
+    imports = ["."],
+)
diff --git a/api/README.md b/api/README.md
new file mode 100644
index 00000000..b4d6e741
--- /dev/null
+++ b/api/README.md
@@ -0,0 +1,66 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# 
+
+# ResilientDB kv-Service Python API(Get and Set Command)
+
+## Description
+This API allows users to use kv-service of the ResilientDB in Python directly.
+
+## How to Run
+1. Make sure to run `./INSTALL.sh` in advance.
+1. cd to `incubator-resilientdb/api` folder.
+2. Run command `bazel build :pybind_kv_so`.
+3. From `kv_operation.py`, import `get_value` and `set_value` functions into your Python file to use it (Make sure to use the same Python version when running `bazel build` command and calling the functions).
+
+## Parameters
+### `set_value`:
+1. `key`: The key user wants to store in a key-value pair. Acceptable types are `str`, `int`, `float`.
+2. `value`: The corresponding value to `key` in the key-value pair. Acceptable types are `str`, `int`, `float`.
+3. config_path (optional): The path to the user's blockchain config file (IP addresses). If the user does not specify this parameter, the system will default to the address located in "ip.address.config." The acceptable type is `str`.
+4. `return`: `True` if `value` has been set successfully; otherwise, `value` has not been set successfully.
+### `get_value`:
+1. `key`: The key user wants to get in a key-value pair. Acceptable types are `str`, `int`, `float`.
+2. `return`: `\n` if the corresponding value of `key` is empty, otherwise is the corresponding value of `key`.
+
+
+## Example
+```angular2html
+import sys
+# Your path to ResilientDB api folder
+sys.path.append("/home/ubuntu/Desktop/incubator-resilientdb/api")
+from kv_operation import set_value, get_value
+
+set_value("test", "111222")
+get_value("test")
+```
+
+If having set up the environment parameter, "sys.path" can be ignorred.
+```
+export PYTHON_PATH="/home/ubuntu/Desktop/incubator-resilientdb/api":PYTHON_PATH
+```
+```angular2html
+from kv_operation import set_value, get_value
+
+set_value("test", "111222")
+get_value("test")
+```
+
+
+
+
diff --git a/api/kv_operation.py b/api/kv_operation.py
new file mode 100644
index 00000000..f18c8460
--- /dev/null
+++ b/api/kv_operation.py
@@ -0,0 +1,46 @@
+#
+ # Licensed to the Apache Software Foundation (ASF) under one
+ # or more contributor license agreements.  See the NOTICE file
+ # distributed with this work for additional information
+ # regarding copyright ownership.  The ASF licenses this file
+ # to you under the Apache License, Version 2.0 (the
+ # "License"); you may not use this file except in compliance
+ # with the License.  You may obtain a copy of the License at
+ #
+ #   http://www.apache.org/licenses/LICENSE-2.0
+ #
+ # Unless required by applicable law or agreed to in writing,
+ # software distributed under the License is distributed on an
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ # KIND, either express or implied.  See the License for the
+ # specific language governing permissions and limitations
+ # under the License.
+ #
+
+import os
+import sys
+current_file_path = os.path.abspath(__file__)
+current_dir = os.path.dirname(current_file_path)
+parent_dir = os.path.dirname(current_dir)
+new_path_dir = os.path.join(parent_dir, "bazel-out", "k8-fastbuild", "bin", "api")
+sys.path.insert(0, new_path_dir)
+import pybind_kv
+
+
+def set_value(key: str or int or float, value: str or int or float, config_path: str = current_dir + "/ip_address.config") -> bool:
+    """
+    :param key: The key you want to set your value to.
+    :param value: The key's corresponding value in key value pair.
+    :param config_path: Default is connect to the main chain, users can specify the path to connect to their local blockchain.
+    :return: True if value has been set successfully.
+    """
+    return pybind_kv.set(str(key), str(value), os.path.abspath(config_path))
+
+
+def get_value(key: str or int or float, config_path: str = current_dir + "/ip_address.config") -> str:
+    """
+    :param key: The key of the value you want to get in key value pair.
+    :param config_path: Default is connect to the main chain, users can specify the path to connect to their local blockchain.
+    :return: A string of the key's corresponding value.
+    """
+    return pybind_kv.get(str(key), os.path.abspath(config_path))
diff --git a/api/pybind_kv_service.cpp b/api/pybind_kv_service.cpp
new file mode 100644
index 00000000..013683fb
--- /dev/null
+++ b/api/pybind_kv_service.cpp
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <fcntl.h>
+#include <getopt.h>
+#include <pybind11/pybind11.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#include <fstream>
+
+#include "common/proto/signature_info.pb.h"
+#include "interface/kv/kv_client.h"
+#include "platform/config/resdb_config_utils.h"
+
+using resdb::GenerateReplicaInfo;
+using resdb::GenerateResDBConfig;
+using resdb::KVClient;
+using resdb::ReplicaInfo;
+using resdb::ResDBConfig;
+
+std::string get(std::string key, std::string config_path) {
+  ResDBConfig config = GenerateResDBConfig(config_path);
+  config.SetClientTimeoutMs(100000);
+  KVClient client(config);
+  auto result_ptr = client.Get(key);
+  if (result_ptr) {
+    return *result_ptr;
+  } else {
+    return "";
+  }
+}
+
+bool set(std::string key, std::string value, std::string config_path) {
+  ResDBConfig config = GenerateResDBConfig(config_path);
+  config.SetClientTimeoutMs(100000);
+  KVClient client(config);
+  int result = client.Set(key, value);
+  if (result == 0) {
+    return true;
+  } else {
+    return false;
+  }
+}
+
+PYBIND11_MODULE(pybind_kv, m) {
+  m.def("get", &get, "A function that gets a value from the key-value store");
+  m.def("set", &set, "A function that sets a value in the key-value store");
+}
diff --git a/benchmark/protocols/pbft/BUILD b/benchmark/protocols/pbft/BUILD
new file mode 100644
index 00000000..f99e8206
--- /dev/null
+++ b/benchmark/protocols/pbft/BUILD
@@ -0,0 +1,43 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+package(default_visibility = ["//visibility:private"])
+
+load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
+
+cc_binary(
+    name = "kv_server_performance",
+    srcs = ["kv_server_performance.cpp"],
+    deps = [
+        "//chain/storage:memory_db",
+        "//executor/kv:kv_executor",
+        "//platform/config:resdb_config_utils",
+        "//platform/consensus/ordering/pbft:consensus_manager_pbft",
+        "//service/utils:server_factory",
+    ],
+)
+
+cc_binary(
+    name = "kv_service_tools",
+    srcs = ["kv_service_tools.cpp"],
+    deps = [
+        "//common/proto:signature_info_cc_proto",
+        "//interface/kv:kv_client",
+        "//platform/config:resdb_config_utils",
+    ],
+)
diff --git a/benchmark/protocols/pbft/kv_server_performance.cpp b/benchmark/protocols/pbft/kv_server_performance.cpp
new file mode 100644
index 00000000..7a81f27c
--- /dev/null
+++ b/benchmark/protocols/pbft/kv_server_performance.cpp
@@ -0,0 +1,81 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <glog/logging.h>
+
+#include "chain/storage/memory_db.h"
+#include "executor/kv/kv_executor.h"
+#include "platform/config/resdb_config_utils.h"
+#include "platform/consensus/ordering/pbft/consensus_manager_pbft.h"
+#include "platform/networkstrate/service_network.h"
+#include "platform/statistic/stats.h"
+#include "proto/kv/kv.pb.h"
+
+using namespace resdb;
+using namespace resdb::storage;
+
+void ShowUsage() {
+  printf("<config> <private_key> <cert_file> [logging_dir]\n");
+}
+
+std::string GetRandomKey() {
+  int num1 = rand() % 10;
+  int num2 = rand() % 10;
+  return std::to_string(num1) + std::to_string(num2);
+}
+
+int main(int argc, char** argv) {
+  if (argc < 3) {
+    ShowUsage();
+    exit(0);
+  }
+
+  // google::InitGoogleLogging(argv[0]);
+  // FLAGS_minloglevel = google::GLOG_WARNING;
+
+  char* config_file = argv[1];
+  char* private_key_file = argv[2];
+  char* cert_file = argv[3];
+
+  if (argc >= 5) {
+    auto monitor_port = Stats::GetGlobalStats(5);
+    monitor_port->SetPrometheus(argv[4]);
+  }
+
+  std::unique_ptr<ResDBConfig> config =
+      GenerateResDBConfig(config_file, private_key_file, cert_file);
+
+  config->RunningPerformance(true);
+
+  auto performance_consens = std::make_unique<ConsensusManagerPBFT>(
+      *config, std::make_unique<KVExecutor>(std::make_unique<MemoryDB>()));
+  performance_consens->SetupPerformanceDataFunc([]() {
+    KVRequest request;
+    request.set_cmd(KVRequest::SET);
+    request.set_key(GetRandomKey());
+    request.set_value("helloworld");
+    std::string request_data;
+    request.SerializeToString(&request_data);
+    return request_data;
+  });
+
+  auto server =
+      std::make_unique<ServiceNetwork>(*config, std::move(performance_consens));
+  server->Run();
+}
diff --git a/benchmark/protocols/pbft/kv_service_tools.cpp b/benchmark/protocols/pbft/kv_service_tools.cpp
new file mode 100644
index 00000000..43627b34
--- /dev/null
+++ b/benchmark/protocols/pbft/kv_service_tools.cpp
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <fcntl.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <unistd.h>
+
+#include <fstream>
+
+#include "common/proto/signature_info.pb.h"
+#include "interface/kv/kv_client.h"
+#include "platform/config/resdb_config_utils.h"
+
+using resdb::GenerateReplicaInfo;
+using resdb::GenerateResDBConfig;
+using resdb::KVClient;
+using resdb::ReplicaInfo;
+using resdb::ResDBConfig;
+
+int main(int argc, char** argv) {
+  if (argc < 2) {
+    printf("<config path>\n");
+    return 0;
+  }
+  std::string client_config_file = argv[1];
+  ResDBConfig config = GenerateResDBConfig(client_config_file);
+
+  config.SetClientTimeoutMs(100000);
+
+  KVClient client(config);
+
+  client.Set("start", "value");
+  printf("start benchmark\n");
+}
diff --git a/benchmark/protocols/poe/BUILD b/benchmark/protocols/poe/BUILD
new file mode 100644
index 00000000..7f1cc05e
--- /dev/null
+++ b/benchmark/protocols/poe/BUILD
@@ -0,0 +1,33 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+package(default_visibility = ["//visibility:private"])
+
+load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
+
+cc_binary(
+    name = "kv_server_performance",
+    srcs = ["kv_server_performance.cpp"],
+    deps = [
+        "//chain/storage:memory_db",
+        "//executor/kv:kv_executor",
+        "//platform/config:resdb_config_utils",
+        "//platform/consensus/ordering/poe/framework:consensus",
+        "//service/utils:server_factory",
+    ],
+)
diff --git a/benchmark/protocols/poe/kv_server_performance.cpp b/benchmark/protocols/poe/kv_server_performance.cpp
new file mode 100644
index 00000000..90a220a1
--- /dev/null
+++ b/benchmark/protocols/poe/kv_server_performance.cpp
@@ -0,0 +1,83 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <glog/logging.h>
+
+#include "chain/storage/memory_db.h"
+#include "executor/kv/kv_executor.h"
+#include "platform/config/resdb_config_utils.h"
+#include "platform/consensus/ordering/poe/framework/consensus.h"
+#include "platform/networkstrate/service_network.h"
+#include "platform/statistic/stats.h"
+#include "proto/kv/kv.pb.h"
+
+using namespace resdb;
+using namespace resdb::poe;
+using namespace resdb::storage;
+
+void ShowUsage() {
+  printf("<config> <private_key> <cert_file> [logging_dir]\n");
+}
+
+std::string GetRandomKey() {
+  int num1 = rand() % 10;
+  int num2 = rand() % 10;
+  return std::to_string(num1) + std::to_string(num2);
+}
+
+int main(int argc, char** argv) {
+  if (argc < 3) {
+    ShowUsage();
+    exit(0);
+  }
+
+  // google::InitGoogleLogging(argv[0]);
+  // FLAGS_minloglevel = google::GLOG_WARNING;
+
+  char* config_file = argv[1];
+  char* private_key_file = argv[2];
+  char* cert_file = argv[3];
+
+  if (argc >= 5) {
+    auto monitor_port = Stats::GetGlobalStats(5);
+    monitor_port->SetPrometheus(argv[4]);
+  }
+
+  std::unique_ptr<ResDBConfig> config =
+      GenerateResDBConfig(config_file, private_key_file, cert_file);
+
+  config->RunningPerformance(true);
+  ResConfigData config_data = config->GetConfigData();
+
+  auto performance_consens = std::make_unique<Consensus>(
+      *config, std::make_unique<KVExecutor>(std::make_unique<MemoryDB>()));
+  performance_consens->SetupPerformanceDataFunc([]() {
+    KVRequest request;
+    request.set_cmd(KVRequest::SET);
+    request.set_key(GetRandomKey());
+    request.set_value("helloword");
+    std::string request_data;
+    request.SerializeToString(&request_data);
+    return request_data;
+  });
+
+  auto server =
+      std::make_unique<ServiceNetwork>(*config, std::move(performance_consens));
+  server->Run();
+}
diff --git a/chain/state/BUILD b/chain/state/BUILD
new file mode 100644
index 00000000..f4bcde57
--- /dev/null
+++ b/chain/state/BUILD
@@ -0,0 +1,38 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+cc_library(
+    name = "chain_state",
+    srcs = ["chain_state.cpp"],
+    hdrs = ["chain_state.h"],
+    deps = [
+        "//common:comm",
+        "//platform/proto:resdb_cc_proto",
+    ],
+)
+
+cc_test(
+    name = "chain_state_test",
+    srcs = ["chain_state_test.cpp"],
+    deps = [
+        ":chain_state",
+        "//common/test:test_main",
+    ],
+)
diff --git a/chain/state/chain_state.cpp b/chain/state/chain_state.cpp
new file mode 100644
index 00000000..18eaed71
--- /dev/null
+++ b/chain/state/chain_state.cpp
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "chain/state/chain_state.h"
+
+#include <glog/logging.h>
+
+namespace resdb {
+
+ChainState::ChainState() : max_seq_(0) {}
+
+Request* ChainState::Get(uint64_t seq) {
+  std::unique_lock<std::mutex> lk(mutex_);
+  if (data_.find(seq) == data_.end()) {
+    return nullptr;
+  }
+  return data_[seq].get();
+}
+
+void ChainState::Put(std::unique_ptr<Request> request) {
+  std::unique_lock<std::mutex> lk(mutex_);
+  max_seq_ = request->seq();
+  data_[max_seq_] = std::move(request);
+}
+
+uint64_t ChainState::GetMaxSeq() { return max_seq_; }
+
+}  // namespace resdb
diff --git a/chain/state/chain_state.h b/chain/state/chain_state.h
new file mode 100644
index 00000000..697b1afc
--- /dev/null
+++ b/chain/state/chain_state.h
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#pragma once
+
+#include <map>
+#include <unordered_map>
+
+#include "platform/proto/resdb.pb.h"
+
+namespace resdb {
+
+class ChainState {
+ public:
+  ChainState();
+  Request* Get(uint64_t seq);
+  void Put(std::unique_ptr<Request> request);
+  uint64_t GetMaxSeq();
+
+ private:
+  std::mutex mutex_;
+  std::unordered_map<uint64_t, std::unique_ptr<Request> > data_;
+  std::atomic<uint64_t> max_seq_;
+};
+
+}  // namespace resdb
diff --git a/chain/state/chain_state_test.cpp b/chain/state/chain_state_test.cpp
new file mode 100644
index 00000000..7fd3fbe1
--- /dev/null
+++ b/chain/state/chain_state_test.cpp
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "chain/state/chain_state.h"
+
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
+
+#include "common/test/test_macros.h"
+
+namespace resdb {
+namespace {
+
+using ::resdb::testing::EqualsProto;
+using ::testing::Pointee;
+
+TEST(ChainStateTest, GetEmptyValue) {
+  ChainState db;
+  EXPECT_EQ(db.Get(1), nullptr);
+}
+
+TEST(ChainStateTest, GetValue) {
+  Request request;
+  request.set_seq(1);
+  request.set_data("test");
+
+  ChainState db;
+  db.Put(std::make_unique<Request>(request));
+  EXPECT_THAT(db.Get(1), Pointee(EqualsProto(request)));
+}
+
+TEST(ChainStateTest, GetSecondValue) {
+  Request request;
+  request.set_seq(1);
+  request.set_data("test");
+
+  ChainState db;
+  db.Put(std::make_unique<Request>(request));
+
+  request.set_seq(1);
+  request.set_data("test_1");
+  db.Put(std::make_unique<Request>(request));
+
+  EXPECT_THAT(db.Get(1), Pointee(EqualsProto(request)));
+}
+
+}  // namespace
+
+}  // namespace resdb
diff --git a/chain/storage/BUILD b/chain/storage/BUILD
new file mode 100644
index 00000000..b2e0dfb3
--- /dev/null
+++ b/chain/storage/BUILD
@@ -0,0 +1,83 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+cc_library(
+    name = "storage",
+    hdrs = ["storage.h"],
+    deps = [
+    ],
+)
+
+cc_library(
+    name = "mock_storage",
+    hdrs = ["mock_storage.h"],
+    deps = [
+        ":storage",
+    ],
+)
+
+cc_library(
+    name = "memory_db",
+    srcs = ["memory_db.cpp"],
+    hdrs = ["memory_db.h"],
+    deps = [
+        ":storage",
+        "//common:comm",
+    ],
+)
+
+cc_library(
+    name = "leveldb",
+    srcs = ["leveldb.cpp"],
+    hdrs = ["leveldb.h"],
+    deps = [
+        ":storage",
+        "//chain/storage/proto:kv_cc_proto",
+        "//chain/storage/proto:leveldb_config_cc_proto",
+        "//common:comm",
+        "//common/lru:lru_cache",
+        "//platform/statistic:stats",
+        "//third_party:leveldb",
+    ],
+)
+
+cc_test(
+    name = "kv_storage_test",
+    size = "small",  # Set the size to "small"
+    timeout = "short",  # Set the timeout to "short"
+    srcs = ["kv_storage_test.cpp"],
+    deps = [
+        ":leveldb",
+        ":memory_db",
+        "//common/test:test_main",
+    ],
+)
+
+cc_test(
+    name = "leveldb_test",
+    size = "small",  # Set the size to "small"
+    timeout = "short",  # Set the timeout to "short"
+    srcs = ["leveldb_test.cpp"],
+    deps = [
+        ":leveldb",
+        "//common/test:test_main",
+        "//platform/statistic:stats",
+    ],
+)
diff --git a/chain/storage/kv_storage_test.cpp b/chain/storage/kv_storage_test.cpp
new file mode 100644
index 00000000..343cdbf9
--- /dev/null
+++ b/chain/storage/kv_storage_test.cpp
@@ -0,0 +1,314 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <glog/logging.h>
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
+
+#include <filesystem>
+
+#include "chain/storage/leveldb.h"
+#include "chain/storage/memory_db.h"
+
+namespace resdb {
+namespace storage {
+namespace {
+
+enum StorageType { MEM = 0, LEVELDB = 1, LEVELDB_WITH_BLOCK_CACHE = 2 };
+
+class KVStorageTest : public ::testing::TestWithParam<StorageType> {
+ protected:
+  KVStorageTest() {
+    StorageType t = GetParam();
+    switch (t) {
+      case MEM:
+        storage = NewMemoryDB();
+        break;
+      case LEVELDB:
+        Reset();
+        storage = NewResLevelDB(path_);
+        break;
+      case LEVELDB_WITH_BLOCK_CACHE:
+        Reset();
+        LevelDBInfo config;
+        config.set_enable_block_cache(true);
+        storage = NewResLevelDB(path_, config);
+        break;
+    }
+  }
+
+ private:
+  void Reset() { std::filesystem::remove_all(path_.c_str()); }
+
+ protected:
+  std::unique_ptr<Storage> storage;
+  std::string path_ = "/tmp/leveldb_test";
+};
+
+TEST_P(KVStorageTest, SetValue) {
+  EXPECT_EQ(storage->SetValue("test_key", "test_value"), 0);
+  EXPECT_EQ(storage->GetValue("test_key"), "test_value");
+}
+
+TEST_P(KVStorageTest, GetValue) {
+  EXPECT_EQ(storage->GetValue("test_key"), "");
+}
+
+TEST_P(KVStorageTest, GetEmptyValueWithVersion) {
+  EXPECT_EQ(storage->GetValueWithVersion("test_key", 0),
+            std::make_pair(std::string(""), 0));
+}
+
+TEST_P(KVStorageTest, SetValueWithVersion) {
+  EXPECT_EQ(storage->SetValueWithVersion("test_key", "test_value", 1), -2);
+
+  EXPECT_EQ(storage->SetValueWithVersion("test_key", "test_value", 0), 0);
+
+  EXPECT_EQ(storage->GetValueWithVersion("test_key", 0),
+            std::make_pair(std::string("test_value"), 1));
+  EXPECT_EQ(storage->GetValueWithVersion("test_key", 1),
+            std::make_pair(std::string("test_value"), 1));
+
+  EXPECT_EQ(storage->SetValueWithVersion("test_key", "test_value_v2", 2), -2);
+  EXPECT_EQ(storage->SetValueWithVersion("test_key", "test_value_v2", 1), 0);
+
+  EXPECT_EQ(storage->GetValueWithVersion("test_key", 0),
+            std::make_pair(std::string("test_value_v2"), 2));
+
+  EXPECT_EQ(storage->GetValueWithVersion("test_key", 1),
+            std::make_pair(std::string("test_value"), 1));
+
+  EXPECT_EQ(storage->GetValueWithVersion("test_key", 2),
+            std::make_pair(std::string("test_value_v2"), 2));
+
+  EXPECT_EQ(storage->GetValueWithVersion("test_key", 3),
+            std::make_pair(std::string("test_value_v2"), 2));
+}
+
+TEST_P(KVStorageTest, GetAllValueWithVersion) {
+  {
+    std::map<std::string, std::pair<std::string, int>> expected_list{
+        std::make_pair("test_key", std::make_pair("test_value", 1))};
+
+    EXPECT_EQ(storage->SetValueWithVersion("test_key", "test_value", 0), 0);
+    EXPECT_EQ(storage->GetAllItems(), expected_list);
+  }
+
+  {
+    std::map<std::string, std::pair<std::string, int>> expected_list{
+        std::make_pair("test_key", std::make_pair("test_value_v2", 2))};
+    EXPECT_EQ(storage->SetValueWithVersion("test_key", "test_value_v2", 1), 0);
+    EXPECT_EQ(storage->GetAllItems(), expected_list);
+  }
+
+  {
+    std::map<std::string, std::pair<std::string, int>> expected_list{
+        std::make_pair("test_key_v1", std::make_pair("test_value1", 1)),
+        std::make_pair("test_key", std::make_pair("test_value_v2", 2))};
+    EXPECT_EQ(storage->SetValueWithVersion("test_key_v1", "test_value1", 0), 0);
+    EXPECT_EQ(storage->GetAllItems(), expected_list);
+  }
+}
+
+TEST_P(KVStorageTest, SetValueWithSeq) {
+  EXPECT_EQ(storage->SetValueWithSeq("test_key", "test_value", 2), 0);
+
+  EXPECT_EQ(storage->SetValueWithSeq("test_key", "test_value", 1), -2);
+
+  EXPECT_EQ(storage->GetValueWithSeq("test_key", static_cast<uint64_t>(1)),
+            std::make_pair(std::string(""), static_cast<uint64_t>(0)));
+  EXPECT_EQ(
+      storage->GetValueWithSeq("test_key", 2),
+      std::make_pair(std::string("test_value"), static_cast<uint64_t>(2)));
+
+  EXPECT_EQ(storage->SetValueWithSeq("test_key", "test_value_v2", 3), 0);
+
+  EXPECT_EQ(storage->GetValueWithSeq("test_key", 1),
+            std::make_pair(std::string(""), static_cast<uint64_t>(0)));
+
+  EXPECT_EQ(
+      storage->GetValueWithSeq("test_key", 2),
+      std::make_pair(std::string("test_value"), static_cast<uint64_t>(2)));
+
+  EXPECT_EQ(
+      storage->GetValueWithSeq("test_key", 3),
+      std::make_pair(std::string("test_value_v2"), static_cast<uint64_t>(3)));
+
+  EXPECT_EQ(storage->GetValueWithSeq("test_key", 4),
+            std::make_pair(std::string(""), static_cast<uint64_t>(0)));
+
+  EXPECT_EQ(
+      storage->GetValueWithSeq("test_key", 0),
+      std::make_pair(std::string("test_value_v2"), static_cast<uint64_t>(3)));
+}
+
+TEST_P(KVStorageTest, GetAllValueWithSeq) {
+  typedef std::vector<std::pair<std::string, uint64_t>> List;
+  {
+    std::map<std::string, std::vector<std::pair<std::string, uint64_t>>>
+        expected_list{
+            std::make_pair("test_key", List{std::make_pair("test_value", 1)})};
+
+    EXPECT_EQ(storage->SetValueWithSeq("test_key", "test_value", 1), 0);
+    EXPECT_EQ(storage->GetAllItemsWithSeq(), expected_list);
+  }
+
+  {
+    std::map<std::string, std::vector<std::pair<std::string, uint64_t>>>
+        expected_list{std::make_pair("test_key",
+                                     List{std::make_pair("test_value", 1),
+                                          std::make_pair("test_value_v2", 2)})};
+    EXPECT_EQ(storage->SetValueWithSeq("test_key", "test_value_v2", 2), 0);
+    EXPECT_EQ(storage->GetAllItemsWithSeq(), expected_list);
+  }
+
+  {
+    std::map<std::string, std::vector<std::pair<std::string, uint64_t>>>
+        expected_list{std::make_pair("test_key_v1",
+                                     List{std::make_pair("test_value1", 1)}),
+                      std::make_pair("test_key",
+                                     List{std::make_pair("test_value", 1),
+                                          std::make_pair("test_value_v2", 2)})};
+    EXPECT_EQ(storage->SetValueWithSeq("test_key_v1", "test_value1", 1), 0);
+    EXPECT_EQ(storage->GetAllItemsWithSeq(), expected_list);
+  }
+
+  {
+    storage->SetMaxHistoryNum(2);
+    std::map<std::string, std::vector<std::pair<std::string, uint64_t>>>
+        expected_list{
+            std::make_pair("test_key_v1",
+                           List{std::make_pair("test_value1", 1)}),
+            std::make_pair("test_key", List{std::make_pair("test_value3", 3),
+                                            std::make_pair("test_value4", 4)})};
+    EXPECT_EQ(storage->SetValueWithSeq("test_key", "test_value3", 3), 0);
+    EXPECT_EQ(storage->SetValueWithSeq("test_key", "test_value4", 4), 0);
+    EXPECT_EQ(storage->GetAllItemsWithSeq(), expected_list);
+  }
+}
+
+TEST_P(KVStorageTest, GetKeyRange) {
+  EXPECT_EQ(storage->SetValueWithVersion("1", "value1", 0), 0);
+  EXPECT_EQ(storage->SetValueWithVersion("2", "value2", 0), 0);
+  EXPECT_EQ(storage->SetValueWithVersion("3", "value3", 0), 0);
+  EXPECT_EQ(storage->SetValueWithVersion("4", "value4", 0), 0);
+
+  {
+    std::map<std::string, std::pair<std::string, int>> expected_list{
+        std::make_pair("1", std::make_pair("value1", 1)),
+        std::make_pair("2", std::make_pair("value2", 1)),
+        std::make_pair("3", std::make_pair("value3", 1)),
+        std::make_pair("4", std::make_pair("value4", 1))};
+    EXPECT_EQ(storage->GetKeyRange("1", "4"), expected_list);
+  }
+
+  EXPECT_EQ(storage->SetValueWithVersion("3", "value3_1", 1), 0);
+  {
+    std::map<std::string, std::pair<std::string, int>> expected_list{
+        std::make_pair("1", std::make_pair("value1", 1)),
+        std::make_pair("2", std::make_pair("value2", 1)),
+        std::make_pair("3", std::make_pair("value3_1", 2)),
+        std::make_pair("4", std::make_pair("value4", 1))};
+    EXPECT_EQ(storage->GetKeyRange("1", "4"), expected_list);
+  }
+  {
+    std::map<std::string, std::pair<std::string, int>> expected_list{
+        std::make_pair("1", std::make_pair("value1", 1)),
+        std::make_pair("2", std::make_pair("value2", 1)),
+        std::make_pair("3", std::make_pair("value3_1", 2)),
+    };
+    EXPECT_EQ(storage->GetKeyRange("1", "3"), expected_list);
+  }
+  {
+    std::map<std::string, std::pair<std::string, int>> expected_list{
+        std::make_pair("2", std::make_pair("value2", 1)),
+        std::make_pair("3", std::make_pair("value3_1", 2)),
+        std::make_pair("4", std::make_pair("value4", 1))};
+    EXPECT_EQ(storage->GetKeyRange("2", "4"), expected_list);
+  }
+  {
+    std::map<std::string, std::pair<std::string, int>> expected_list{
+        std::make_pair("1", std::make_pair("value1", 1)),
+        std::make_pair("2", std::make_pair("value2", 1)),
+        std::make_pair("3", std::make_pair("value3_1", 2)),
+        std::make_pair("4", std::make_pair("value4", 1))};
+    EXPECT_EQ(storage->GetKeyRange("0", "5"), expected_list);
+  }
+  {
+    std::map<std::string, std::pair<std::string, int>> expected_list{
+        std::make_pair("2", std::make_pair("value2", 1)),
+        std::make_pair("3", std::make_pair("value3_1", 2)),
+    };
+    EXPECT_EQ(storage->GetKeyRange("2", "3"), expected_list);
+  }
+}
+
+TEST_P(KVStorageTest, GetHistory) {
+  {
+    std::vector<std::pair<std::string, int>> expected_list{};
+    EXPECT_EQ(storage->GetHistory("1", 1, 5), expected_list);
+  }
+  {
+    std::vector<std::pair<std::string, int>> expected_list{
+        std::make_pair("value3", 3), std::make_pair("value2", 2),
+        std::make_pair("value1", 1)};
+
+    EXPECT_EQ(storage->SetValueWithVersion("1", "value1", 0), 0);
+    EXPECT_EQ(storage->SetValueWithVersion("1", "value2", 1), 0);
+    EXPECT_EQ(storage->SetValueWithVersion("1", "value3", 2), 0);
+
+    EXPECT_EQ(storage->GetHistory("1", 1, 5), expected_list);
+  }
+
+  {
+    std::vector<std::pair<std::string, int>> expected_list{
+        std::make_pair("value5", 5), std::make_pair("value4", 4),
+        std::make_pair("value3", 3), std::make_pair("value2", 2),
+        std::make_pair("value1", 1)};
+
+    EXPECT_EQ(storage->SetValueWithVersion("1", "value4", 3), 0);
+    EXPECT_EQ(storage->SetValueWithVersion("1", "value5", 4), 0);
+    EXPECT_EQ(storage->SetValueWithVersion("1", "value6", 5), 0);
+    EXPECT_EQ(storage->SetValueWithVersion("1", "value7", 6), 0);
+
+    EXPECT_EQ(storage->GetHistory("1", 1, 5), expected_list);
+  }
+
+  {
+    std::vector<std::pair<std::string, int>> expected_list{
+        std::make_pair("value7", 7), std::make_pair("value6", 6)};
+
+    EXPECT_EQ(storage->GetTopHistory("1", 2), expected_list);
+  }
+}
+
+TEST_P(KVStorageTest, BlockCacheSpecificTest) {
+  if (GetParam() == LEVELDB_WITH_BLOCK_CACHE) {
+    std::cout << "Running BlockCacheSpecificTest for LEVELDB_WITH_BLOCK_CACHE"
+              << std::endl;
+  }
+}
+
+INSTANTIATE_TEST_CASE_P(KVStorageTest, KVStorageTest,
+                        ::testing::Values(MEM, LEVELDB,
+                                          LEVELDB_WITH_BLOCK_CACHE));
+
+}  // namespace
+}  // namespace storage
+}  // namespace resdb
diff --git a/chain/storage/leveldb.cpp b/chain/storage/leveldb.cpp
new file mode 100644
index 00000000..de49376e
--- /dev/null
+++ b/chain/storage/leveldb.cpp
@@ -0,0 +1,444 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "chain/storage/leveldb.h"
+
+#include <glog/logging.h>
+#include <unistd.h>
+
+#include <cstdint>
+
+#include "chain/storage/proto/kv.pb.h"
+#include "leveldb/options.h"
+
+namespace resdb {
+namespace storage {
+
+std::unique_ptr<Storage> NewResLevelDB(const std::string& path,
+                                       std::optional<LevelDBInfo> config) {
+  if (config == std::nullopt) {
+    config = LevelDBInfo();
+  }
+  (*config).set_path(path);
+  return std::make_unique<ResLevelDB>(config);
+}
+
+std::unique_ptr<Storage> NewResLevelDB(std::optional<LevelDBInfo> config) {
+  return std::make_unique<ResLevelDB>(config);
+}
+
+ResLevelDB::ResLevelDB(std::optional<LevelDBInfo> config) {
+  std::string path = "/tmp/nexres-leveldb";
+  if (config.has_value()) {
+    write_buffer_size_ = (*config).write_buffer_size_mb() << 20;
+    write_batch_size_ = (*config).write_batch_size();
+    if (!(*config).path().empty()) {
+      LOG(ERROR) << "Custom path for ResLevelDB provided in config: "
+                 << (*config).path();
+      path = (*config).path();
+    }
+  }
+  if ((*config).enable_block_cache()) {
+    uint32_t capacity = 1000;
+    if ((*config).has_block_cache_capacity()) {
+      capacity = (*config).block_cache_capacity();
+    }
+    block_cache_ =
+        std::make_unique<LRUCache<std::string, std::string>>(capacity);
+    LOG(ERROR) << "initialized block cache" << std::endl;
+  }
+  global_stats_ = Stats::GetGlobalStats();
+  last_ckpt_ = 0;
+  CreateDB(path);
+  last_ckpt_ = GetLastCheckpointInternal();
+}
+
+void ResLevelDB::CreateDB(const std::string& path) {
+  LOG(ERROR) << "ResLevelDB Create DB: path:" << path
+             << " write buffer size:" << write_buffer_size_
+             << " batch size:" << write_batch_size_;
+  leveldb::Options options;
+  options.create_if_missing = true;
+  options.write_buffer_size = write_buffer_size_;
+
+  leveldb::DB* db = nullptr;
+  leveldb::Status status = leveldb::DB::Open(options, path, &db);
+  if (status.ok()) {
+    db_ = std::unique_ptr<leveldb::DB>(db);
+  }
+  assert(status.ok());
+  LOG(ERROR) << "Successfully opened LevelDB";
+}
+
+ResLevelDB::~ResLevelDB() {
+  if (db_) {
+    db_.reset();
+  }
+  if (block_cache_) {
+    block_cache_->Flush();
+  }
+}
+
+int ResLevelDB::SetValueWithSeq(const std::string& key,
+                                const std::string& value, uint64_t seq) {
+  std::string value_str = GetValue(key);
+  ValueHistory history;
+  if (!history.ParseFromString(value_str)) {
+    LOG(ERROR) << "old_value parse fail";
+    return -2;
+  }
+
+  uint64_t last_seq = 0;
+  if (history.value_size() > 0) {
+    last_seq = history.value(history.value_size() - 1).seq();
+  }
+
+  if (last_seq > seq) {
+    LOG(ERROR) << "seq is small, last:" << last_seq << " new seq:" << seq;
+    UpdateLastCkpt(last_seq);
+    return -2;
+  }
+
+  Value* new_value = history.add_value();
+  new_value->set_value(value);
+  new_value->set_seq(seq);
+
+  while (history.value_size() > max_history_) {
+    history.mutable_value()->erase(history.mutable_value()->begin());
+  }
+
+  LOG(ERROR) << " set value, string:" << key << " seq:" << seq
+             << " last seq:" << last_seq;
+  history.SerializeToString(&value_str);
+  int ret = SetValue(key, value_str);
+  if (ret) {
+    return ret;
+  }
+  UpdateLastCkpt(seq);
+  return 0;
+}
+
+std::pair<std::string, uint64_t> ResLevelDB::GetValueWithSeq(
+    const std::string& key, uint64_t seq) {
+  std::string value_str = GetValue(key);
+  ValueHistory history;
+  if (!history.ParseFromString(value_str)) {
+    LOG(ERROR) << "old_value parse fail";
+    return std::make_pair("", 0);
+  }
+  if (history.value_size() == 0) {
+    return std::make_pair("", 0);
+  }
+  if (seq > 0) {
+    for (int i = history.value_size() - 1; i >= 0; --i) {
+      if (history.value(i).seq() == seq) {
+        return std::make_pair(history.value(i).value(), history.value(i).seq());
+      }
+    }
+    return std::make_pair("", 0);
+  }
+  int last_idx = history.value_size() - 1;
+  return std::make_pair(history.value(last_idx).value(),
+                        history.value(last_idx).seq());
+}
+
+int ResLevelDB::SetValue(const std::string& key, const std::string& value) {
+  if (block_cache_) {
+    block_cache_->Put(key, value);
+  }
+  batch_.Put(key, value);
+
+  if (batch_.ApproximateSize() >= write_batch_size_) {
+    leveldb::Status status = db_->Write(leveldb::WriteOptions(), &batch_);
+    if (status.ok()) {
+      batch_.Clear();
+      UpdateMetrics();
+      return 0;
+    } else {
+      LOG(ERROR) << "flush buffer fail:" << status.ToString();
+      return -1;
+    }
+  }
+  return 0;
+}
+
+std::string ResLevelDB::GetValue(const std::string& key) {
+  std::string value;
+  bool found_in_cache = false;
+
+  if (block_cache_) {
+    value = block_cache_->Get(key);
+    found_in_cache = !value.empty();
+  }
+
+  if (!found_in_cache) {
+    leveldb::Status status = db_->Get(leveldb::ReadOptions(), key, &value);
+    if (!status.ok()) {
+      value.clear();  // Ensure value is empty if not found in DB
+    }
+  }
+
+  UpdateMetrics();
+  return value;
+}
+
+std::string ResLevelDB::GetRange(const std::string& min_key,
+                                 const std::string& max_key) {
+  std::string values = "[";
+  leveldb::Iterator* it = db_->NewIterator(leveldb::ReadOptions());
+  bool first_iteration = true;
+  for (it->Seek(min_key); it->Valid() && it->key().ToString() <= max_key;
+       it->Next()) {
+    if (!first_iteration) values.append(",");
+    first_iteration = false;
+    values.append(it->value().ToString());
+  }
+  values.append("]");
+
+  delete it;
+  return values;
+}
+
+bool ResLevelDB::UpdateMetrics() {
+  if (block_cache_ == nullptr) {
+    return false;
+  }
+  std::string stats;
+  std::string approximate_size;
+  db_->GetProperty("leveldb.stats", &stats);
+  db_->GetProperty("leveldb.approximate-memory-usage", &approximate_size);
+  global_stats_->SetStorageEngineMetrics(block_cache_->GetCacheHitRatio(),
+                                         stats, approximate_size);
+  return true;
+}
+
+bool ResLevelDB::Flush() {
+  leveldb::Status status = db_->Write(leveldb::WriteOptions(), &batch_);
+  if (status.ok()) {
+    batch_.Clear();
+    return true;
+  }
+  LOG(ERROR) << "flush buffer fail:" << status.ToString();
+  return false;
+}
+
+int ResLevelDB::SetValueWithVersion(const std::string& key,
+                                    const std::string& value, int version) {
+  std::string value_str = GetValue(key);
+  ValueHistory history;
+  if (!history.ParseFromString(value_str)) {
+    LOG(ERROR) << "old_value parse fail";
+    return -2;
+  }
+
+  int last_v = 0;
+  if (history.value_size() > 0) {
+    last_v = history.value(history.value_size() - 1).version();
+  }
+
+  if (last_v != version) {
+    LOG(ERROR) << "version does not match:" << version
+               << " old version:" << last_v;
+    return -2;
+  }
+
+  Value* new_value = history.add_value();
+  new_value->set_value(value);
+  new_value->set_version(version + 1);
+
+  history.SerializeToString(&value_str);
+  return SetValue(key, value_str);
+}
+
+std::pair<std::string, int> ResLevelDB::GetValueWithVersion(
+    const std::string& key, int version) {
+  std::string value_str = GetValue(key);
+  ValueHistory history;
+  if (!history.ParseFromString(value_str)) {
+    LOG(ERROR) << "old_value parse fail";
+    return std::make_pair("", 0);
+  }
+  if (history.value_size() == 0) {
+    return std::make_pair("", 0);
+  }
+  if (version > 0) {
+    for (int i = history.value_size() - 1; i >= 0; --i) {
+      if (history.value(i).version() == version) {
+        return std::make_pair(history.value(i).value(),
+                              history.value(i).version());
+      }
+      if (history.value(i).version() < version) {
+        break;
+      }
+    }
+  }
+  int last_idx = history.value_size() - 1;
+  return std::make_pair(history.value(last_idx).value(),
+                        history.value(last_idx).version());
+}
+
+// Return a map of <key, <value, version>>
+std::map<std::string, std::vector<std::pair<std::string, uint64_t>>>
+ResLevelDB::GetAllItemsWithSeq() {
+  std::map<std::string, std::vector<std::pair<std::string, uint64_t>>> resp;
+
+  leveldb::Iterator* it = db_->NewIterator(leveldb::ReadOptions());
+  for (it->SeekToFirst(); it->Valid(); it->Next()) {
+    ValueHistory history;
+    if (!history.ParseFromString(it->value().ToString()) ||
+        history.value_size() == 0) {
+      LOG(ERROR) << "old_value parse fail";
+      continue;
+    }
+    LOG(ERROR) << "history value size:" << history.value_size();
+    for (auto value : history.value()) {
+      resp[it->key().ToString()].push_back(
+          std::make_pair(value.value(), value.seq()));
+    }
+  }
+  delete it;
+
+  return resp;
+}
+
+// Return a map of <key, <value, version>>
+std::map<std::string, std::pair<std::string, int>> ResLevelDB::GetAllItems() {
+  std::map<std::string, std::pair<std::string, int>> resp;
+
+  leveldb::Iterator* it = db_->NewIterator(leveldb::ReadOptions());
+  for (it->SeekToFirst(); it->Valid(); it->Next()) {
+    ValueHistory history;
+    if (!history.ParseFromString(it->value().ToString()) ||
+        history.value_size() == 0) {
+      LOG(ERROR) << "old_value parse fail";
+      continue;
+    }
+    const Value& value = history.value(history.value_size() - 1);
+    resp.insert(std::make_pair(it->key().ToString(),
+                               std::make_pair(value.value(), value.version())));
+  }
+  delete it;
+
+  return resp;
+}
+
+std::map<std::string, std::pair<std::string, int>> ResLevelDB::GetKeyRange(
+    const std::string& min_key, const std::string& max_key) {
+  std::map<std::string, std::pair<std::string, int>> resp;
+
+  leveldb::Iterator* it = db_->NewIterator(leveldb::ReadOptions());
+  for (it->Seek(min_key); it->Valid() && it->key().ToString() <= max_key;
+       it->Next()) {
+    ValueHistory history;
+    if (!history.ParseFromString(it->value().ToString()) ||
+        history.value_size() == 0) {
+      LOG(ERROR) << "old_value parse fail";
+      continue;
+    }
+    const Value& value = history.value(history.value_size() - 1);
+    resp.insert(std::make_pair(it->key().ToString(),
+                               std::make_pair(value.value(), value.version())));
+  }
+  delete it;
+
+  return resp;
+}
+
+// Return a list of <value, version>
+std::vector<std::pair<std::string, int>> ResLevelDB::GetHistory(
+    const std::string& key, int min_version, int max_version) {
+  std::vector<std::pair<std::string, int>> resp;
+  std::string value_str = GetValue(key);
+  ValueHistory history;
+  if (!history.ParseFromString(value_str)) {
+    LOG(ERROR) << "old_value parse fail";
+    return resp;
+  }
+
+  for (int i = history.value_size() - 1; i >= 0; --i) {
+    if (history.value(i).version() < min_version) {
+      break;
+    }
+    if (history.value(i).version() <= max_version) {
+      resp.push_back(
+          std::make_pair(history.value(i).value(), history.value(i).version()));
+    }
+  }
+
+  return resp;
+}
+
+// Return a list of <value, version>
+std::vector<std::pair<std::string, int>> ResLevelDB::GetTopHistory(
+    const std::string& key, int top_number) {
+  std::vector<std::pair<std::string, int>> resp;
+  std::string value_str = GetValue(key);
+  ValueHistory history;
+  if (!history.ParseFromString(value_str)) {
+    LOG(ERROR) << "old_value parse fail";
+    return resp;
+  }
+
+  for (int i = history.value_size() - 1;
+       i >= 0 && resp.size() < static_cast<size_t>(top_number); --i) {
+    resp.push_back(
+        std::make_pair(history.value(i).value(), history.value(i).version()));
+  }
+
+  return resp;
+}
+
+const std::string ckpt_key = "leveldb_checkpoint";
+
+void ResLevelDB::UpdateLastCkpt(uint64_t seq) {
+  LOG(ERROR) << " update ckpt seq:" << seq << " last:" << last_ckpt_
+             << " update time:" << update_time_;
+  if (last_ckpt_ > seq) {
+    return;
+  }
+  last_ckpt_ = seq;
+  update_time_++;
+  if (update_time_ % 100 == 0 && last_ckpt_ > 0) {
+    SetLastCheckpoint(last_ckpt_);
+    update_time_ = 0;
+  }
+}
+
+int ResLevelDB::SetLastCheckpoint(uint64_t ckpt) {
+  LOG(ERROR) << " update last ckpt :" << ckpt;
+  return SetValue(ckpt_key, std::to_string(ckpt));
+}
+
+uint64_t ResLevelDB::GetLastCheckpointInternal() {
+  std::string value = GetValue(ckpt_key);
+  if (value.empty()) {
+    return 0;
+  }
+  return std::stoll(value);
+}
+
+uint64_t ResLevelDB::GetLastCheckpoint() {
+  if (last_ckpt_ > 0) {
+    return last_ckpt_;
+  }
+  return GetLastCheckpointInternal();
+}
+
+}  // namespace storage
+}  // namespace resdb
diff --git a/chain/storage/leveldb.h b/chain/storage/leveldb.h
new file mode 100644
index 00000000..67ec7a40
--- /dev/null
+++ b/chain/storage/leveldb.h
@@ -0,0 +1,102 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#pragma once
+
+#include <memory>
+#include <optional>
+#include <string>
+
+#include "chain/storage/proto/leveldb_config.pb.h"
+#include "chain/storage/storage.h"
+#include "common/lru/lru_cache.h"
+#include "leveldb/db.h"
+#include "leveldb/write_batch.h"
+#include "platform/statistic/stats.h"
+
+namespace resdb {
+namespace storage {
+
+std::unique_ptr<Storage> NewResLevelDB(
+    const std::string& path, std::optional<LevelDBInfo> config = std::nullopt);
+std::unique_ptr<Storage> NewResLevelDB(
+    std::optional<LevelDBInfo> config = std::nullopt);
+
+class ResLevelDB : public Storage {
+ public:
+  ResLevelDB(std::optional<LevelDBInfo> config_data = std::nullopt);
+
+  virtual ~ResLevelDB();
+  int SetValueWithSeq(const std::string& key, const std::string& value,
+                      uint64_t seq) override;
+  int SetValue(const std::string& key, const std::string& value) override;
+  std::string GetValue(const std::string& key) override;
+  std::pair<std::string, uint64_t> GetValueWithSeq(const std::string& key,
+                                                   uint64_t seq) override;
+  std::string GetRange(const std::string& min_key,
+                       const std::string& max_key) override;
+
+  int SetValueWithVersion(const std::string& key, const std::string& value,
+                          int version) override;
+  std::pair<std::string, int> GetValueWithVersion(const std::string& key,
+                                                  int version) override;
+
+  // Return a map of <key, <value, version>>
+  std::map<std::string, std::vector<std::pair<std::string, uint64_t>>>
+  GetAllItemsWithSeq() override;
+  std::map<std::string, std::pair<std::string, int>> GetAllItems() override;
+  std::map<std::string, std::pair<std::string, int>> GetKeyRange(
+      const std::string& min_key, const std::string& max_key) override;
+
+  // Return a list of <value, version>
+  std::vector<std::pair<std::string, int>> GetHistory(const std::string& key,
+                                                      int min_version,
+                                                      int max_version) override;
+
+  std::vector<std::pair<std::string, int>> GetTopHistory(
+      const std::string& key, int top_number) override;
+
+  bool UpdateMetrics();
+
+  bool Flush() override;
+
+  virtual uint64_t GetLastCheckpoint() override;
+
+  virtual int SetLastCheckpoint(uint64_t ckpt);
+
+ private:
+  void CreateDB(const std::string& path);
+  uint64_t GetLastCheckpointInternal();
+  void UpdateLastCkpt(uint64_t seq);
+
+ private:
+  std::unique_ptr<leveldb::DB> db_ = nullptr;
+  ::leveldb::WriteBatch batch_;
+  unsigned int write_buffer_size_ = 64 << 20;
+  unsigned int write_batch_size_ = 1;
+
+ protected:
+  Stats* global_stats_ = nullptr;
+  std::unique_ptr<LRUCache<std::string, std::string>> block_cache_;
+  uint64_t last_ckpt_;
+  int update_time_ = 0;
+};
+
+}  // namespace storage
+}  // namespace resdb
diff --git a/chain/storage/leveldb_test.cpp b/chain/storage/leveldb_test.cpp
new file mode 100644
index 00000000..87e36d81
--- /dev/null
+++ b/chain/storage/leveldb_test.cpp
@@ -0,0 +1,117 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "chain/storage/leveldb.h"
+
+#include <glog/logging.h>
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
+
+#include <filesystem>
+
+namespace resdb {
+namespace storage {
+namespace {
+
+enum class CacheConfig { DISABLED, ENABLED };
+
+class TestableResLevelDB : public ResLevelDB {
+ public:
+  using ResLevelDB::block_cache_;
+  using ResLevelDB::global_stats_;
+  using ResLevelDB::ResLevelDB;
+};
+
+class LevelDBTest : public ::testing::TestWithParam<CacheConfig> {
+ protected:
+  LevelDBTest() {
+    LevelDBInfo config;
+    if (GetParam() == CacheConfig::ENABLED) {
+      config.set_enable_block_cache(true);
+      config.set_block_cache_capacity(1000);
+    } else {
+      Reset();
+    }
+    storage = std::make_unique<TestableResLevelDB>(config);
+  }
+
+ protected:
+  std::unique_ptr<TestableResLevelDB> storage;
+  std::string path_ = "/tmp/leveldb_test";
+
+ private:
+  void Reset() { std::filesystem::remove_all(path_.c_str()); }
+};
+
+TEST_P(LevelDBTest, BlockCacheEnabled) {
+  if (GetParam() == CacheConfig::ENABLED) {
+    EXPECT_TRUE(storage->block_cache_ != nullptr);
+    EXPECT_TRUE(storage->block_cache_->GetCapacity() == 1000);
+  } else {
+    EXPECT_TRUE(storage->block_cache_ == nullptr);
+    EXPECT_FALSE(storage->UpdateMetrics());
+  }
+}
+
+TEST_P(LevelDBTest, AddValueAndCheckCache) {
+  if (GetParam() == CacheConfig::ENABLED) {
+    // Add a value
+    std::string key = "test_key";
+    std::string value = "test_value";
+    EXPECT_EQ(storage->SetValue(key, value), 0);
+
+    // Check if CacheHit is incremented in the Stats class
+    EXPECT_TRUE(storage->block_cache_->Get(key) == "test_value");
+    EXPECT_EQ(storage->block_cache_->GetCacheHits(), 1);
+  }
+}
+
+TEST_P(LevelDBTest, CacheEvictionPolicy) {
+  if (GetParam() == CacheConfig::ENABLED) {
+    // Insert 1000 values
+    for (int i = 1; i <= 1000; ++i) {
+      std::string key = "key_" + std::to_string(i);
+      std::string value = "value_" + std::to_string(i);
+      EXPECT_EQ(storage->SetValue(key, value), 0);
+    }
+
+    // Insert the 1001st value
+    std::string key_1001 = "key_1001";
+    std::string value_1001 = "value_1001";
+    EXPECT_EQ(storage->SetValue(key_1001, value_1001), 0);
+
+    // Check that the 1001st value is not present in the cache
+    EXPECT_TRUE(storage->GetValue("key_1") == "value_1");
+    EXPECT_EQ(storage->block_cache_->GetCacheMisses(), 1);
+
+    // Expect key_2 to be present in cache and hence a cache hit
+    EXPECT_TRUE(storage->GetValue("key_2") == "value_2");
+    EXPECT_EQ(storage->block_cache_->GetCacheHits(), 1);
+
+    EXPECT_TRUE(storage->UpdateMetrics());
+  }
+}
+
+INSTANTIATE_TEST_CASE_P(LevelDBTest, LevelDBTest,
+                        ::testing::Values(CacheConfig::ENABLED,
+                                          CacheConfig::DISABLED));
+
+}  // namespace
+}  // namespace storage
+}  // namespace resdb
\ No newline at end of file
diff --git a/chain/storage/memory_db.cpp b/chain/storage/memory_db.cpp
new file mode 100644
index 00000000..aac3bc8c
--- /dev/null
+++ b/chain/storage/memory_db.cpp
@@ -0,0 +1,205 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "chain/storage/memory_db.h"
+
+#include <glog/logging.h>
+
+namespace resdb {
+namespace storage {
+
+std::unique_ptr<Storage> NewMemoryDB() { return std::make_unique<MemoryDB>(); }
+
+MemoryDB::MemoryDB() {}
+
+int MemoryDB::SetValue(const std::string& key, const std::string& value) {
+  kv_map_[key] = value;
+  return 0;
+}
+
+std::string MemoryDB::GetRange(const std::string& min_key,
+                               const std::string& max_key) {
+  std::string values = "[";
+  bool first_iteration = true;
+  for (auto kv : kv_map_) {
+    if (kv.first >= min_key && kv.first <= max_key) {
+      if (!first_iteration) values.append(",");
+      first_iteration = false;
+      values.append(kv.second);
+    }
+  }
+  values.append("]");
+  return values;
+}
+
+std::string MemoryDB::GetValue(const std::string& key) {
+  auto search = kv_map_.find(key);
+  if (search != kv_map_.end())
+    return search->second;
+  else {
+    return "";
+  }
+}
+
+std::pair<std::string, uint64_t> MemoryDB::GetValueWithSeq(
+    const std::string& key, uint64_t seq) {
+  auto search_it = kv_map_with_seq_.find(key);
+  if (search_it != kv_map_with_seq_.end() && search_it->second.size()) {
+    auto it = search_it->second.end();
+    do {
+      --it;
+      if (it->second == seq || seq == 0) {
+        return *it;
+      }
+      if (it->second < seq) {
+        break;
+      }
+    } while (it != search_it->second.begin());
+    LOG(ERROR) << " key:" << key << " no seq:" << seq;
+  }
+  return std::make_pair("", 0);
+}
+
+int MemoryDB::SetValueWithSeq(const std::string& key, const std::string& value,
+                              uint64_t seq) {
+  auto it = kv_map_with_seq_.find(key);
+  if (it != kv_map_with_seq_.end() && it->second.back().second > seq) {
+    LOG(ERROR) << " value seq not match. key:" << key << " db seq:"
+               << (it == kv_map_with_seq_.end() ? 0 : it->second.back().second)
+               << " new seq:" << seq;
+    return -2;
+  }
+  kv_map_with_seq_[key].push_back(std::make_pair(value, seq));
+  while (kv_map_with_seq_[key].size() > max_history_) {
+    kv_map_with_seq_[key].erase(kv_map_with_seq_[key].begin());
+  }
+  return 0;
+}
+
+int MemoryDB::SetValueWithVersion(const std::string& key,
+                                  const std::string& value, int version) {
+  auto it = kv_map_with_v_.find(key);
+  if ((it == kv_map_with_v_.end() && version != 0) ||
+      (it != kv_map_with_v_.end() && it->second.back().second != version)) {
+    LOG(ERROR) << " value version not match. key:" << key << " db version:"
+               << (it == kv_map_with_v_.end() ? 0 : it->second.back().second)
+               << " user version:" << version;
+    return -2;
+  }
+  kv_map_with_v_[key].push_back(std::make_pair(value, version + 1));
+  return 0;
+}
+
+std::pair<std::string, int> MemoryDB::GetValueWithVersion(
+    const std::string& key, int version) {
+  auto search_it = kv_map_with_v_.find(key);
+  if (search_it != kv_map_with_v_.end() && search_it->second.size()) {
+    auto it = search_it->second.end();
+    do {
+      --it;
+      if (it->second == version) {
+        return *it;
+      }
+      if (it->second < version) {
+        break;
+      }
+    } while (it != search_it->second.begin());
+    it = --search_it->second.end();
+    LOG(ERROR) << " key:" << key << " no version:" << version
+               << " return max:" << it->second;
+    return *it;
+  }
+  return std::make_pair("", 0);
+}
+
+std::map<std::string, std::vector<std::pair<std::string, uint64_t>>>
+MemoryDB::GetAllItemsWithSeq() {
+  std::map<std::string, std::vector<std::pair<std::string, uint64_t>>> resp;
+  for (const auto& it : kv_map_with_seq_) {
+    LOG(ERROR) << " value num:" << it.second.size();
+    for (const auto& item : it.second) {
+      resp[it.first].push_back(item);
+    }
+  }
+  return resp;
+}
+
+std::map<std::string, std::pair<std::string, int>> MemoryDB::GetAllItems() {
+  std::map<std::string, std::pair<std::string, int>> resp;
+
+  for (const auto& it : kv_map_with_v_) {
+    resp.insert(std::make_pair(it.first, it.second.back()));
+  }
+  return resp;
+}
+
+std::map<std::string, std::pair<std::string, int>> MemoryDB::GetKeyRange(
+    const std::string& min_key, const std::string& max_key) {
+  LOG(ERROR) << "min key:" << min_key << " max key:" << max_key;
+  std::map<std::string, std::pair<std::string, int>> resp;
+  for (const auto& it : kv_map_with_v_) {
+    if (it.first >= min_key && it.first <= max_key) {
+      resp.insert(std::make_pair(it.first, it.second.back()));
+    }
+  }
+  return resp;
+}
+
+std::vector<std::pair<std::string, int>> MemoryDB::GetHistory(
+    const std::string& key, int min_version, int max_version) {
+  std::vector<std::pair<std::string, int>> resp;
+  auto search_it = kv_map_with_v_.find(key);
+  if (search_it == kv_map_with_v_.end()) {
+    return resp;
+  }
+
+  auto it = search_it->second.end();
+  do {
+    --it;
+    if (it->second < min_version) {
+      break;
+    }
+    if (it->second <= max_version) {
+      resp.push_back(*it);
+    }
+  } while (it != search_it->second.begin());
+  return resp;
+}
+
+std::vector<std::pair<std::string, int>> MemoryDB::GetTopHistory(
+    const std::string& key, int top_number) {
+  std::vector<std::pair<std::string, int>> resp;
+  auto search_it = kv_map_with_v_.find(key);
+  if (search_it == kv_map_with_v_.end()) {
+    return resp;
+  }
+
+  auto it = search_it->second.end();
+  do {
+    --it;
+    resp.push_back(*it);
+    if (resp.size() >= static_cast<size_t>(top_number)) {
+      break;
+    }
+  } while (it != search_it->second.begin());
+  return resp;
+}
+
+}  // namespace storage
+}  // namespace resdb
diff --git a/chain/storage/memory_db.h b/chain/storage/memory_db.h
new file mode 100644
index 00000000..ec138c7a
--- /dev/null
+++ b/chain/storage/memory_db.h
@@ -0,0 +1,95 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#pragma once
+
+#include <list>
+#include <map>
+#include <memory>
+#include <unordered_map>
+
+#include "chain/storage/storage.h"
+
+namespace resdb {
+namespace storage {
+
+// Key Value Storage supporting two types of interfaces:
+// Non-version:
+//  It provides set and get function to set a value to a specific key
+//  Values will be set directly.
+// Version:
+//  It provides set and get function to set a value to a specific key
+//  with a version.
+//  The version inside setting function is to support OCC verification.
+//  The version value should be obtained before setting
+//  and returned back when setting a new value. If the version is not
+//  the same as the old one, return failure.
+//  If the value of a specific version does not exist or providing
+//  version 0 as parameter when accessing get
+//  it returns the current value along its version.
+//
+// Note: Only one type of interface are allowed to be used.
+//
+
+std::unique_ptr<Storage> NewMemoryDB();
+
+class MemoryDB : public Storage {
+ public:
+  MemoryDB();
+
+  int SetValueWithSeq(const std::string& key, const std::string& value,
+                      uint64_t seq) override;
+  int SetValue(const std::string& key, const std::string& value) override;
+  std::string GetValue(const std::string& key) override;
+  std::pair<std::string, uint64_t> GetValueWithSeq(const std::string& key,
+                                                   uint64_t seq) override;
+
+  std::string GetRange(const std::string& min_key,
+                       const std::string& max_key) override;
+
+  int SetValueWithVersion(const std::string& key, const std::string& value,
+                          int version) override;
+  std::pair<std::string, int> GetValueWithVersion(const std::string& key,
+                                                  int version) override;
+
+  // Return a map of <key, <value, version>>
+  std::map<std::string, std::vector<std::pair<std::string, uint64_t>>>
+  GetAllItemsWithSeq() override;
+  std::map<std::string, std::pair<std::string, int>> GetAllItems() override;
+  std::map<std::string, std::pair<std::string, int>> GetKeyRange(
+      const std::string& min_key, const std::string& max_key) override;
+
+  // Return a list of <value, version>
+  std::vector<std::pair<std::string, int>> GetHistory(const std::string& key,
+                                                      int min_version,
+                                                      int max_version) override;
+
+  std::vector<std::pair<std::string, int>> GetTopHistory(const std::string& key,
+                                                         int number) override;
+
+ private:
+  std::unordered_map<std::string, std::string> kv_map_;
+  std::unordered_map<std::string, std::list<std::pair<std::string, int>>>
+      kv_map_with_v_;
+  std::unordered_map<std::string, std::list<std::pair<std::string, uint64_t>>>
+      kv_map_with_seq_;
+};
+
+}  // namespace storage
+}  // namespace resdb
diff --git a/chain/storage/mock_storage.h b/chain/storage/mock_storage.h
new file mode 100644
index 00000000..6b17c326
--- /dev/null
+++ b/chain/storage/mock_storage.h
@@ -0,0 +1,63 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#pragma once
+
+#include "chain/storage/storage.h"
+#include "gmock/gmock.h"
+
+namespace resdb {
+
+class MockStorage : public Storage {
+ public:
+  using ValueType = std::pair<std::string, int>;
+  using ValueSeqType = std::pair<std::string, uint64_t>;
+  using ItemsType = std::map<std::string, ValueType>;
+  using ValuesType = std::vector<ValueType>;
+  using ValuesSeqType = std::map<std::string, std::vector<ValueSeqType>>;
+
+  MOCK_METHOD(int, SetValue, (const std::string& key, const std::string& value),
+              (override));
+  MOCK_METHOD(std::string, GetValue, (const std::string& key), (override));
+  MOCK_METHOD(std::string, GetRange, (const std::string&, const std::string&),
+              (override));
+  MOCK_METHOD(ValueSeqType, GetValueWithSeq, (const std::string& key, uint64_t),
+              (override));
+
+  MOCK_METHOD(int, SetValueWithVersion,
+              (const std::string& key, const std::string& value, int version),
+              (override));
+  MOCK_METHOD(int, SetValueWithSeq,
+              (const std::string& key, const std::string& value, uint64_t seq),
+              (override));
+
+  MOCK_METHOD(ValueType, GetValueWithVersion,
+              (const std::string& key, int version), (override));
+  MOCK_METHOD(ItemsType, GetKeyRange, (const std::string&, const std::string&),
+              (override));
+  MOCK_METHOD(ValuesType, GetHistory, (const std::string&, int, int),
+              (override));
+  MOCK_METHOD(ValuesType, GetTopHistory, (const std::string&, int), (override));
+  MOCK_METHOD(ItemsType, GetAllItems, (), (override));
+  MOCK_METHOD(ValuesSeqType, GetAllItemsWithSeq, (), (override));
+
+  MOCK_METHOD(bool, Flush, (), (override));
+};
+
+}  // namespace resdb
diff --git a/chain/storage/proto/BUILD b/chain/storage/proto/BUILD
new file mode 100644
index 00000000..0b1c7263
--- /dev/null
+++ b/chain/storage/proto/BUILD
@@ -0,0 +1,44 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+load("@rules_cc//cc:defs.bzl", "cc_proto_library")
+load("@rules_proto//proto:defs.bzl", "proto_library")
+
+proto_library(
+    name = "kv_proto",
+    srcs = ["kv.proto"],
+    visibility = ["//chain/storage:__subpackages__"],
+)
+
+cc_proto_library(
+    name = "kv_cc_proto",
+    visibility = ["//chain/storage:__subpackages__"],
+    deps = [":kv_proto"],
+)
+
+proto_library(
+    name = "leveldb_config_proto",
+    srcs = ["leveldb_config.proto"],
+)
+
+cc_proto_library(
+    name = "leveldb_config_cc_proto",
+    deps = [":leveldb_config_proto"],
+)
diff --git a/chain/storage/proto/kv.proto b/chain/storage/proto/kv.proto
new file mode 100644
index 00000000..319d7fb0
--- /dev/null
+++ b/chain/storage/proto/kv.proto
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+syntax = "proto3";
+
+package resdb.storage;
+
+message Value {
+    bytes value = 1;
+    int32 version = 2;
+    uint64 seq = 3;
+}
+
+message ValueHistory {
+  repeated Value value = 1;
+}
+
diff --git a/chain/storage/proto/leveldb_config.proto b/chain/storage/proto/leveldb_config.proto
new file mode 100644
index 00000000..28e5a188
--- /dev/null
+++ b/chain/storage/proto/leveldb_config.proto
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+syntax = "proto3";
+
+package resdb.storage;
+
+message LevelDBInfo {
+  uint32 write_buffer_size_mb = 2;
+  uint32 write_batch_size = 3;
+  string path = 4;
+  optional bool enable_block_cache = 5;
+  optional uint32 block_cache_capacity = 6;
+}
diff --git a/chain/storage/setting/BUILD b/chain/storage/setting/BUILD
new file mode 100644
index 00000000..25d11b4e
--- /dev/null
+++ b/chain/storage/setting/BUILD
@@ -0,0 +1,35 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
+
+bool_flag(
+    name = "enable_leveldb",
+    build_setting_default = False,
+    visibility = ["//visibility:public"],
+)
+
+config_setting(
+    name = "enable_leveldb_setting",
+    values = {
+        "define": "enable_leveldb=True",
+    },
+    visibility = ["//visibility:public"],
+)
diff --git a/chain/storage/storage.h b/chain/storage/storage.h
new file mode 100644
index 00000000..8fa95fee
--- /dev/null
+++ b/chain/storage/storage.h
@@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#pragma once
+
+#include <map>
+#include <string>
+#include <vector>
+
+namespace resdb {
+
+class Storage {
+ public:
+  Storage() = default;
+  virtual ~Storage() = default;
+
+  virtual int SetValue(const std::string& key, const std::string& value) = 0;
+  virtual int SetValueWithSeq(const std::string& key, const std::string& value,
+                              uint64_t seq) = 0;
+  virtual std::string GetValue(const std::string& key) = 0;
+  virtual std::pair<std::string, uint64_t> GetValueWithSeq(
+      const std::string& key, uint64_t seq) = 0;
+  virtual std::string GetRange(const std::string& min_key,
+                               const std::string& max_key) = 0;
+
+  virtual int SetValueWithVersion(const std::string& key,
+                                  const std::string& value, int version) = 0;
+  virtual std::pair<std::string, int> GetValueWithVersion(
+      const std::string& key, int version) = 0;
+
+  // Return a map of <key, <value, version>>
+  virtual std::map<std::string, std::vector<std::pair<std::string, uint64_t>>>
+  GetAllItemsWithSeq() = 0;
+  virtual std::map<std::string, std::pair<std::string, int>> GetAllItems() = 0;
+  virtual std::map<std::string, std::pair<std::string, int>> GetKeyRange(
+      const std::string& min_key, const std::string& max_key) = 0;
+
+  // Return a list of <value, version> from a key
+  // The version list is sorted by the version value in descending order
+  virtual std::vector<std::pair<std::string, int>> GetHistory(
+      const std::string& key, int min_version, int max_version) = 0;
+
+  virtual std::vector<std::pair<std::string, int>> GetTopHistory(
+      const std::string& key, int number) = 0;
+
+  virtual bool Flush() { return true; };
+
+  virtual uint64_t GetLastCheckpoint() { return 0; }
+
+  void SetMaxHistoryNum(int num) { max_history_ = num; }
+
+ protected:
+  uint32_t max_history_ = 10;
+};
+
+}  // namespace resdb
diff --git a/common/BUILD b/common/BUILD
new file mode 100644
index 00000000..c5982dd1
--- /dev/null
+++ b/common/BUILD
@@ -0,0 +1,85 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+cc_library(
+    name = "absl",
+    deps = [
+        "@com_google_absl//absl/status",
+        "@com_google_absl//absl/status:statusor",
+    ],
+)
+
+cc_library(
+    name = "asio",
+    deps = [
+        "@boost//:asio",
+    ],
+)
+
+cc_library(
+    name = "beast",
+    deps = [
+        "@boost//:beast",
+    ],
+)
+
+cc_library(
+    name = "boost_lockfree",
+    deps = [
+        "@boost//:lockfree",
+    ],
+)
+
+cc_library(
+    name = "glog",
+    deps = [
+        "@com_github_google_glog//:glog",
+    ],
+)
+
+cc_library(
+    name = "pybind",
+    deps = [
+        "@pybind11",
+    ],
+)
+
+cc_library(
+    name = "json",
+    deps = [
+        "@nlohmann_json//:json",
+    ],
+)
+
+cc_library(
+    name = "boost_comm",
+    deps = [
+        "@boost//:algorithm",
+        "@boost//:optional",
+    ],
+)
+
+cc_library(
+    name = "comm",
+    deps = [
+        ":absl",
+        ":glog",
+    ],
+)
diff --git a/common/crypto/BUILD b/common/crypto/BUILD
new file mode 100644
index 00000000..e5596903
--- /dev/null
+++ b/common/crypto/BUILD
@@ -0,0 +1,104 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+cc_library(
+    name = "key_generator",
+    srcs = ["key_generator.cpp"],
+    hdrs = ["key_generator.h"],
+    deps = [
+        "//:cryptopp_lib",
+        "//common:comm",
+        "//common/proto:signature_info_cc_proto",
+    ],
+)
+
+cc_library(
+    name = "hash",
+    srcs = ["hash.cpp"],
+    hdrs = ["hash.h"],
+    deps = [
+        "//:cryptopp_lib",
+        "//common:comm",
+    ],
+)
+
+cc_test(
+    name = "hash_test",
+    srcs = ["hash_test.cpp"],
+    deps = [
+        ":hash",
+        "//common/test:test_main",
+    ],
+)
+
+cc_library(
+    name = "signature_utils",
+    srcs = ["signature_utils.cpp"],
+    hdrs = ["signature_utils.h"],
+    deps = [
+        "//:cryptopp_lib",
+        "//common:comm",
+        "//common/proto:signature_info_cc_proto",
+    ],
+)
+
+cc_library(
+    name = "signature_verifier_interface",
+    srcs = ["signature_verifier_interface.cpp"],
+    hdrs = ["signature_verifier_interface.h"],
+    deps = [
+        "//common:comm",
+        "//common/proto:signature_info_cc_proto",
+    ],
+)
+
+cc_library(
+    name = "signature_verifier",
+    srcs = ["signature_verifier.cpp"],
+    hdrs = ["signature_verifier.h"],
+    deps = [
+        ":signature_utils",
+        ":signature_verifier_interface",
+        "//:cryptopp_lib",
+        "//common:comm",
+        "//common/proto:signature_info_cc_proto",
+    ],
+)
+
+cc_library(
+    name = "mock_signature_verifier",
+    testonly = True,
+    hdrs = ["mock_signature_verifier.h"],
+    deps = [
+        ":signature_verifier",
+    ],
+)
+
+cc_test(
+    name = "signature_verifier_test",
+    srcs = ["signature_verifier_test.cpp"],
+    deps = [
+        ":key_generator",
+        ":signature_verifier",
+        "//:cryptopp_lib",
+        "//common/test:test_main",
+    ],
+)
diff --git a/common/crypto/hash.cpp b/common/crypto/hash.cpp
new file mode 100644
index 00000000..b96a2b81
--- /dev/null
+++ b/common/crypto/hash.cpp
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "common/crypto/hash.h"
+
+#include <cryptopp/ripemd.h>
+#include <cryptopp/sha.h>
+#include <glog/logging.h>
+
+namespace resdb {
+namespace utils {
+// Funtion to calculate hash of a string.
+std::string CalculateSHA256Hash(const std::string& str) {
+  CryptoPP::byte const* pData = (CryptoPP::byte*)str.data();
+  unsigned int nDataLen = str.size();
+  CryptoPP::byte aDigest[CryptoPP::SHA256::DIGESTSIZE];
+
+  CryptoPP::SHA256().CalculateDigest(aDigest, pData, nDataLen);
+  return std::string((char*)aDigest, CryptoPP::SHA256::DIGESTSIZE);
+}
+
+std::string CalculateRIPEMD160Hash(const std::string& str) {
+  CryptoPP::byte const* pData = (CryptoPP::byte*)str.data();
+  unsigned int nDataLen = str.size();
+  CryptoPP::byte aDigest[CryptoPP::RIPEMD160::DIGESTSIZE];
+
+  CryptoPP::RIPEMD160().CalculateDigest(aDigest, pData, nDataLen);
+  return std::string((char*)aDigest, CryptoPP::RIPEMD160::DIGESTSIZE);
+}
+
+}  // namespace utils
+}  // namespace resdb
diff --git a/common/crypto/hash.h b/common/crypto/hash.h
new file mode 100644
index 00000000..5136bfd5
--- /dev/null
+++ b/common/crypto/hash.h
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#pragma once
+
+#include <string>
+
+namespace resdb {
+namespace utils {
+
+std::string CalculateSHA256Hash(const std::string& str);
+std::string CalculateRIPEMD160Hash(const std::string& str);
+
+}  // namespace utils
+}  // namespace resdb
diff --git a/common/crypto/hash_test.cpp b/common/crypto/hash_test.cpp
new file mode 100644
index 00000000..8cb32022
--- /dev/null
+++ b/common/crypto/hash_test.cpp
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "common/crypto/hash.h"
+
+#include <glog/logging.h>
+#include <gtest/gtest.h>
+
+#include "common/test/test_macros.h"
+
+namespace resdb {
+namespace utils {
+namespace {
+
+using ::resdb::testing::EqualsProto;
+
+TEST(SignatureVerifyTest, CalculateSHA256) {
+  std::string expected_str =
+      "\x9F\x86\xD0\x81\x88L}e\x9A/"
+      "\xEA\xA0\xC5Z\xD0\x15\xA3\xBFO\x1B+\v\x82,\xD1]l\x15\xB0\xF0\n\b";
+  EXPECT_EQ(CalculateSHA256Hash("test"), expected_str);
+}
+
+TEST(SignatureVerifyTest, CalculateRIPEMD160) {
+  std::string expected_str =
+      "^R\xFE\xE4~k\a\x5"
+      "e\xF7"
+      "CrF\x8C\xDCi\x9D\xE8\x91\a";
+  EXPECT_EQ(CalculateRIPEMD160Hash("test"), expected_str);
+}
+
+}  // namespace
+}  // namespace utils
+}  // namespace resdb
diff --git a/common/crypto/key_generator.cpp b/common/crypto/key_generator.cpp
new file mode 100644
index 00000000..5a60923f
--- /dev/null
+++ b/common/crypto/key_generator.cpp
@@ -0,0 +1,156 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "common/crypto/key_generator.h"
+
+#include <cryptopp/aes.h>
+#include <cryptopp/cmac.h>
+#include <cryptopp/dsa.h>
+#include <cryptopp/eccrypto.h>
+#include <cryptopp/filters.h>
+#include <cryptopp/hex.h>
+#include <cryptopp/osrng.h>
+#include <cryptopp/pssr.h>
+#include <cryptopp/rsa.h>
+#include <cryptopp/sha.h>
+#include <cryptopp/whrlpool.h>
+#include <cryptopp/xed25519.h>
+#include <glog/logging.h>
+
+//#include <cryptopp/modes.h>
+//#include <iomanip>
+
+namespace resdb {
+
+namespace {
+
+//==============================================================================
+// Return a KeyPairHex for each node. This function is used by the nodes to
+// obtain their keyPair
+SecretKey RsaGenerateHexKeyPair(unsigned int key_size) {
+  SecretKey key_pair;
+  // PGP Random Pool-like generator
+  CryptoPP::AutoSeededRandomPool rng;
+
+  // generate keys
+  CryptoPP::RSA::PrivateKey private_key;
+  private_key.GenerateRandomWithKeySize(rng, key_size);
+  CryptoPP::RSA::PublicKey public_key(private_key);
+
+  // save keys
+  public_key.Save(CryptoPP::HexEncoder(
+                      new CryptoPP::StringSink(*key_pair.mutable_public_key()))
+                      .Ref());
+  private_key.Save(CryptoPP::HexEncoder(new CryptoPP::StringSink(
+                                            *key_pair.mutable_private_key()))
+                       .Ref());
+
+  return key_pair;
+}
+
+// Initialize the signer and the keys for ED25519
+SecretKey ED25519GenerateKeys() {
+  CryptoPP::ed25519::Signer signer;
+  SecretKey key_pair;
+  CryptoPP::AutoSeededRandomPool prng;
+  // Initilize signer;
+  signer.AccessPrivateKey().GenerateRandom(prng);
+
+  const CryptoPP::ed25519PrivateKey &private_key =
+      dynamic_cast<const CryptoPP::ed25519PrivateKey &>(signer.GetPrivateKey());
+
+  key_pair.mutable_private_key()->assign(
+      (char *)private_key.GetPrivateKeyBytePtr(),
+      CryptoPP::ed25519PrivateKey::SECRET_KEYLENGTH);
+  key_pair.mutable_public_key()->assign(
+      (char *)private_key.GetPublicKeyBytePtr(),
+      CryptoPP::ed25519PrivateKey::PUBLIC_KEYLENGTH);
+  return key_pair;
+}
+
+// CMAC-AES key generator
+// Return a keyPairHex where just the priv key is set
+SecretKey CmacGenerateHexKey(unsigned int key_size) {
+  SecretKey key_pair;
+  std::string private_key;
+  CryptoPP::AutoSeededRandomPool prng;
+  // int keySize = 16 ; // AES::DEFAULT_KEYLENGTH
+  CryptoPP::SecByteBlock key(key_size);
+  prng.GenerateBlock(
+      key.data(), key.size());  // Key is a SecByteBlock that contains the key.
+
+  CryptoPP::StringSource ss(key.data(), key.size(), true,
+                            new CryptoPP::HexEncoder(new CryptoPP::StringSink(
+                                private_key))  // HexEncoder
+  );                                           // StringSource
+  key_pair.set_private_key(private_key);
+  key_pair.set_public_key(private_key);
+  return key_pair;
+}
+
+SecretKey ECDSAGenerateKeys() {
+  CryptoPP::AutoSeededRandomPool prng;
+  CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PrivateKey privateKey;
+  CryptoPP::DL_GroupParameters_EC<CryptoPP::ECP> params(
+      CryptoPP::ASN1::secp256k1());
+  privateKey.Initialize(prng, params);
+
+  CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PublicKey publicKey;
+  privateKey.MakePublicKey(publicKey);
+
+  SecretKey key_pair;
+
+  // save keys
+  publicKey.Save(CryptoPP::HexEncoder(
+                     new CryptoPP::StringSink(*key_pair.mutable_public_key()))
+                     .Ref());
+  privateKey.Save(CryptoPP::HexEncoder(
+                      new CryptoPP::StringSink(*key_pair.mutable_private_key()))
+                      .Ref());
+  return key_pair;
+}
+
+}  // namespace
+
+SecretKey KeyGenerator::GeneratorKeys(SignatureInfo::HashType type) {
+  SecretKey key;
+  switch (type) {
+    case SignatureInfo::RSA:
+      key = RsaGenerateHexKeyPair(3072);
+      break;
+    case SignatureInfo::ED25519: {
+      key = ED25519GenerateKeys();
+      break;
+    }
+    case SignatureInfo::CMAC_AES: {
+      key = CmacGenerateHexKey(16);
+      break;
+    }
+    case SignatureInfo::ECDSA: {
+      key = ECDSAGenerateKeys();
+      break;
+    }
+    default:
+      break;
+  }
+  key.set_hash_type(type);
+  return key;
+}
+
+}  // namespace resdb
diff --git a/common/crypto/key_generator.h b/common/crypto/key_generator.h
new file mode 100644
index 00000000..fcbe0f59
--- /dev/null
+++ b/common/crypto/key_generator.h
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#pragma once
+
+#include "common/proto/signature_info.pb.h"
+
+namespace resdb {
+
+class KeyGenerator {
+ public:
+  static SecretKey GeneratorKeys(SignatureInfo::HashType type);
+};
+
+}  // namespace resdb
diff --git a/common/crypto/mock_signature_verifier.h b/common/crypto/mock_signature_verifier.h
new file mode 100644
index 00000000..e22d3586
--- /dev/null
+++ b/common/crypto/mock_signature_verifier.h
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#pragma once
+
+#include "common/crypto/signature_verifier.h"
+
+namespace resdb {
+
+class MockSignatureVerifier : public SignatureVerifier {
+ public:
+  MockSignatureVerifier() : SignatureVerifier(KeyInfo(), CertificateInfo()) {}
+  MOCK_METHOD(absl::StatusOr<SignatureInfo>, SignMessage, (const std::string&),
+              (override));
+  MOCK_METHOD(bool, VerifyMessage,
+              (const std::string&, const SignatureInfo& sign), (override));
+};
+
+}  // namespace resdb
diff --git a/common/crypto/signature_utils.cpp b/common/crypto/signature_utils.cpp
new file mode 100644
index 00000000..4df11022
--- /dev/null
+++ b/common/crypto/signature_utils.cpp
@@ -0,0 +1,147 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "common/crypto/signature_utils.h"
+
+#include <cryptopp/eccrypto.h>
+#include <cryptopp/hex.h>
+#include <cryptopp/osrng.h>
+#include <cryptopp/pssr.h>
+#include <cryptopp/rsa.h>
+#include <cryptopp/whrlpool.h>
+#include <glog/logging.h>
+
+namespace resdb {
+namespace utils {
+
+bool RsaVerifyString(const std::string& message, const std::string& public_key,
+                     const std::string& signature) {
+  try {
+    // decode and load public key (using pipeline)
+    CryptoPP::RSA::PublicKey rsa_public_key;
+    rsa_public_key.Load(
+        CryptoPP::StringSource(public_key, true, new CryptoPP::HexDecoder())
+            .Ref());
+
+    // decode signature
+    std::string decoded_signature;
+    CryptoPP::StringSource ss(
+        signature, true,
+        new CryptoPP::HexDecoder(new CryptoPP::StringSink(decoded_signature)));
+
+    // verify message
+    bool result = false;
+    CryptoPP::RSASS<CryptoPP::PSSR, CryptoPP::Whirlpool>::Verifier verifier(
+        rsa_public_key);
+    CryptoPP::StringSource ss2(
+        decoded_signature + message, true,
+        new CryptoPP::SignatureVerificationFilter(
+            verifier,
+            new CryptoPP::ArraySink((CryptoPP::byte*)&result, sizeof(result))));
+
+    return result;
+  } catch (...) {
+    LOG(ERROR) << "key not valid";
+    return false;
+  }
+}
+
+bool ECDSAVerifyString(const std::string& message,
+                       const std::string& public_key,
+                       const std::string& signature) {
+  std::string decoded;
+  std::string output;
+  CryptoPP::StringSource(
+      signature, true,
+      new CryptoPP::HexDecoder(new CryptoPP::StringSink(decoded))  // StringSink
+  );  // StringSource
+
+  CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PublicKey dsa_public_key;
+  dsa_public_key.Load(
+      CryptoPP::StringSource(public_key, true, new CryptoPP::HexDecoder())
+          .Ref());
+  CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::Verifier verifier(
+      dsa_public_key);
+
+  bool valid = true;
+  CryptoPP::StringSource(
+      decoded + message, true,
+      new CryptoPP::SignatureVerificationFilter(
+          verifier,
+          new CryptoPP::ArraySink((CryptoPP::byte*)&valid, sizeof(valid))));
+  if (!valid) {
+    LOG(ERROR) << "signature invalid. signature len:" << signature.size()
+               << " message len:" << message.size();
+  }
+  return valid;
+}
+
+std::string RsaSignString(const std::string& private_key,
+                          const std::string& message) {
+  // decode and load private key (using pipeline)
+  CryptoPP::RSA::PrivateKey rsa_private_key;
+  rsa_private_key.Load(
+      CryptoPP::StringSource(private_key, true, new CryptoPP::HexDecoder())
+          .Ref());
+
+  // sign message
+  std::string signature;
+  CryptoPP::RSASS<CryptoPP::PSSR, CryptoPP::Whirlpool>::Signer signer(
+      rsa_private_key);
+  CryptoPP::AutoSeededRandomPool rng;
+  CryptoPP::StringSource ss(
+      message, true,
+      new CryptoPP::SignerFilter(
+          rng, signer,
+          new CryptoPP::HexEncoder(new CryptoPP::StringSink(signature))));
+  return signature;
+}
+
+std::string ECDSASignString(const std::string& private_key,
+                            const std::string& message) {
+  try {
+    CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::PrivateKey privateKey;
+    privateKey.Load(
+        CryptoPP::StringSource(private_key, true, new CryptoPP::HexDecoder())
+            .Ref());
+    CryptoPP::AutoSeededRandomPool prng;
+    std::string signature;
+
+    CryptoPP::StringSource ss1(
+        message, true /*pump all*/,
+        new CryptoPP::SignerFilter(
+            prng,
+            CryptoPP::ECDSA<CryptoPP::ECP, CryptoPP::SHA256>::Signer(
+                privateKey),
+            new CryptoPP::StringSink(signature)));
+
+    std::string output;
+    CryptoPP::StringSource(signature, true,
+                           new CryptoPP::HexEncoder(
+                               new CryptoPP::StringSink(output))  // HexEncoder
+    );  // StringSource
+    return output;
+  } catch (...) {
+    LOG(ERROR) << "sign error";
+    return "";
+  }
+}
+
+}  // namespace utils
+}  // namespace resdb
diff --git a/common/crypto/signature_utils.h b/common/crypto/signature_utils.h
new file mode 100644
index 00000000..927cbbd3
--- /dev/null
+++ b/common/crypto/signature_utils.h
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#pragma once
+
+#include <string>
+
+namespace resdb {
+namespace utils {
+
+bool RsaVerifyString(const std::string& message, const std::string& public_key,
+                     const std::string& signature);
+bool ECDSAVerifyString(const std::string& message,
+                       const std::string& public_key,
+                       const std::string& signature);
+
+std::string RsaSignString(const std::string& private_key,
+                          const std::string& message);
+
+std::string ECDSASignString(const std::string& private_key,
+                            const std::string& message);
+
+}  // namespace utils
+}  // namespace resdb
diff --git a/common/crypto/signature_verifier.cpp b/common/crypto/signature_verifier.cpp
new file mode 100644
index 00000000..cf2046e2
--- /dev/null
+++ b/common/crypto/signature_verifier.cpp
@@ -0,0 +1,279 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "common/crypto/signature_verifier.h"
+
+#include <cryptopp/aes.h>
+#include <cryptopp/cmac.h>
+#include <cryptopp/dsa.h>
+#include <cryptopp/eccrypto.h>
+#include <cryptopp/filters.h>
+#include <cryptopp/hex.h>
+#include <cryptopp/osrng.h>
+#include <cryptopp/pssr.h>
+#include <cryptopp/rsa.h>
+#include <cryptopp/sha.h>
+#include <cryptopp/whrlpool.h>
+#include <glog/logging.h>
+
+#include "common/crypto/signature_utils.h"
+
+namespace resdb {
+
+namespace {
+
+// ================== for verify ====================================
+bool ED25519verifyString(const std::string& message,
+                         const std::string& public_key,
+                         const std::string& signature) {
+  CryptoPP::byte byteKey[CryptoPP::ed25519PrivateKey::PUBLIC_KEYLENGTH];
+  if (public_key.size() != CryptoPP::ed25519PrivateKey::PUBLIC_KEYLENGTH) {
+    LOG(ERROR) << "public key len invalid:" << public_key.size();
+    return false;
+  }
+  memcpy(byteKey, public_key.c_str(), public_key.size());
+  auto verifier = CryptoPP::ed25519::Verifier(byteKey);
+
+  bool valid = true;
+  CryptoPP::StringSource(
+      signature + message, true,
+      new CryptoPP::SignatureVerificationFilter(
+          verifier,
+          new CryptoPP::ArraySink((CryptoPP::byte*)&valid, sizeof(valid))));
+  if (!valid) {
+    LOG(ERROR) << "signature invalid. signature len:" << signature.size()
+               << " message len:" << message.size();
+  }
+  return valid;
+}
+
+bool CmacVerifyString(const std::string& message, const std::string& public_key,
+                      const std::string& signature) {
+  bool res = false;
+  // KEY TRANSFORMATION
+  // https://stackoverflow.com/questions/26145776/string-to-secbyteblock-conversion
+  CryptoPP::SecByteBlock privKey((const unsigned char*)(public_key.data()),
+                                 public_key.size());
+  CryptoPP::CMAC<CryptoPP::AES> cmac(privKey.data(), privKey.size());
+  const int flags = CryptoPP::HashVerificationFilter::HASH_AT_END |
+                    CryptoPP::HashVerificationFilter::PUT_RESULT;
+
+  // MESSAGE VERIFICATION
+  CryptoPP::StringSource ss3(
+      message + signature, true,
+      new CryptoPP::HashVerificationFilter(
+          cmac, new CryptoPP::ArraySink((CryptoPP::byte*)&res, sizeof(res)),
+          flags));  // StringSource
+  return res;
+}
+
+// ================== for sign ====================================
+
+std::string ED25519signString(const std::string& message,
+                              CryptoPP::ed25519::Signer* signer) {
+  CryptoPP::AutoSeededRandomPool prng;
+  std::string signature;
+  CryptoPP::StringSource(
+      message, true,
+      new CryptoPP::SignerFilter(CryptoPP::NullRNG(), *signer,
+                                 new CryptoPP::StringSink(signature)));
+  return signature;
+}
+
+// CMAC-AES Signature generator
+// Return a token, mac, to verify the a message.
+std::string CmacSignString(const std::string& private_key,
+                           const std::string& message) {
+  std::string mac = "";
+
+  // KEY TRANSFORMATION.
+  // https://stackoverflow.com/questions/26145776/string-to-secbyteblock-conversion
+
+  CryptoPP::SecByteBlock mac_private_key(
+      (const unsigned char*)(private_key.data()), private_key.size());
+
+  CryptoPP::CMAC<CryptoPP::AES> cmac(mac_private_key.data(),
+                                     mac_private_key.size());
+
+  CryptoPP::StringSource ss1(
+      message, true,
+      new CryptoPP::HashFilter(cmac, new CryptoPP::StringSink(mac)));
+  return mac;
+}
+
+}  // namespace
+
+SignatureVerifier::SignatureVerifier(const KeyInfo& private_key,
+                                     const CertificateInfo& certificate_info) {
+  private_key_ = private_key;
+  if (private_key_.key().empty()) {
+    LOG(ERROR) << "private invalid";
+  }
+
+  node_id_ = certificate_info.node_id();
+  admin_public_key_ = certificate_info.admin_public_key();
+  AddPublicKey(certificate_info.public_key(), false);
+  if (private_key_.hash_type() == SignatureInfo::ED25519) {
+    CryptoPP::byte byteKey[CryptoPP::ed25519PrivateKey::SECRET_KEYLENGTH];
+    if (private_key_.key().size() !=
+        CryptoPP::ed25519PrivateKey::SECRET_KEYLENGTH) {
+      return;
+    }
+    memcpy(byteKey, private_key_.key().c_str(), private_key_.key().size());
+    signer_ = std::make_unique<CryptoPP::ed25519::Signer>(byteKey);
+  }
+}
+
+bool SignatureVerifier::AddPublicKey(const CertificateKey& public_key,
+                                     bool need_verify) {
+  std::unique_lock<std::shared_mutex> lk(mutex_);
+  if (need_verify &&
+      !VerifyKey(public_key.public_key_info(), public_key.certificate())) {
+    return false;
+  }
+  // LOG(ERROR) << "add public key from:"
+  //           << public_key.public_key_info().node_id();
+  keys_[public_key.public_key_info().node_id()] = public_key;
+  return true;
+}
+
+absl::StatusOr<KeyInfo> SignatureVerifier::GetPublicKey(int64_t node_id) const {
+  std::shared_lock<std::shared_mutex> lk(mutex_);
+  auto it = keys_.find(node_id);
+  if (it == keys_.end()) {
+    return absl::InvalidArgumentError("Public key not exist.");
+  }
+  return it->second.public_key_info().key();
+}
+
+std::vector<CertificateKey> SignatureVerifier::GetAllPublicKeys() const {
+  std::shared_lock<std::shared_mutex> lk(mutex_);
+  std::vector<CertificateKey> keys;
+  for (auto key : keys_) {
+    keys.push_back(key.second);
+  }
+  return keys;
+}
+
+size_t SignatureVerifier::GetPublicKeysSize() const {
+  std::shared_lock<std::shared_mutex> lk(mutex_);
+  return keys_.size();
+}
+
+// Funtion to calculate hash of a string.
+std::string SignatureVerifier::CalculateHash(const std::string& str) {
+  CryptoPP::byte const* pData = (CryptoPP::byte*)str.data();
+  unsigned int nDataLen = str.size();
+  CryptoPP::byte aDigest[CryptoPP::SHA256::DIGESTSIZE];
+
+  CryptoPP::SHA256().CalculateDigest(aDigest, pData, nDataLen);
+  return std::string((char*)aDigest, CryptoPP::SHA256::DIGESTSIZE);
+}
+
+absl::StatusOr<SignatureInfo> SignatureVerifier::SignMessage(
+    const std::string& message) {
+  SignatureInfo info;
+  info.set_node_id(node_id_);
+  switch (private_key_.hash_type()) {
+    case SignatureInfo::RSA:
+      info.set_signature(utils::RsaSignString(private_key_.key(), message));
+      break;
+    case SignatureInfo::ED25519:
+      info.set_signature(ED25519signString(message, signer_.get()));
+      break;
+    case SignatureInfo::CMAC_AES:
+      info.set_signature(CmacSignString(private_key_.key(), message));
+      break;
+    case SignatureInfo::ECDSA:
+      info.set_signature(utils::ECDSASignString(private_key_.key(), message));
+      break;
+    default:
+      break;
+  }
+  return info;
+}
+
+bool SignatureVerifier::VerifyMessage(const google::protobuf::Message& message,
+                                      const SignatureInfo& sign) {
+  std::string str;
+  if (!message.SerializeToString(&str)) {
+    return false;
+  }
+  return VerifyMessage(str, sign);
+}
+
+bool SignatureVerifier::VerifyMessage(const std::string& message,
+                                      const SignatureInfo& info) {
+  if (info.signature().empty()) {
+    LOG(ERROR) << " signature is empty";
+    return false;
+  }
+  auto public_key = GetPublicKey(info.node_id());
+  if (!public_key.ok()) {
+    LOG(ERROR) << "key not found:" << info.node_id();
+    return false;
+  }
+  return VerifyMessage(message, *public_key, info.signature());
+}
+
+absl::StatusOr<SignatureInfo> SignatureVerifier::SignCertificateKeyInfo(
+    const CertificateKeyInfo& info) {
+  std::string str;
+  if (!info.SerializeToString(&str)) {
+    return absl::InvalidArgumentError("Serialize fail");
+  }
+  return SignatureVerifier::SignMessage(str);
+}
+
+bool SignatureVerifier::VerifyKey(const CertificateKeyInfo& info,
+                                  const SignatureInfo& sign) {
+  std::string str;
+  if (!info.SerializeToString(&str)) {
+    return false;
+  }
+  return VerifyMessage(str, admin_public_key_, sign.signature());
+}
+
+bool SignatureVerifier::VerifyMessage(const std::string& message,
+                                      const KeyInfo& public_key,
+                                      const std::string& signature) {
+  if (public_key.key().empty() || signature.empty()) {
+    LOG(ERROR) << "public is empty, size(" << public_key.key().size()
+               << ") or signature is empty, size(" << signature.size() << ")";
+    return false;
+  }
+  // LOG(ERROR) << "public key hash type:" << public_key.hash_type()
+  //          << " key size:" << public_key.key().size()
+  //         << " sig size:" << signature.size()
+  //        << " msg size:" << message.size();
+  switch (public_key.hash_type()) {
+    case SignatureInfo::RSA:
+      return utils::RsaVerifyString(message, public_key.key(), signature);
+    case SignatureInfo::ED25519:
+      return ED25519verifyString(message, public_key.key(), signature);
+    case SignatureInfo::CMAC_AES:
+      return CmacVerifyString(message, public_key.key(), signature);
+    case SignatureInfo::ECDSA:
+      return utils::ECDSAVerifyString(message, public_key.key(), signature);
+    default:
+      return true;
+  }
+}
+
+}  // namespace resdb
diff --git a/common/crypto/signature_verifier.h b/common/crypto/signature_verifier.h
new file mode 100644
index 00000000..2a8e312c
--- /dev/null
+++ b/common/crypto/signature_verifier.h
@@ -0,0 +1,83 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#pragma once
+
+#include <cryptopp/filters.h>
+#include <cryptopp/xed25519.h>
+
+#include <shared_mutex>
+#include <string>
+
+#include "absl/status/statusor.h"
+#include "common/crypto/signature_verifier_interface.h"
+#include "common/proto/signature_info.pb.h"
+
+namespace resdb {
+
+// SignatureVerifier used to sign signatures using private_key,
+// and verify signatures using the public keys of the senders identified
+// by their node_id.
+class SignatureVerifier : public SignatureVerifierInterface {
+ public:
+  SignatureVerifier(const KeyInfo& private_key,
+                    const CertificateInfo& certificate_info);
+  virtual ~SignatureVerifier() = default;
+
+  // Set the public key that contains the public key, node id,
+  // and its certificate.
+  bool AddPublicKey(const CertificateKey& pub_key, bool need_verify = true);
+
+  // Get the public key of node id. KeyInfo contains the key and its hash type.
+  absl::StatusOr<KeyInfo> GetPublicKey(int64_t node_id) const;
+  // Get all the public keys.
+  std::vector<CertificateKey> GetAllPublicKeys() const;
+  // Get the number of public keys it contains.
+  size_t GetPublicKeysSize() const;
+
+  // Sign messages using the private key.
+  virtual absl::StatusOr<SignatureInfo> SignMessage(const std::string& message);
+  absl::StatusOr<SignatureInfo> SignCertificateKeyInfo(
+      const CertificateKeyInfo& info);
+
+  // Verify messages using the public key from the sender.
+  virtual bool VerifyMessage(const std::string& message,
+                             const SignatureInfo& sign);
+  bool VerifyMessage(const google::protobuf::Message& message,
+                     const SignatureInfo& sign);
+  bool VerifyKey(const CertificateKeyInfo& info, const SignatureInfo& sign);
+
+  static std::string CalculateHash(const std::string& str);
+
+  static bool VerifyMessage(const std::string& message,
+                            const KeyInfo& public_key,
+                            const std::string& signature);
+
+ private:
+  std::map<int64_t, CertificateKey> keys_;
+  // GUARDED_BY(mutex_);  // public keys of nodes, including the public key and
+  // its encrpt type.
+  KeyInfo private_key_;       // public-private keys of self.
+  KeyInfo admin_public_key_;  // public key of admin.
+  int64_t node_id_;           // id of current node.
+  std::unique_ptr<CryptoPP::ed25519::Signer> signer_;
+  mutable std::shared_mutex mutex_;
+};
+
+}  // namespace resdb
diff --git a/common/crypto/signature_verifier_interface.cpp b/common/crypto/signature_verifier_interface.cpp
new file mode 100644
index 00000000..865eccff
--- /dev/null
+++ b/common/crypto/signature_verifier_interface.cpp
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "common/crypto/signature_verifier_interface.h"
+
+namespace resdb {
+
+absl::StatusOr<SignatureInfo> SignatureVerifierInterface::SignMessage(
+    const std::string& message) {
+  return SignatureInfo();
+}
+
+}  // namespace resdb
diff --git a/common/crypto/signature_verifier_interface.h b/common/crypto/signature_verifier_interface.h
new file mode 100644
index 00000000..197387fc
--- /dev/null
+++ b/common/crypto/signature_verifier_interface.h
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#pragma once
+
+#include "absl/status/statusor.h"
+#include "common/proto/signature_info.pb.h"
+
+namespace resdb {
+
+// SignatureVerifier base class, provide an interface for communication.
+class SignatureVerifierInterface {
+ public:
+  SignatureVerifierInterface() = default;
+  virtual ~SignatureVerifierInterface() = default;
+
+  // Sign messages using the private key.
+  virtual absl::StatusOr<SignatureInfo> SignMessage(const std::string& message);
+};
+
+}  // namespace resdb
diff --git a/common/crypto/signature_verifier_test.cpp b/common/crypto/signature_verifier_test.cpp
new file mode 100644
index 00000000..3bdecc8d
--- /dev/null
+++ b/common/crypto/signature_verifier_test.cpp
@@ -0,0 +1,160 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "common/crypto/signature_verifier.h"
+
+#include <glog/logging.h>
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
+
+#include "common/crypto/key_generator.h"
+#include "common/test/test_macros.h"
+
+namespace resdb {
+namespace {
+
+using ::resdb::testing::EqualsProto;
+
+TEST(SignatureVerifyTest, CalculateHash) {
+  std::string expected_str =
+      "\x9F\x86\xD0\x81\x88L}e\x9A/"
+      "\xEA\xA0\xC5Z\xD0\x15\xA3\xBFO\x1B+\v\x82,\xD1]l\x15\xB0\xF0\n\b";
+  EXPECT_EQ(SignatureVerifier::CalculateHash("test"), expected_str);
+}
+
+KeyInfo GetKeyInfo(SecretKey key) {
+  KeyInfo info;
+  info.set_key(key.private_key());
+  info.set_hash_type(key.hash_type());
+  return info;
+}
+
+class SignatureVerifyPTest
+    : public ::testing::TestWithParam<SignatureInfo::HashType> {
+ public:
+  SignatureVerifyPTest() {
+    admin_key_ = KeyGenerator ::GeneratorKeys(SignatureInfo::RSA);
+    admin_verifier_ = std::make_unique<SignatureVerifier>(
+        GetKeyInfo(admin_key_), GetCertInfo(0));
+  }
+
+  CertificateInfo GetCertInfo(int64_t node_id) {
+    CertificateInfo cert_info;
+    cert_info.set_node_id(node_id);
+
+    cert_info.mutable_admin_public_key()->set_key(admin_key_.public_key());
+    cert_info.mutable_admin_public_key()->set_hash_type(admin_key_.hash_type());
+
+    return cert_info;
+  }
+
+  CertificateKey GetPublicKeyInfo(SecretKey key, int64_t node_id) {
+    CertificateKey cert_key;
+    cert_key.mutable_public_key_info()->mutable_key()->set_key(
+        key.public_key());
+    cert_key.mutable_public_key_info()->mutable_key()->set_hash_type(
+        key.hash_type());
+    cert_key.mutable_public_key_info()->set_node_id(node_id);
+
+    auto resp_info =
+        admin_verifier_->SignCertificateKeyInfo(cert_key.public_key_info());
+    assert(resp_info.ok());
+    *cert_key.mutable_certificate() = *resp_info;
+    return cert_key;
+  }
+
+ private:
+  SecretKey admin_key_;
+  std::unique_ptr<SignatureVerifier> admin_verifier_;
+};
+
+TEST_P(SignatureVerifyPTest, SignAndVerify) {
+  SignatureInfo::HashType type = GetParam();
+  absl::StatusOr<SignatureInfo> s_info;
+  std::string message = "test_message";
+  SecretKey my_key = KeyGenerator ::GeneratorKeys(type);
+  int64_t my_node_id = 1, your_node_id = 2;
+  {
+    SignatureVerifier verifier(GetKeyInfo(my_key), GetCertInfo(my_node_id));
+    s_info = verifier.SignMessage(message);
+    EXPECT_TRUE(s_info.ok());
+    EXPECT_EQ(s_info->node_id(), my_node_id);
+  }
+  {
+    SecretKey your_key = KeyGenerator ::GeneratorKeys(type);
+    SignatureVerifier verifier(GetKeyInfo(your_key), GetCertInfo(your_node_id));
+    verifier.AddPublicKey(GetPublicKeyInfo(my_key, my_node_id));
+    EXPECT_TRUE(verifier.VerifyMessage(message, *s_info));
+  }
+}
+
+TEST_P(SignatureVerifyPTest, KeyNotFound) {
+  SignatureInfo::HashType type = GetParam();
+
+  absl::StatusOr<SignatureInfo> s_info;
+  std::string message = "test_message";
+  SecretKey my_key = KeyGenerator ::GeneratorKeys(type);
+  int64_t my_node_id = 1, your_node_id = 2;
+
+  {
+    SignatureVerifier verifier(GetKeyInfo(my_key), GetCertInfo(my_node_id));
+    s_info = verifier.SignMessage(message);
+    EXPECT_TRUE(s_info.ok());
+    EXPECT_EQ(s_info->node_id(), my_node_id);
+  }
+
+  {
+    SecretKey your_key = KeyGenerator ::GeneratorKeys(type);
+    SignatureVerifier verifier(GetKeyInfo(your_key), GetCertInfo(your_node_id));
+    EXPECT_FALSE(verifier.VerifyMessage(message, *s_info));
+  }
+}
+
+TEST_P(SignatureVerifyPTest, KeyNotMatch) {
+  SignatureInfo::HashType type = GetParam();
+
+  absl::StatusOr<SignatureInfo> s_info;
+  std::string message = "test_message";
+  SecretKey my_key = KeyGenerator ::GeneratorKeys(type);
+  SecretKey your_key = KeyGenerator ::GeneratorKeys(type);
+  int64_t my_node_id = 1, your_node_id = 2;
+
+  {
+    SignatureVerifier verifier(GetKeyInfo(my_key), GetCertInfo(my_node_id));
+    s_info = verifier.SignMessage(message);
+    EXPECT_TRUE(s_info.ok());
+    EXPECT_EQ(s_info->node_id(), my_node_id);
+  }
+
+  {
+    SignatureVerifier verifier(GetKeyInfo(your_key), GetCertInfo(your_node_id));
+    verifier.AddPublicKey(GetPublicKeyInfo(your_key, my_node_id));
+    EXPECT_FALSE(verifier.VerifyMessage(message, *s_info));
+  }
+}
+
+INSTANTIATE_TEST_SUITE_P(SignatureVerifyPTest, SignatureVerifyPTest,
+                         ::testing::Values(SignatureInfo::RSA,
+                                           SignatureInfo::ED25519,
+                                           SignatureInfo::CMAC_AES,
+                                           SignatureInfo::ECDSA));
+
+}  // namespace
+
+}  // namespace resdb
diff --git a/common/lru/BUILD b/common/lru/BUILD
new file mode 100644
index 00000000..250af522
--- /dev/null
+++ b/common/lru/BUILD
@@ -0,0 +1,36 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+cc_library(
+    name = "lru_cache",
+    srcs = ["lru_cache.cpp"],
+    hdrs = ["lru_cache.h"],
+)
+
+cc_test(
+    name = "lru_cache_test",
+    size = "small",  # Set the size to "small"
+    timeout = "short",  # Set the timeout to "short"
+    srcs = ["lru_cache_test.cpp"],
+    deps = [
+        "//common/lru:lru_cache",
+        "//common/test:test_main",
+    ],
+)
diff --git a/common/lru/lru_cache.cpp b/common/lru/lru_cache.cpp
new file mode 100644
index 00000000..75033d46
--- /dev/null
+++ b/common/lru/lru_cache.cpp
@@ -0,0 +1,122 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "lru_cache.h"
+
+#include "string"
+
+namespace resdb {
+
+template <typename KeyType, typename ValueType>
+LRUCache<KeyType, ValueType>::LRUCache(int capacity) {
+  capacity_ = capacity;
+  cache_hits_ = 0;
+  cache_misses_ = 0;
+}
+
+template <typename KeyType, typename ValueType>
+LRUCache<KeyType, ValueType>::~LRUCache() {
+  lookup_.clear();
+  key_list_.clear();
+  rlookup_.clear();
+}
+
+template <typename KeyType, typename ValueType>
+ValueType LRUCache<KeyType, ValueType>::Get(KeyType key) {
+  if (lookup_.find(key) == lookup_.end()) {
+    cache_misses_++;
+    return ValueType();
+  }
+
+  // Move accessed key to front of key list. This marks the key as used
+  key_list_.splice(key_list_.begin(), key_list_, rlookup_[key]);
+
+  cache_hits_++;
+  return lookup_[key];
+}
+
+template <typename KeyType, typename ValueType>
+void LRUCache<KeyType, ValueType>::Put(KeyType key, ValueType value) {
+  if (lookup_.find(key) == lookup_.end()) {
+    if (key_list_.size() == capacity_) {
+      KeyType lru_key = key_list_.back();
+      key_list_.pop_back();
+      lookup_.erase(lru_key);
+      rlookup_.erase(lru_key);
+    }
+    key_list_.push_front(key);
+    rlookup_[key] = key_list_.begin();
+  } else {
+    key_list_.splice(key_list_.begin(), key_list_, rlookup_[key]);
+  }
+  lookup_[key] = value;  // Set the lookup_ here
+}
+
+template <typename KeyType, typename ValueType>
+void LRUCache<KeyType, ValueType>::SetCapacity(int new_capacity) {
+  if (new_capacity < capacity_) {
+    while (key_list_.size() > new_capacity) {
+      KeyType lru_key = key_list_.back();
+      key_list_.pop_back();
+      lookup_.erase(lru_key);
+      rlookup_.erase(lru_key);
+    }
+  }
+  capacity_ = new_capacity;
+}
+
+template <typename KeyType, typename ValueType>
+int LRUCache<KeyType, ValueType>::GetCapacity() {
+  return capacity_;
+}
+
+template <typename KeyType, typename ValueType>
+void LRUCache<KeyType, ValueType>::Flush() {
+  lookup_.clear();
+  key_list_.clear();
+  rlookup_.clear();
+  cache_hits_ = 0;
+  cache_misses_ = 0;
+}
+
+template <typename KeyType, typename ValueType>
+int LRUCache<KeyType, ValueType>::GetCacheHits() const {
+  return cache_hits_;
+}
+
+template <typename KeyType, typename ValueType>
+int LRUCache<KeyType, ValueType>::GetCacheMisses() const {
+  return cache_misses_;
+}
+
+template <typename KeyType, typename ValueType>
+double LRUCache<KeyType, ValueType>::GetCacheHitRatio() const {
+  int total_accesses = cache_hits_ + cache_misses_;
+  if (total_accesses == 0) {
+    return 0.0;
+  }
+  return static_cast<double>(cache_hits_) / total_accesses;
+}
+
+template class LRUCache<int, int>;
+template class LRUCache<std::string, int>;
+template class LRUCache<int, std::string>;
+template class LRUCache<std::string, std::string>;
+
+}  // namespace resdb
\ No newline at end of file
diff --git a/common/lru/lru_cache.h b/common/lru/lru_cache.h
new file mode 100644
index 00000000..aa4a17dc
--- /dev/null
+++ b/common/lru/lru_cache.h
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <list>
+#include <unordered_map>
+
+namespace resdb {
+
+template <typename KeyType, typename ValueType>
+class LRUCache {
+ public:
+  LRUCache(int capacity);
+  ~LRUCache();
+
+  ValueType Get(KeyType key);
+  void Put(KeyType key, ValueType value);
+  int GetCapacity();
+  void SetCapacity(int new_capacity);
+  void Flush();
+  int GetCacheHits() const;
+  int GetCacheMisses() const;
+  double GetCacheHitRatio() const;
+
+ private:
+  int capacity_;
+  int cache_hits_;
+  int cache_misses_;
+  std::list<KeyType> key_list_;  // Doubly linked list to store keys
+  std::unordered_map<KeyType, ValueType>
+      lookup_;  // Hash map for key-value pairs
+  std::unordered_map<KeyType, typename std::list<KeyType>::iterator>
+      rlookup_;  // Hash map for key-iterator pairs
+};
+
+}  // namespace resdb
diff --git a/common/lru/lru_cache_test.cpp b/common/lru/lru_cache_test.cpp
new file mode 100644
index 00000000..aad569f0
--- /dev/null
+++ b/common/lru/lru_cache_test.cpp
@@ -0,0 +1,94 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "common/lru/lru_cache.h"
+
+#include <gtest/gtest.h>
+
+namespace resdb {
+namespace {
+
+class LRUCacheTest : public ::testing::Test {
+ protected:
+  LRUCache<int, int> cache_{3};
+};
+
+TEST_F(LRUCacheTest, TestPutAndGet) {
+  cache_.Put(1, 100);
+  EXPECT_EQ(cache_.Get(1), 100);
+  EXPECT_EQ(cache_.GetCacheHits(), 1);
+  EXPECT_EQ(cache_.GetCacheMisses(), 0);
+}
+
+TEST_F(LRUCacheTest, TestUpdateValue) {
+  cache_.Put(1, 100);
+  cache_.Put(1, 200);
+  EXPECT_EQ(cache_.Get(1), 200);
+  EXPECT_EQ(cache_.GetCacheHits(), 1);
+  EXPECT_EQ(cache_.GetCacheMisses(), 0);
+}
+
+TEST_F(LRUCacheTest, TestEviction) {
+  cache_.Put(1, 100);
+  cache_.Put(2, 200);
+  cache_.Put(3, 300);
+  cache_.Put(4, 400);  // This should evict key 1
+
+  EXPECT_EQ(cache_.Get(1), 0);  // Key 1 should be evicted
+  EXPECT_EQ(cache_.Get(2), 200);
+  EXPECT_EQ(cache_.Get(3), 300);
+  EXPECT_EQ(cache_.Get(4), 400);
+
+  EXPECT_EQ(cache_.GetCacheHits(), 3);
+  EXPECT_EQ(cache_.GetCacheMisses(), 1);
+}
+
+TEST_F(LRUCacheTest, TestUsageOrder) {
+  cache_.Put(1, 100);
+  cache_.Put(2, 200);
+  cache_.Put(3, 300);
+
+  // Access key 1 to update its usage order
+  EXPECT_EQ(cache_.Get(1), 100);
+
+  // Add a new key, which should evict key 2 (least recently used)
+  cache_.Put(4, 400);
+
+  EXPECT_EQ(cache_.Get(1), 100);
+  EXPECT_EQ(cache_.Get(2), 0);  // Key 2 should be evicted
+  EXPECT_EQ(cache_.Get(3), 300);
+  EXPECT_EQ(cache_.Get(4), 400);
+
+  EXPECT_EQ(cache_.GetCacheHits(), 4);
+  EXPECT_EQ(cache_.GetCacheMisses(), 1);
+}
+
+TEST_F(LRUCacheTest, TestFlush) {
+  cache_.Put(1, 100);
+  cache_.Put(2, 200);
+  cache_.Flush();
+
+  EXPECT_EQ(cache_.Get(1), 0);
+  EXPECT_EQ(cache_.Get(2), 0);
+  EXPECT_EQ(cache_.GetCacheHits(), 0);
+  EXPECT_EQ(cache_.GetCacheMisses(), 2);
+}
+
+}  // namespace
+}  // namespace resdb
diff --git a/common/proto/BUILD b/common/proto/BUILD
new file mode 100644
index 00000000..2122cef4
--- /dev/null
+++ b/common/proto/BUILD
@@ -0,0 +1,38 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+load("@rules_cc//cc:defs.bzl", "cc_proto_library")
+load("@rules_proto//proto:defs.bzl", "proto_library")
+load("@rules_proto_grpc//python:defs.bzl", "python_proto_library")
+
+proto_library(
+    name = "signature_info_proto",
+    srcs = ["signature_info.proto"],
+)
+
+cc_proto_library(
+    name = "signature_info_cc_proto",
+    deps = [":signature_info_proto"],
+)
+
+python_proto_library(
+    name = "signature_info_py_proto",
+    protos = [":signature_info_proto"],
+)
diff --git a/common/proto/signature_info.proto b/common/proto/signature_info.proto
new file mode 100644
index 00000000..cc1cfc42
--- /dev/null
+++ b/common/proto/signature_info.proto
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+syntax = "proto3";
+
+package resdb;
+
+message SignatureInfo {
+    enum HashType{
+        NONE = 0;
+        RSA = 1;
+        ED25519 = 2;
+        CMAC_AES = 3;
+        ECDSA = 4;
+    };
+
+    HashType hash_type = 1;
+    int64 node_id = 2;
+    bytes signature = 3;
+};
+
+message SecretKey {
+    bytes public_key = 1;
+    bytes private_key = 2;
+    SignatureInfo.HashType hash_type = 3;
+};
+
+message KeyInfo {
+    bytes key = 1;
+    SignatureInfo.HashType hash_type = 2;
+}
+
+message CertificateKeyInfo {
+    enum Type {
+        REPLICA = 0;
+        CLIENT  = 1;
+    }
+    KeyInfo key = 1;
+    int64 node_id = 2;
+    Type type = 3;
+    string ip = 4;
+    int32 port = 5;
+    // the ip:port the replica uses, if it is a client node, can be ignored.
+}
+
+message CertificateKey {
+   CertificateKeyInfo public_key_info = 1; // the public key of current node.
+   SignatureInfo certificate = 2; // the certificate of `public_key_info`.
+}
+
+// CertificateInfo is published from the adminisotr and will be written to a cert file.
+message CertificateInfo {
+   KeyInfo admin_public_key = 1; // the public key owned by the administor.
+   CertificateKey public_key = 3; // public key info with certificate.
+   int64 node_id = 4;
+};
+  
+// Used to construct SignatureVerifier.
+message SignatureKeyInfo {
+    KeyInfo admin_public_key = 1; // the public key owned by the administor.
+    KeyInfo private_key = 2; // the private key from the user, used to sign messages.
+    int64 node_id = 3;  // the unique id of the replica or client.
+}
+
diff --git a/common/test/BUILD b/common/test/BUILD
new file mode 100644
index 00000000..e6bd3d61
--- /dev/null
+++ b/common/test/BUILD
@@ -0,0 +1,62 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+cc_library(
+    name = "test",
+    hdrs = [
+        "test_macros.h",
+    ],
+    deps = [
+        "//common:comm",
+        "@com_google_googletest//:gtest",
+        "@com_google_protobuf//:protobuf",
+    ],
+)
+
+cc_library(
+    name = "test_main",
+    defines = ["TEST_MODE"],
+    deps = [
+        ":test",
+        "@com_google_googletest//:gtest_main",
+    ],
+)
+
+proto_library(
+    name = "test_proto",
+    srcs = ["test.proto"],
+    visibility = ["//visibility:private"],
+)
+
+cc_proto_library(
+    name = "test_cc_proto",
+    visibility = ["//visibility:private"],
+    deps = [":test_proto"],
+)
+
+cc_test(
+    name = "json_test",
+    srcs = ["json_test.cpp"],
+    deps = [
+        ":test_cc_proto",
+        ":test_main",
+    ],
+)
diff --git a/common/test/json_test.cpp b/common/test/json_test.cpp
new file mode 100644
index 00000000..4fcaeed5
--- /dev/null
+++ b/common/test/json_test.cpp
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <gtest/gtest.h>
+
+#include "common/test/test.pb.h"
+#include "common/test/test_macros.h"
+
+namespace resdb {
+namespace testing {
+namespace {
+
+using ::resdb::testing::EqualsProto;
+
+TEST(SignatureVerifyTest, ParseFromJson) {
+  resdb::test::JsonMessage json_msg;
+
+  json_msg.set_id(1);
+  json_msg.set_data("data");
+  json_msg.mutable_sub_msg()->set_id(2);
+  json_msg.mutable_sub_msg()->set_data("sub_data");
+
+  std::string json =
+      "{ \
+			    \"id\": 1, \
+			    \"data\": \"data\", \
+			    \"sub_msg\":{ \
+				\"id\": 2, \
+			        \"data\":\"sub_data\" \
+			    } \
+	}";
+
+  EXPECT_THAT(ParseFromText<resdb::test::JsonMessage>(json),
+              EqualsProto(json_msg));
+}
+
+}  // namespace
+}  // namespace testing
+}  // namespace resdb
diff --git a/common/test/test.proto b/common/test/test.proto
new file mode 100644
index 00000000..2e8320c0
--- /dev/null
+++ b/common/test/test.proto
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+syntax = "proto3";
+
+package resdb.test;
+
+message JsonSubMessage {
+    int64 id = 1;
+    string  data = 2;
+};
+
+message JsonMessage {
+    int64 id = 1;
+    string data = 2;
+    JsonMessage sub_msg = 3;
+};
+
diff --git a/common/test/test_macros.h b/common/test/test_macros.h
new file mode 100644
index 00000000..5e510f2a
--- /dev/null
+++ b/common/test/test_macros.h
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#pragma once
+#include <glog/logging.h>
+#include <google/protobuf/util/json_util.h>
+#include <google/protobuf/util/message_differencer.h>
+
+#include "gmock/gmock.h"
+
+namespace resdb {
+namespace testing {
+
+MATCHER_P(EqualsProto, replica, "") {
+  return ::google::protobuf::util::MessageDifferencer::Equals(arg, replica);
+}
+
+template <typename T>
+T ParseFromText(const std::string& json_str) {
+  T message;
+  google::protobuf::util::JsonParseOptions options;
+  auto st =
+      google::protobuf::util::JsonStringToMessage(json_str, &message, options);
+  if (!st.ok()) {
+    LOG(ERROR) << st.message();
+  }
+  return message;
+}
+
+}  // namespace testing
+}  // namespace resdb
diff --git a/common/utils/BUILD b/common/utils/BUILD
new file mode 100644
index 00000000..44d5e69b
--- /dev/null
+++ b/common/utils/BUILD
@@ -0,0 +1,25 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+package(default_visibility = ["//visibility:public"])
+
+cc_library(
+    name = "utils",
+    srcs = ["utils.cpp"],
+    hdrs = ["utils.h"],
+)
diff --git a/common/utils/utils.cpp b/common/utils/utils.cpp
new file mode 100644
index 00000000..c5124120
--- /dev/null
+++ b/common/utils/utils.cpp
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include "common/utils/utils.h"
+
+#include <stdlib.h>
+#include <sys/time.h>
+
+namespace resdb {
+
+#define CPU_FREQ 2.2
+#define TIME_ENABLE true
+
+uint64_t GetCurrentTime() {
+  struct timeval tv;
+  gettimeofday(&tv, nullptr);
+  return (uint64_t)(tv.tv_sec) * 1000000 + tv.tv_usec;
+}
+
+}  // namespace resdb
diff --git a/common/utils/utils.h b/common/utils/utils.h
new file mode 100644
index 00000000..2a17286a
--- /dev/null
+++ b/common/utils/utils.h
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#pragma once
+
+#include <stdint.h>
+
+namespace resdb {
+
+uint64_t GetCurrentTime();
+
+}  // namespace resdb
diff --git a/dev/.rat-excludes b/dev/.rat-excludes
new file mode 100644
index 00000000..44cf521d
--- /dev/null
+++ b/dev/.rat-excludes
@@ -0,0 +1,26 @@
+.bazelrc
+.bazelversion
+.clang-format
+.licenserc.yaml
+repositories.bzl
+.gitignore
+.git
+DISCLAIMER-WIP
+CNAME
+WORKSPACE
+build
+.*\.conf
+.*\.config
+.*\.pub
+.*\.pri
+Doxyfile
+header
+.*\.sol
+ecosystem/.*\.rat-excludes
+ecosystem/.*\.gitignore
+ecosystem/.*\.bazelrc
+ecosystem/.*\.gitattributes
+ecosystem/.*\.npmrc
+ecosystem/.*\.prettierrc
+ecosystem/.*\.prettierignore
+ecosystem/.*\.licenserc.yaml
diff --git a/dev/check-license b/dev/check-license
new file mode 100755
index 00000000..e929e68b
--- /dev/null
+++ b/dev/check-license
@@ -0,0 +1,86 @@
+#!/usr/bin/env bash
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+
+acquire_rat_jar () {
+
+  URL="https://repo.maven.apache.org/maven2/org/apache/rat/apache-rat/${RAT_VERSION}/apache-rat-${RAT_VERSION}.jar"
+
+  JAR="$rat_jar"
+
+  # Download rat launch jar if it hasn't been downloaded yet
+  if [ ! -f "$JAR" ]; then
+    # Download
+    printf "Attempting to fetch rat\n"
+    JAR_DL="${JAR}.part"
+    if [ $(command -v curl) ]; then
+      curl -L --silent "${URL}" > "$JAR_DL" && mv "$JAR_DL" "$JAR"
+    elif [ $(command -v wget) ]; then
+      wget --quiet ${URL} -O "$JAR_DL" && mv "$JAR_DL" "$JAR"
+    else
+      printf "You do not have curl or wget installed, please install rat manually.\n"
+      exit -1
+    fi
+  fi
+
+  unzip -tq "$JAR" &> /dev/null
+  if [ $? -ne 0 ]; then 
+    # We failed to download
+    rm "$JAR"
+    printf "Our attempt to download rat locally to ${JAR} failed. Please install rat manually.\n"
+    exit -1
+  fi
+}
+
+# Go to the Spark project root directory
+FWDIR="$(cd "`dirname "$0"`"/..; pwd)"
+cd "$FWDIR"
+
+if test -x "$JAVA_HOME/bin/java"; then
+    declare java_cmd="$JAVA_HOME/bin/java"
+else
+    declare java_cmd=java
+fi
+
+export RAT_VERSION=0.16.1
+export rat_jar="$FWDIR"/lib/apache-rat-${RAT_VERSION}.jar
+mkdir -p "$FWDIR"/lib
+
+[[ -f "$rat_jar" ]] || acquire_rat_jar || {
+    echo "Download failed. Obtain the rat jar manually and place it at $rat_jar"
+    exit 1
+}
+
+mkdir -p build
+$java_cmd -jar "$rat_jar" --scan-hidden-directories -E "$FWDIR"/dev/.rat-excludes -d "$FWDIR" > build/rat-results.txt
+
+if [ $? -ne 0 ]; then
+   echo "RAT exited abnormally"
+   exit 1
+fi
+
+ERRORS="$(cat build/rat-results.txt | grep -e "??")"
+
+if test ! -z "$ERRORS"; then 
+    echo "Could not find Apache license headers in the following files:"
+    echo "$ERRORS"
+    exit 1
+else 
+    echo -e "RAT checks passed."
+fi
diff --git a/documents/doxygen/.gitignore b/documents/doxygen/.gitignore
new file mode 100644
index 00000000..67897178
--- /dev/null
+++ b/documents/doxygen/.gitignore
@@ -0,0 +1,2 @@
+html/
+latex/
diff --git a/documents/doxygen/Doxyfile b/documents/doxygen/Doxyfile
new file mode 100644
index 00000000..efc895d6
--- /dev/null
+++ b/documents/doxygen/Doxyfile
@@ -0,0 +1,2799 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# 
+
+# Doxyfile 1.9.6
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project.
+#
+# All text after a double hash (##) is considered a comment and is placed in
+# front of the TAG it is preceding.
+#
+# All text after a single hash (#) is considered a comment and will be ignored.
+# The format is:
+# TAG = value [value, ...]
+# For lists, items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (\" \").
+#
+# Note:
+#
+# Use doxygen to compare the used configuration file with the template
+# configuration file:
+# doxygen -x [configFile]
+# Use doxygen to compare the used configuration file with the template
+# configuration file without replacing the environment variables or CMake type
+# replacement variables:
+# doxygen -x_noenv [configFile]
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the configuration
+# file that follow. The default is UTF-8 which is also the encoding used for all
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the
+# iconv built into libc) for the transcoding. See
+# https://www.gnu.org/software/libiconv/ for the list of possible encodings.
+# The default value is: UTF-8.
+
+DOXYFILE_ENCODING      = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
+# double-quotes, unless you are using Doxywizard) that should identify the
+# project for which the documentation is generated. This name is used in the
+# title of most generated pages and in a few other places.
+# The default value is: My Project.
+
+PROJECT_NAME           = ResilientDB 
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
+# could be handy for archiving the generated documentation or if some version
+# control system is used.
+
+PROJECT_NUMBER         = v1.3.1
+
+# Using the PROJECT_BRIEF tag one can provide an optional one line description
+# for a project that appears at the top of each page and should give viewer a
+# quick idea about the purpose of the project. Keep the description short.
+
+PROJECT_BRIEF          = ResilientDB 
+
+# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
+# in the documentation. The maximum height of the logo should not exceed 55
+# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
+# the logo to the output directory.
+
+PROJECT_LOGO           = logo.png
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
+# into which the generated documentation will be written. If a relative path is
+# entered, it will be relative to the location where doxygen was started. If
+# left blank the current directory will be used.
+
+OUTPUT_DIRECTORY       = 
+
+# If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096
+# sub-directories (in 2 levels) under the output directory of each output format
+# and will distribute the generated files over these directories. Enabling this
+# option can be useful when feeding doxygen a huge amount of source files, where
+# putting all generated files in the same directory would otherwise causes
+# performance problems for the file system. Adapt CREATE_SUBDIRS_LEVEL to
+# control the number of sub-directories.
+# The default value is: NO.
+
+CREATE_SUBDIRS         = YES
+
+# Controls the number of sub-directories that will be created when
+# CREATE_SUBDIRS tag is set to YES. Level 0 represents 16 directories, and every
+# level increment doubles the number of directories, resulting in 4096
+# directories at level 8 which is the default and also the maximum value. The
+# sub-directories are organized in 2 levels, the first level always has a fixed
+# number of 16 directories.
+# Minimum value: 0, maximum value: 8, default value: 8.
+# This tag requires that the tag CREATE_SUBDIRS is set to YES.
+
+CREATE_SUBDIRS_LEVEL   = 8
+
+# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII
+# characters to appear in the names of generated files. If set to NO, non-ASCII
+# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode
+# U+3044.
+# The default value is: NO.
+
+ALLOW_UNICODE_NAMES    = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Bulgarian,
+# Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, Dutch, English
+# (United States), Esperanto, Farsi (Persian), Finnish, French, German, Greek,
+# Hindi, Hungarian, Indonesian, Italian, Japanese, Japanese-en (Japanese with
+# English messages), Korean, Korean-en (Korean with English messages), Latvian,
+# Lithuanian, Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese,
+# Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish,
+# Swedish, Turkish, Ukrainian and Vietnamese.
+# The default value is: English.
+
+OUTPUT_LANGUAGE        = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member
+# descriptions after the members that are listed in the file and class
+# documentation (similar to Javadoc). Set to NO to disable this.
+# The default value is: YES.
+
+BRIEF_MEMBER_DESC      = YES
+
+# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief
+# description of a member or function before the detailed description
+#
+# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+# The default value is: YES.
+
+REPEAT_BRIEF           = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator that is
+# used to form the text in various listings. Each string in this list, if found
+# as the leading text of the brief description, will be stripped from the text
+# and the result, after processing the whole list, is used as the annotated
+# text. Otherwise, the brief description is used as-is. If left blank, the
+# following values are used ($name is automatically replaced with the name of
+# the entity):The $name class, The $name widget, The $name file, is, provides,
+# specifies, contains, represents, a, an and the.
+
+ABBREVIATE_BRIEF       = "The $name class" \
+                         "The $name widget" \
+                         "The $name file" \
+                         is \
+                         provides \
+                         specifies \
+                         contains \
+                         represents \
+                         a \
+                         an \
+                         the
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# doxygen will generate a detailed section even if there is only a brief
+# description.
+# The default value is: NO.
+
+ALWAYS_DETAILED_SEC    = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
+# operators of the base classes will not be shown.
+# The default value is: NO.
+
+INLINE_INHERITED_MEMB  = NO
+
+# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path
+# before files name in the file list and in the header files. If set to NO the
+# shortest path that makes the file name unique will be used
+# The default value is: YES.
+
+FULL_PATH_NAMES        = YES
+
+# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
+# Stripping is only done if one of the specified strings matches the left-hand
+# part of the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the path to
+# strip.
+#
+# Note that you can specify absolute paths here, but also relative paths, which
+# will be relative from the directory where doxygen is started.
+# This tag requires that the tag FULL_PATH_NAMES is set to YES.
+
+STRIP_FROM_PATH        =
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
+# path mentioned in the documentation of a class, which tells the reader which
+# header file to include in order to use a class. If left blank only the name of
+# the header file containing the class definition is used. Otherwise one should
+# specify the list of include paths that are normally passed to the compiler
+# using the -I flag.
+
+STRIP_FROM_INC_PATH    =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
+# less readable) file names. This can be useful is your file systems doesn't
+# support long names like on DOS, Mac, or CD-ROM.
+# The default value is: NO.
+
+SHORT_NAMES            = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
+# first line (until the first dot) of a Javadoc-style comment as the brief
+# description. If set to NO, the Javadoc-style will behave just like regular Qt-
+# style comments (thus requiring an explicit @brief command for a brief
+# description.)
+# The default value is: NO.
+
+JAVADOC_AUTOBRIEF      = YES
+
+# If the JAVADOC_BANNER tag is set to YES then doxygen will interpret a line
+# such as
+# /***************
+# as being the beginning of a Javadoc-style comment "banner". If set to NO, the
+# Javadoc-style will behave just like regular comments and it will not be
+# interpreted by doxygen.
+# The default value is: NO.
+
+JAVADOC_BANNER         = NO
+
+# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
+# line (until the first dot) of a Qt-style comment as the brief description. If
+# set to NO, the Qt-style will behave just like regular Qt-style comments (thus
+# requiring an explicit \brief command for a brief description.)
+# The default value is: NO.
+
+QT_AUTOBRIEF           = NO
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
+# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
+# a brief description. This used to be the default behavior. The new default is
+# to treat a multi-line C++ comment block as a detailed description. Set this
+# tag to YES if you prefer the old behavior instead.
+#
+# Note that setting this tag to YES also means that rational rose comments are
+# not recognized any more.
+# The default value is: NO.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# By default Python docstrings are displayed as preformatted text and doxygen's
+# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the
+# doxygen's special commands can be used and the contents of the docstring
+# documentation blocks is shown as doxygen documentation.
+# The default value is: YES.
+
+PYTHON_DOCSTRING       = YES
+
+# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
+# documentation from any documented member that it re-implements.
+# The default value is: YES.
+
+INHERIT_DOCS           = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new
+# page for each member. If set to NO, the documentation of a member will be part
+# of the file/class/namespace that contains it.
+# The default value is: NO.
+
+SEPARATE_MEMBER_PAGES  = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen
+# uses this value to replace tabs by spaces in code fragments.
+# Minimum value: 1, maximum value: 16, default value: 4.
+
+TAB_SIZE               = 4
+
+# This tag can be used to specify a number of aliases that act as commands in
+# the documentation. An alias has the form:
+# name=value
+# For example adding
+# "sideeffect=@par Side Effects:^^"
+# will allow you to put the command \sideeffect (or @sideeffect) in the
+# documentation, which will result in a user-defined paragraph with heading
+# "Side Effects:". Note that you cannot put \n's in the value part of an alias
+# to insert newlines (in the resulting output). You can put ^^ in the value part
+# of an alias to insert a newline as if a physical newline was in the original
+# file. When you need a literal { or } or , in the value part of an alias you
+# have to escape them by means of a backslash (\), this can lead to conflicts
+# with the commands \{ and \} for these it is advised to use the version @{ and
+# @} or use a double escape (\\{ and \\})
+
+ALIASES                =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
+# only. Doxygen will then generate output that is more tailored for C. For
+# instance, some of the names that are used will be different. The list of all
+# members will be omitted, etc.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_FOR_C  = NO
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or
+# Python sources only. Doxygen will then generate output that is more tailored
+# for that language. For instance, namespaces will be presented as packages,
+# qualified scopes will look different, etc.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_JAVA   = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+# sources. Doxygen will then generate output that is tailored for Fortran.
+# The default value is: NO.
+
+OPTIMIZE_FOR_FORTRAN   = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+# sources. Doxygen will then generate output that is tailored for VHDL.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_VHDL   = NO
+
+# Set the OPTIMIZE_OUTPUT_SLICE tag to YES if your project consists of Slice
+# sources only. Doxygen will then generate output that is more tailored for that
+# language. For instance, namespaces will be presented as modules, types will be
+# separated into more groups, etc.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_SLICE  = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it
+# parses. With this tag you can assign which parser to use for a given
+# extension. Doxygen has a built-in mapping, but you can override or extend it
+# using this tag. The format is ext=language, where ext is a file extension, and
+# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,
+# Csharp (C#), C, C++, Lex, D, PHP, md (Markdown), Objective-C, Python, Slice,
+# VHDL, Fortran (fixed format Fortran: FortranFixed, free formatted Fortran:
+# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser
+# tries to guess whether the code is fixed or free formatted code, this is the
+# default for Fortran type files). For instance to make doxygen treat .inc files
+# as Fortran files (default is PHP), and .f files as C (default is Fortran),
+# use: inc=Fortran f=C.
+#
+# Note: For files without extension you can use no_extension as a placeholder.
+#
+# Note that for custom extensions you also need to set FILE_PATTERNS otherwise
+# the files are not read by doxygen. When specifying no_extension you should add
+# * to the FILE_PATTERNS.
+#
+# Note see also the list of default file extension mappings.
+
+EXTENSION_MAPPING      =
+
+# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
+# according to the Markdown format, which allows for more readable
+# documentation. See https://daringfireball.net/projects/markdown/ for details.
+# The output of markdown processing is further processed by doxygen, so you can
+# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in
+# case of backward compatibilities issues.
+# The default value is: YES.
+
+MARKDOWN_SUPPORT       = YES
+
+# When the TOC_INCLUDE_HEADINGS tag is set to a non-zero value, all headings up
+# to that level are automatically included in the table of contents, even if
+# they do not have an id attribute.
+# Note: This feature currently applies only to Markdown headings.
+# Minimum value: 0, maximum value: 99, default value: 5.
+# This tag requires that the tag MARKDOWN_SUPPORT is set to YES.
+
+TOC_INCLUDE_HEADINGS   = 5
+
+# When enabled doxygen tries to link words that correspond to documented
+# classes, or namespaces to their corresponding documentation. Such a link can
+# be prevented in individual cases by putting a % sign in front of the word or
+# globally by setting AUTOLINK_SUPPORT to NO.
+# The default value is: YES.
+
+AUTOLINK_SUPPORT       = YES
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+# to include (a tag file for) the STL sources as input, then you should set this
+# tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string);
+# versus func(std::string) {}). This also make the inheritance and collaboration
+# diagrams that involve STL classes more complete and accurate.
+# The default value is: NO.
+
+BUILTIN_STL_SUPPORT    = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to
+# enable parsing support.
+# The default value is: NO.
+
+CPP_CLI_SUPPORT        = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:
+# https://www.riverbankcomputing.com/software/sip/intro) sources only. Doxygen
+# will parse them like normal C++ but will assume all classes use public instead
+# of private inheritance when no explicit protection keyword is present.
+# The default value is: NO.
+
+SIP_SUPPORT            = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate
+# getter and setter methods for a property. Setting this option to YES will make
+# doxygen to replace the get and set methods by a property in the documentation.
+# This will only work if the methods are indeed getting or setting a simple
+# type. If this is not the case, or you want to show the methods anyway, you
+# should set this option to NO.
+# The default value is: YES.
+
+IDL_PROPERTY_SUPPORT   = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+# The default value is: NO.
+
+DISTRIBUTE_GROUP_DOC   = NO
+
+# If one adds a struct or class to a group and this option is enabled, then also
+# any nested class or struct is added to the same group. By default this option
+# is disabled and one has to add nested compounds explicitly via \ingroup.
+# The default value is: NO.
+
+GROUP_NESTED_COMPOUNDS = NO
+
+# Set the SUBGROUPING tag to YES to allow class member groups of the same type
+# (for instance a group of public functions) to be put as a subgroup of that
+# type (e.g. under the Public Functions section). Set it to NO to prevent
+# subgrouping. Alternatively, this can be done per class using the
+# \nosubgrouping command.
+# The default value is: YES.
+
+SUBGROUPING            = YES
+
+# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions
+# are shown inside the group in which they are included (e.g. using \ingroup)
+# instead of on a separate page (for HTML and Man pages) or section (for LaTeX
+# and RTF).
+#
+# Note that this feature does not work in combination with
+# SEPARATE_MEMBER_PAGES.
+# The default value is: NO.
+
+INLINE_GROUPED_CLASSES = NO
+
+# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions
+# with only public data fields or simple typedef fields will be shown inline in
+# the documentation of the scope in which they are defined (i.e. file,
+# namespace, or group documentation), provided this scope is documented. If set
+# to NO, structs, classes, and unions are shown on a separate page (for HTML and
+# Man pages) or section (for LaTeX and RTF).
+# The default value is: NO.
+
+INLINE_SIMPLE_STRUCTS  = NO
+
+# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or
+# enum is documented as struct, union, or enum with the name of the typedef. So
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+# with name TypeT. When disabled the typedef will appear as a member of a file,
+# namespace, or class. And the struct will be named TypeS. This can typically be
+# useful for C code in case the coding convention dictates that all compound
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+# The default value is: NO.
+
+TYPEDEF_HIDES_STRUCT   = NO
+
+# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
+# cache is used to resolve symbols given their name and scope. Since this can be
+# an expensive process and often the same symbol appears multiple times in the
+# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small
+# doxygen will become slower. If the cache is too large, memory is wasted. The
+# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range
+# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536
+# symbols. At the end of a run doxygen will report the cache usage and suggest
+# the optimal cache size from a speed point of view.
+# Minimum value: 0, maximum value: 9, default value: 0.
+
+LOOKUP_CACHE_SIZE      = 0
+
+# The NUM_PROC_THREADS specifies the number of threads doxygen is allowed to use
+# during processing. When set to 0 doxygen will based this on the number of
+# cores available in the system. You can set it explicitly to a value larger
+# than 0 to get more control over the balance between CPU load and processing
+# speed. At this moment only the input processing can be done using multiple
+# threads. Since this is still an experimental feature the default is set to 1,
+# which effectively disables parallel processing. Please report any issues you
+# encounter. Generating dot graphs in parallel is controlled by the
+# DOT_NUM_THREADS setting.
+# Minimum value: 0, maximum value: 32, default value: 1.
+
+NUM_PROC_THREADS       = 1
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in
+# documentation are documented, even if no documentation was available. Private
+# class members and static file members will be hidden unless the
+# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.
+# Note: This will also disable the warnings about undocumented members that are
+# normally produced when WARNINGS is set to YES.
+# The default value is: NO.
+
+EXTRACT_ALL            = YES
+
+# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will
+# be included in the documentation.
+# The default value is: NO.
+
+EXTRACT_PRIVATE        = NO
+
+# If the EXTRACT_PRIV_VIRTUAL tag is set to YES, documented private virtual
+# methods of a class will be included in the documentation.
+# The default value is: NO.
+
+EXTRACT_PRIV_VIRTUAL   = NO
+
+# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal
+# scope will be included in the documentation.
+# The default value is: NO.
+
+EXTRACT_PACKAGE        = NO
+
+# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be
+# included in the documentation.
+# The default value is: NO.
+
+EXTRACT_STATIC         = NO
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined
+# locally in source files will be included in the documentation. If set to NO,
+# only classes defined in header files are included. Does not have any effect
+# for Java sources.
+# The default value is: YES.
+
+EXTRACT_LOCAL_CLASSES  = YES
+
+# This flag is only useful for Objective-C code. If set to YES, local methods,
+# which are defined in the implementation section but not in the interface are
+# included in the documentation. If set to NO, only methods in the interface are
+# included.
+# The default value is: NO.
+
+EXTRACT_LOCAL_METHODS  = NO
+
+# If this flag is set to YES, the members of anonymous namespaces will be
+# extracted and appear in the documentation as a namespace called
+# 'anonymous_namespace{file}', where file will be replaced with the base name of
+# the file that contains the anonymous namespace. By default anonymous namespace
+# are hidden.
+# The default value is: NO.
+
+EXTRACT_ANON_NSPACES   = NO
+
+# If this flag is set to YES, the name of an unnamed parameter in a declaration
+# will be determined by the corresponding definition. By default unnamed
+# parameters remain unnamed in the output.
+# The default value is: YES.
+
+RESOLVE_UNNAMED_PARAMS = YES
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all
+# undocumented members inside documented classes or files. If set to NO these
+# members will be included in the various overviews, but no documentation
+# section is generated. This option has no effect if EXTRACT_ALL is enabled.
+# The default value is: NO.
+
+HIDE_UNDOC_MEMBERS     = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy. If set
+# to NO, these classes will be included in the various overviews. This option
+# will also hide undocumented C++ concepts if enabled. This option has no effect
+# if EXTRACT_ALL is enabled.
+# The default value is: NO.
+
+HIDE_UNDOC_CLASSES     = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
+# declarations. If set to NO, these declarations will be included in the
+# documentation.
+# The default value is: NO.
+
+HIDE_FRIEND_COMPOUNDS  = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
+# documentation blocks found inside the body of a function. If set to NO, these
+# blocks will be appended to the function's detailed documentation block.
+# The default value is: NO.
+
+HIDE_IN_BODY_DOCS      = NO
+
+# The INTERNAL_DOCS tag determines if documentation that is typed after a
+# \internal command is included. If the tag is set to NO then the documentation
+# will be excluded. Set it to YES to include the internal documentation.
+# The default value is: NO.
+
+INTERNAL_DOCS          = NO
+
+# With the correct setting of option CASE_SENSE_NAMES doxygen will better be
+# able to match the capabilities of the underlying filesystem. In case the
+# filesystem is case sensitive (i.e. it supports files in the same directory
+# whose names only differ in casing), the option must be set to YES to properly
+# deal with such files in case they appear in the input. For filesystems that
+# are not case sensitive the option should be set to NO to properly deal with
+# output files written for symbols that only differ in casing, such as for two
+# classes, one named CLASS and the other named Class, and to also support
+# references to files without having to specify the exact matching casing. On
+# Windows (including Cygwin) and MacOS, users should typically set this option
+# to NO, whereas on Linux or other Unix flavors it should typically be set to
+# YES.
+# Possible values are: SYSTEM, NO and YES.
+# The default value is: SYSTEM.
+
+CASE_SENSE_NAMES       = SYSTEM
+
+# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with
+# their full class and namespace scopes in the documentation. If set to YES, the
+# scope will be hidden.
+# The default value is: NO.
+
+HIDE_SCOPE_NAMES       = NO
+
+# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will
+# append additional text to a page's title, such as Class Reference. If set to
+# YES the compound reference will be hidden.
+# The default value is: NO.
+
+HIDE_COMPOUND_REFERENCE= NO
+
+# If the SHOW_HEADERFILE tag is set to YES then the documentation for a class
+# will show which file needs to be included to use the class.
+# The default value is: YES.
+
+SHOW_HEADERFILE        = YES
+
+# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of
+# the files that are included by a file in the documentation of that file.
+# The default value is: YES.
+
+SHOW_INCLUDE_FILES     = YES
+
+# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
+# grouped member an include statement to the documentation, telling the reader
+# which file to include in order to use the member.
+# The default value is: NO.
+
+SHOW_GROUPED_MEMB_INC  = NO
+
+# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
+# files with double quotes in the documentation rather than with sharp brackets.
+# The default value is: NO.
+
+FORCE_LOCAL_INCLUDES   = NO
+
+# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the
+# documentation for inline members.
+# The default value is: YES.
+
+INLINE_INFO            = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the
+# (detailed) documentation of file and class members alphabetically by member
+# name. If set to NO, the members will appear in declaration order.
+# The default value is: YES.
+
+SORT_MEMBER_DOCS       = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
+# descriptions of file, namespace and class members alphabetically by member
+# name. If set to NO, the members will appear in declaration order. Note that
+# this will also influence the order of the classes in the class list.
+# The default value is: NO.
+
+SORT_BRIEF_DOCS        = NO
+
+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the
+# (brief and detailed) documentation of class members so that constructors and
+# destructors are listed first. If set to NO the constructors will appear in the
+# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.
+# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief
+# member documentation.
+# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting
+# detailed member documentation.
+# The default value is: NO.
+
+SORT_MEMBERS_CTORS_1ST = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy
+# of group names into alphabetical order. If set to NO the group names will
+# appear in their defined order.
+# The default value is: NO.
+
+SORT_GROUP_NAMES       = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by
+# fully-qualified names, including namespaces. If set to NO, the class list will
+# be sorted only by class name, not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the alphabetical
+# list.
+# The default value is: NO.
+
+SORT_BY_SCOPE_NAME     = NO
+
+# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper
+# type resolution of all parameters of a function it will reject a match between
+# the prototype and the implementation of a member function even if there is
+# only one candidate or it is obvious which candidate to choose by doing a
+# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still
+# accept a match between prototype and implementation in such cases.
+# The default value is: NO.
+
+STRICT_PROTO_MATCHING  = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo
+# list. This list is created by putting \todo commands in the documentation.
+# The default value is: YES.
+
+GENERATE_TODOLIST      = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test
+# list. This list is created by putting \test commands in the documentation.
+# The default value is: YES.
+
+GENERATE_TESTLIST      = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug
+# list. This list is created by putting \bug commands in the documentation.
+# The default value is: YES.
+
+GENERATE_BUGLIST       = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO)
+# the deprecated list. This list is created by putting \deprecated commands in
+# the documentation.
+# The default value is: YES.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional documentation
+# sections, marked by \if <section_label> ... \endif and \cond <section_label>
+# ... \endcond blocks.
+
+ENABLED_SECTIONS       =
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the
+# initial value of a variable or macro / define can have for it to appear in the
+# documentation. If the initializer consists of more lines than specified here
+# it will be hidden. Use a value of 0 to hide initializers completely. The
+# appearance of the value of individual variables and macros / defines can be
+# controlled using \showinitializer or \hideinitializer command in the
+# documentation regardless of this setting.
+# Minimum value: 0, maximum value: 10000, default value: 30.
+
+MAX_INITIALIZER_LINES  = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at
+# the bottom of the documentation of classes and structs. If set to YES, the
+# list will mention the files that were used to generate the documentation.
+# The default value is: YES.
+
+SHOW_USED_FILES        = NO
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This
+# will remove the Files entry from the Quick Index and from the Folder Tree View
+# (if specified).
+# The default value is: YES.
+
+SHOW_FILES             = YES
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces
+# page. This will remove the Namespaces entry from the Quick Index and from the
+# Folder Tree View (if specified).
+# The default value is: YES.
+
+SHOW_NAMESPACES        = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from
+# the version control system). Doxygen will invoke the program by executing (via
+# popen()) the command command input-file, where command is the value of the
+# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
+# by doxygen. Whatever the program writes to standard output is used as the file
+# version. For an example see the documentation.
+
+FILE_VERSION_FILTER    =
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
+# by doxygen. The layout file controls the global structure of the generated
+# output files in an output format independent way. To create the layout file
+# that represents doxygen's defaults, run doxygen with the -l option. You can
+# optionally specify a file name after the option, if omitted DoxygenLayout.xml
+# will be used as the name of the layout file. See also section "Changing the
+# layout of pages" for information.
+#
+# Note that if you run doxygen from a directory containing a file called
+# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
+# tag is left empty.
+
+LAYOUT_FILE            = DoxygenLayout.xml
+
+# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
+# the reference definitions. This must be a list of .bib files. The .bib
+# extension is automatically appended if omitted. This requires the bibtex tool
+# to be installed. See also https://en.wikipedia.org/wiki/BibTeX for more info.
+# For LaTeX the style of the bibliography can be controlled using
+# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the
+# search path. See also \cite for info how to create references.
+
+CITE_BIB_FILES         =
+
+#---------------------------------------------------------------------------
+# Configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated to
+# standard output by doxygen. If QUIET is set to YES this implies that the
+# messages are off.
+# The default value is: NO.
+
+QUIET                  = NO
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES
+# this implies that the warnings are on.
+#
+# Tip: Turn warnings on while writing the documentation.
+# The default value is: YES.
+
+WARNINGS               = YES
+
+# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate
+# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag
+# will automatically be disabled.
+# The default value is: YES.
+
+WARN_IF_UNDOCUMENTED   = YES
+
+# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as documenting some parameters in
+# a documented function twice, or documenting parameters that don't exist or
+# using markup commands wrongly.
+# The default value is: YES.
+
+WARN_IF_DOC_ERROR      = YES
+
+# If WARN_IF_INCOMPLETE_DOC is set to YES, doxygen will warn about incomplete
+# function parameter documentation. If set to NO, doxygen will accept that some
+# parameters have no documentation without warning.
+# The default value is: YES.
+
+WARN_IF_INCOMPLETE_DOC = YES
+
+# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that
+# are documented, but have no documentation for their parameters or return
+# value. If set to NO, doxygen will only warn about wrong parameter
+# documentation, but not about the absence of documentation. If EXTRACT_ALL is
+# set to YES then this flag will automatically be disabled. See also
+# WARN_IF_INCOMPLETE_DOC
+# The default value is: NO.
+
+WARN_NO_PARAMDOC       = NO
+
+# If WARN_IF_UNDOC_ENUM_VAL option is set to YES, doxygen will warn about
+# undocumented enumeration values. If set to NO, doxygen will accept
+# undocumented enumeration values. If EXTRACT_ALL is set to YES then this flag
+# will automatically be disabled.
+# The default value is: NO.
+
+WARN_IF_UNDOC_ENUM_VAL = NO
+
+# If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when
+# a warning is encountered. If the WARN_AS_ERROR tag is set to FAIL_ON_WARNINGS
+# then doxygen will continue running as if WARN_AS_ERROR tag is set to NO, but
+# at the end of the doxygen process doxygen will return with a non-zero status.
+# Possible values are: NO, YES and FAIL_ON_WARNINGS.
+# The default value is: NO.
+
+WARN_AS_ERROR          = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that doxygen
+# can produce. The string should contain the $file, $line, and $text tags, which
+# will be replaced by the file and line number from which the warning originated
+# and the warning text. Optionally the format may contain $version, which will
+# be replaced by the version of the file (if it could be obtained via
+# FILE_VERSION_FILTER)
+# See also: WARN_LINE_FORMAT
+# The default value is: $file:$line: $text.
+
+WARN_FORMAT            = "$file:$line: $text"
+
+# In the $text part of the WARN_FORMAT command it is possible that a reference
... 246567 lines suppressed ...