Skip to content

chore: update miden dependencies#2023

Open
juan518munoz wants to merge 7 commits intonextfrom
jmunoz-update-miden-deps
Open

chore: update miden dependencies#2023
juan518munoz wants to merge 7 commits intonextfrom
jmunoz-update-miden-deps

Conversation

@juan518munoz
Copy link
Copy Markdown
Collaborator

Update miden-protocol dependencies to point back to next in order to prepare for 0.15.0 release.

note_id BLOB NOT NULL,
note_commitment BLOB NOT NULL,
note_type INTEGER NOT NULL, -- 1-Public (0b01), 2-Private (0b10), 3-Encrypted (0b11)
note_type INTEGER NOT NULL, -- 0-Private, 1-Public
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Encrypted variant removed in 0xMiden/protocol#2315

Note that this change only works for newly created databases, as it's not a new, proper migration, but rather a modification to an already existing one (thus does not apply to existing DBs)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it doesn't look correct. We sbhould just remove the Encrypted one.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in d1c0648

Copy link
Copy Markdown
Collaborator Author

@juan518munoz juan518munoz May 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a second look at this, 0xMiden/protocol#2691 changed the encoding format of NoteType, thus why we can no longer have it as 1-indexed:

  • NoteType::Private changed from 2 to 0 (new default)
  • NoteType::Public remains 1

Copy link
Copy Markdown
Collaborator Author

@juan518munoz juan518munoz May 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this .mac files be (git) ignored?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I think they're added intentionally as examples

@juan518munoz juan518munoz marked this pull request as ready for review May 4, 2026 19:18
Comment thread crates/store/src/genesis/config/mod.rs Outdated

let component = BasicFungibleFaucet::new(symbol.as_ref().clone(), decimals, max_supply)?;
let token_metadata = FungibleTokenMetadata::builder(
TokenName::new("").expect("empty token name is always valid"),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is TokenName and shouldn't we be providing one?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TokenName was added to the protocol recently and represents the display name of a token. I agree that we should provide one here, at least we should match the token symbol

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The token name is now derived from the symbol.

d1c0648

Comment thread crates/store/src/genesis/config/mod.rs Outdated
Comment on lines +455 to +457
.with_component(BasicFungibleFaucet)
.with_component(MintAuthControlled::allow_all())
.with_component(BurnAuthControlled::allow_all())
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that there are so many more options, should we be allowing non-native faucets by config at all? Or is this still a sensible default to use.

note_id BLOB NOT NULL,
note_commitment BLOB NOT NULL,
note_type INTEGER NOT NULL, -- 1-Public (0b01), 2-Private (0b10), 3-Encrypted (0b11)
note_type INTEGER NOT NULL, -- 0-Private, 1-Public
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread crates/store/src/genesis/config/mod.rs Outdated

let component = BasicFungibleFaucet::new(symbol.as_ref().clone(), decimals, max_supply)?;
let token_metadata = FungibleTokenMetadata::builder(
TokenName::new("").expect("empty token name is always valid"),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TokenName was added to the protocol recently and represents the display name of a token. I agree that we should provide one here, at least we should match the token symbol

Comment thread CHANGELOG.md Outdated
- [BREAKING] Network monitor `/status` endpoint now emits a single `RemoteProverStatus` entry per remote prover that bundles status, workers, and test results, instead of separate entries ([#1980](https://github.com/0xMiden/node/pull/1980)).
- Refactored the validator gRPC API implementation to use the new per-method trait implementations ([#1959](https://github.com/0xMiden/node/pull/1959)).
- Aligned `SyncNullifiers` list-limit validation in RPC and store with `nullifier_prefix` parameter semantics, extended `GetLimits` test coverage, and documented query parameter limits ([#1986](https://github.com/0xMiden/node/pull/1986)).
- Fixed remote-prover grpc server not using configured timeout ([#2023](https://github.com/0xMiden/node/pull/2023)).
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this changelog entry right? 🤔

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is was! You can see the change in the first commit, but it appears as it has been fixed on next as well. I'll remove the entry.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed in d1c0648

Should we mark this as no changelog?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants