AmbireTech / adex-validator-stack-rust

The Ambire AdEx Validator Stack implemented in Rust: sentry, validator worker, adapter, adview manager
https://adex.network
GNU Affero General Public License v3.0
11 stars 10 forks source link

Dummy adapter #53

Closed elpiel closed 4 years ago

elpiel commented 5 years ago

As part of the Tracking issue #25 for Adapters we need to create a dummy adapter implementation. Since we are starting to work on the Validator Workers and this is one of the first things that we are going to need to be used in the Validator Worker and eventually in Sentry.

Create an adapter crate where we are going to define the traits and later we can implement them in a feature for the dummy and use separate adapter-dummy crate for this.

Reference to JS implementation: https://github.com/AdExNetwork/adex-validator/blob/master/adapters/dummy/index.js

elpiel commented 5 years ago

Currently implemented:

Note: They are Future based! :tada:

To be implemented, once we have the overview what would be the structure:

MerkleTree: I've created a sample repo to test the implementation with https://crates.io/crates/merkletree & https://crates.io/crates/sha3 that can be found here: https://github.com/elpiel/adex-merkle-tree

elpiel commented 4 years ago

resolved in #143