Skip to content

Conversation

@SantiagoPittella
Copy link
Collaborator

@SantiagoPittella SantiagoPittella commented Jan 16, 2026

closes #1522

THis PR update with the latest miden-base changing, affecting primary the network note detection.

I wanted to test this with the network monitor and its counter increment network transaction, but I started to receive the same error that I mentioned in #1490:

status: 'Client specified an invalid argument', self: "transaction's initial state commitment
0xfbdb4615d915c83feb32b3943992b305c72b4a3675cacdce407929a7507af245 does not match the account's
current value of 0x0000000000000000000000000000000000000000000000000000000000000000", metadata:
{"content-type": "application/grpc", "date": "Fri, 16 Jan 2026 15:25:52 GMT", "access-control-expose-headers":
"grpc-status,grpc-message,grpc-status-details-bin", "access-control-allow-credentials": "true", "vary": "origin,
access-control-request-method, access-control-request-headers"}

Update: fixed it by making get_vault_asset_witnesses return an empty vector as suggested in #1493 (comment)

Copy link
Contributor

@PhilippGackstatter PhilippGackstatter left a comment

Choose a reason for hiding this comment

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

Looks good - left a few comments.

Copy link
Contributor

@PhilippGackstatter PhilippGackstatter left a comment

Choose a reason for hiding this comment

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

Looks good to me from a protocol perspective.

I think the network account ID should eventually contain at least 64 or more bits of the account ID - ideally the full one. Anything less than 64 is not guaranteed to be unique, but probably not critical to do before 0.13 testnet.

Comment on lines +317 to +318
#[error("note does not have a valid NetworkAccountTarget attachment: {0}")]
InvalidAttachment(String),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
#[error("note does not have a valid NetworkAccountTarget attachment: {0}")]
InvalidAttachment(String),
#[error("note does not have a valid NetworkAccountTarget attachment: {0}")]
InvalidAttachment(#[source] NetworkAccountTargetError),

Nit: Should this use asource error instead of stringifying it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NetworkAccountTargetError is not publicly exposed. In miden-base we have:

mod network_account_target;
pub use network_account_target::NetworkAccountTarget;

Should we make the whole module public?

@Mirko-von-Leipzig
Copy link
Collaborator

@SantiagoPittella if you could mark comments as resolved once you have addressed them (in your opinion). This let's me see that I can review without worrying about these.

@SantiagoPittella
Copy link
Collaborator Author

@SantiagoPittella if you could mark comments as resolved once you have addressed them (in your opinion). This let's me see that I can review without worrying about these.

Sure! I usually let the reviewer to decide that. I marked the comments that I consider addressed. There is one remaining #1526 (comment)

@Mirko-von-Leipzig
Copy link
Collaborator

@SantiagoPittella if you could mark comments as resolved once you have addressed them (in your opinion). This let's me see that I can review without worrying about these.

Sure! I usually let the reviewer to decide that. I marked the comments that I consider addressed. There is one remaining #1526 (comment)

I've gone back and forth and this myself as well. I should probably right some thoughts down at some point a bit more formally :D

@SantiagoPittella SantiagoPittella merged commit 5478bad into next Jan 20, 2026
18 checks passed
@SantiagoPittella SantiagoPittella deleted the santiagopittella-update-protocol-version branch January 20, 2026 18:36
@SantiagoPittella SantiagoPittella restored the santiagopittella-update-protocol-version branch January 20, 2026 19:16
SantiagoPittella added a commit that referenced this pull request Jan 20, 2026
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.

Replace network note detection with NetworkAccountTarget

4 participants