Skip to content

Add miden::protocol::asset::create_fungible_key #2541

@PhilippGackstatter

Description

@PhilippGackstatter

It would be useful to expose a miden::protocol::asset::create_fungible_key procedure for the purpose of creating fungible asset keys. This would replace the following manually constructed keys:

https://github.com/0xMiden/protocol/blob/525b383/crates/miden-protocol/asm/shared_utils/util/asset.masm#L177
https://github.com/0xMiden/protocol/blob/525b383/crates/miden-protocol/asm/protocol/active_account.masm#L547
https://github.com/0xMiden/protocol/blob/525b383/crates/miden-protocol/asm/protocol/active_account.masm#L515

I think we should eventually move fungible asset definitions from miden::protocol to miden::standards, in which case the create_fungible_key would move along with it, ideally to something like miden::standards::fungible_asset::create_key.

Originally brought up by @mmagician in #2508 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomerskernelsRelated to transaction, batch, or block kernels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions