Skip to content

Commit

Permalink
Remove code hasher
Browse files Browse the repository at this point in the history
  • Loading branch information
miloszm committed Nov 30, 2023
1 parent 8642ab2 commit 5c6010a
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 623 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[workspace]
members = ["moat-cli/moat-cli-common", "moat-cli/moat-cli-user", "moat-cli/moat-cli-lp", "moat-cli/moat-cli-sp", "moat-core", "integration-tests", "macros/code-hasher", "moat-example"]
members = ["moat-cli/moat-cli-common", "moat-cli/moat-cli-user", "moat-cli/moat-cli-lp", "moat-cli/moat-cli-sp", "moat-core", "integration-tests", "moat-example"]
23 changes: 0 additions & 23 deletions macros/code-hasher/Cargo.toml

This file was deleted.

373 changes: 0 additions & 373 deletions macros/code-hasher/LICENSE

This file was deleted.

16 changes: 0 additions & 16 deletions macros/code-hasher/Makefile

This file was deleted.

29 changes: 0 additions & 29 deletions macros/code-hasher/README.md

This file was deleted.

100 changes: 0 additions & 100 deletions macros/code-hasher/src/lib.rs

This file was deleted.

75 changes: 0 additions & 75 deletions macros/code-hasher/tests/main.rs

This file was deleted.

1 change: 0 additions & 1 deletion moat-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ hex = "0.4"
rand = "0.8"
dusk-bytes = "0.1"
blake3 = "1.4"
code-hasher = { path = "../macros/code-hasher", version = "0.4.0" }
tracing = "0.1"
bytes = "1.4"
reqwest = "0.11"
Expand Down
5 changes: 0 additions & 5 deletions moat-core/src/circuit/license_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,8 @@ impl LicenseCircuit {
) -> Self {
Self { lpp: *lpp, sc: *sc }
}

pub const fn circuit_id() -> &'static [u8; 32] {
&Self::CIRCUIT_ID
}
}

#[code_hasher::hash(name = "CIRCUIT_ID", version = "0.2.0")]
impl Circuit for LicenseCircuit {
fn circuit<C>(&self, composer: &mut C) -> Result<(), Error>
where
Expand Down

0 comments on commit 5c6010a

Please sign in to comment.