From 109bfc50ef78b458169c990609a8ec21883504f8 Mon Sep 17 00:00:00 2001 From: Benji <67122503+benjib-2@users.noreply.github.com> Date: Wed, 4 Sep 2024 19:34:48 -0400 Subject: [PATCH] Update README.md and Cargo.toml --- Cargo.toml | 20 +++++++++++++++----- README.md | 49 +++++++++++++++++++++++++++++++++++++------------ merk-dark.svg | 3 +++ merk.svg | 3 +++ 4 files changed, 58 insertions(+), 17 deletions(-) create mode 100644 merk-dark.svg create mode 100644 merk.svg diff --git a/Cargo.toml b/Cargo.toml index 796fcfa8..f19954ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "merk" -description = "Merkle key/value store" +description = "High-performance Merkle key/value store" version = "2.0.0" -authors = ["Matt Bell "] +authors = ["Turbofish "] edition = "2018" -license = "MIT" +license = "Apache-2.0" [dependencies] -thiserror= "1.0.31" +thiserror = "1.0.31" sha2 = "0.10.2" log = "0.4.17" @@ -56,5 +56,15 @@ optional = true [features] default = ["full", "verify"] -full = ["rand", "rocksdb", "time", "hex", "colored", "num_cpus", "byteorder", "failure", "ed"] +full = [ + "rand", + "rocksdb", + "time", + "hex", + "colored", + "num_cpus", + "byteorder", + "failure", + "ed", +] verify = ["ed", "failure"] diff --git a/README.md b/README.md index 76239c94..e612aaf3 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,15 @@ -# merk +

+ + + + merk + +

*High-performance Merkle key/value store* -![CI](https://github.com/nomic-io/merk/actions/workflows/ci.yml/badge.svg) -[![codecov](https://codecov.io/gh/nomic-io/merk/branch/develop/graph/badge.svg?token=TTUTSt2iLz)](https://codecov.io/gh/nomic-io/merk) +![CI](https://github.com/turbofish-org/merk/actions/workflows/ci.yml/badge.svg) +[![codecov](https://codecov.io/gh/turbofish-org/merk/branch/develop/graph/badge.svg?token=TTUTSt2iLz)](https://codecov.io/gh/turbofish-org/merk) [![Crate](https://img.shields.io/crates/v/merk.svg)](https://crates.io/crates/merk) [![API](https://docs.rs/merk/badge.svg)](https://docs.rs/merk) @@ -11,7 +17,7 @@ Merk is a crypto key/value store - more specifically, it's a Merkle AVL tree bui Its priorities are performance and reliability. While Merk was designed to be the state database for blockchains, it can also be used anywhere an auditable key/value store is needed. -### FEATURES: +### Features - **Fast reads/writes** - Reads have no overhead compared to a normal RocksDB store, and writes are optimized for batch operations (e.g. blocks in a blockchain). - **Fast proof generation** - Since Merk implements an AVL tree rather than a trie, it is very efficient to create and verify proofs for ranges of keys. - **Concurrency** - Unlike most other Merkle stores, all operations utilize all available cores - giving huge performance gains and allowing nodes to scale along with Moore's Law. @@ -20,6 +26,8 @@ Its priorities are performance and reliability. While Merk was designed to be th - **Web-friendly** - Being written in Rust means it is easy to run the proof-verification code in browsers with WebAssembly, allowing for light-clients that can verify data for themselves. - **Fits any Profile** - Performant on RAM-constrained Raspberry Pi's and beefy validator rigs alike. +The algorithms are based on AVL, but optimized for batches of operations and random fetches from the backing store. + ## Usage **Install:** @@ -44,12 +52,7 @@ let batch = [ ]; merk.apply(&batch).unwrap(); ``` - -## Status - -Merk is being used in the [Nomic](https://github.com/nomic-io/nomic) Bitcoin Sidechain. - -The codebase has not been audited but has been throroughly tested and proves to be stable. +Merk is currently used by [Nomic](https://github.com/nomic-io/nomic), a blockchain powering decentralized custody of Bitcoin, built on [Orga](https://github.com/turbofish-org/orga). ## Benchmarks @@ -113,6 +116,28 @@ You can test these yourself by running `cargo bench`. | Random reads | 2,370,000 | | Random proof generation | 497,000 | -## Algorithm Details +## Contributing + +Merk is an open-source project spearheaded by Turbofish. Anyone is able to contribute to Merk via GitHub. + +[Contribute to Merk](https://github.com/turbofish-org/merk/contribute) + +## Security + +Merk is currently undergoing security audits. + +Vulnerabilities should not be reported through public channels, including GitHub Issues. You can report a vulnerability via GitHub's Private Vulnerability Reporting or to Turbofish at `security@turbofish.org`. + +[Report a Vulnerability](https://github.com/turbofish-org/merk/security/advisories/new) + +## License + +Licensed under the Apache License, Version 2.0 (the "License"); you may not use the files in this repository except in compliance with the License. You may obtain a copy of the License at + + https://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. + +--- -The algorithms are based on AVL, but optimized for batches of operations and random fetches from the backing store. Read about the algorithms here: https://github.com/nomic-io/merk/blob/develop/docs/algorithms.md +Copyright © 2024 Turbofish, Inc. \ No newline at end of file diff --git a/merk-dark.svg b/merk-dark.svg new file mode 100644 index 00000000..f3468305 --- /dev/null +++ b/merk-dark.svg @@ -0,0 +1,3 @@ + + + diff --git a/merk.svg b/merk.svg new file mode 100644 index 00000000..7c7477f9 --- /dev/null +++ b/merk.svg @@ -0,0 +1,3 @@ + + +