Skip to content

Commit

Permalink
chore: Update 'anymap' dependency and refactor related usage (#530)
Browse files Browse the repository at this point in the history
- Upgraded the `anymap` dependency to the latest version.
- Refactored the 'AnyMap' type definition, replacing `anymap::any::Any` with `core::any::Any` in `public_parameters/registry.rs`.
- this will invalidate public params
  • Loading branch information
huitseeker authored Jul 14, 2023
1 parent 0b44f1e commit 4e6397b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rust-version = "1.68.2"
[dependencies]
ahash = "0.7.6"
anyhow = { workspace = true }
anymap = "0.12.1"
anymap = "1.0.0-beta.2"
base32ct = { version = "0.2.0", features = ["std"] }
base64 = { workspace = true }
base-x = "0.2.11"
Expand Down
2 changes: 1 addition & 1 deletion src/public_parameters/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::{coprocessor::Coprocessor, eval::lang::Lang, proof::nova::PublicParam
use super::file_map::FileIndex;

type S1 = pallas::Scalar;
type AnyMap = anymap::Map<dyn anymap::any::Any + Send + Sync>;
type AnyMap = anymap::Map<dyn core::any::Any + Send + Sync>;
type PublicParamMemCache<C> = HashMap<usize, Arc<PublicParams<'static, C>>>;

/// This is a global registry for Coproc-specific parameters.
Expand Down

0 comments on commit 4e6397b

Please sign in to comment.