Skip to content

OutputNoteError::NoteSizeLimitExceeded error with the Rust P2ID note script #2648

@greenhat

Description

@greenhat

Discovered during the migration to v0.14 at 0xMiden/compiler#995

I believe this limit was introduced in #2205

The error:

1: public note with id 0xbe6b32f01dfa0e920b1d2040917e12b949f4d79a94fece147a2e3c619f060015 has size 41518 bytes which exceeds maximum note size of 32768

This ~40 KB size is with stripped debug info. Unstripped size is 83 KB.

The check:
https://github.com/0xMiden/miden-base/blob/94b54158f662d68072665ed542e0b4ff00d5ca42/crates/miden-protocol/src/transaction/outputs/notes.rs?plain=1#L481

/cc @PhilippGackstatter @bobbinth

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions