You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are tasks left over from the account ID refactor (#982).
Introduce AccountIdError. There are now new error conditions for IDs and a separate error might be cleaner.
With the introduction of this error it might be possible to make AccountId::new_dummy a const fn and then we could possibly replace the somewhat duplicate functionality of miden_objects::testing::account_id::account_id.
Implement Display for AccountType and use it in error messages.
Go through error messages and double check if they are up to date (e.g. ones previously mentioning "account id" should now likely mention first or second felt for accuracy).
validate_fungible_asset_origin validates the account ID and then calls validate_fungible_asset which validates it again check if we can remove some redundancy here.
Add new tests for changed things: version and epoch in ID, test new and changed MASM procedures more thoroughly.
This would be fundamentally at odds with current asset serialization where the first byte is assumed to be the account ID metadata. Since we can't change u128::to_be_bytes the metadata would not be in the first byte.
One approach may be to implement a special account ID serialization for assets where the first byte is the metadata byte, while the above formats for account IDs are the same.
These are tasks left over from the account ID refactor (#982).
AccountIdError
. There are now new error conditions for IDs and a separate error might be cleaner.AccountId::new_dummy
aconst fn
and then we could possibly replace the somewhat duplicate functionality ofmiden_objects::testing::account_id::account_id
.AccountType
and use it in error messages.generate_account_seed
. See also: ExtendAccountId
to twoFelt
s and refactor creation process #982 (comment)build.rs
constants patching for POW which we no longer have.account_id.rs
. See also ExtendAccountId
to twoFelt
s and refactor creation process #982 (comment).Move newly introduced duplicate procedures into the new util library(seems like it's being done in Remove duplicate procedures frommiden-lib
#1002 already).validate_fungible_asset_origin
validates the account ID and then callsvalidate_fungible_asset
which validates it again check if we can remove some redundancy here.create_account_invalid_seed
.AccountId
version wrapper (see ExtendAccountId
to twoFelt
s and refactor creation process #982 (comment)) and consider making ID V1 validation a separate procedure in MASM.AccountBuilder::new
, i.e.: ExtendAccountId
to twoFelt
s and refactor creation process #982 (comment).id_hi
andid_lo
) to prefix and suffix.NoteExecutionHint::OnBlockSlot
to not use epoch, as it is a somewhat different concept. See ExtendAccountId
to twoFelt
s and refactor creation process #982 (comment) for details.u128::to_be_bytes
and<[u8; 15]>
encodings consistent (see ExtendAccountId
to twoFelt
s and refactor creation process #982 (comment)).u128::to_be_bytes
the metadata would not be in the first byte.AccountId
to twoFelt
s and refactor creation process #982 (comment)faucet_id_prefix
to Assets and renameAsset::faucet_id
toAsset::faucet_id_prefix
(ExtendAccountId
to twoFelt
s and refactor creation process #982 (comment), ExtendAccountId
to twoFelt
s and refactor creation process #982 (comment))AccountId
to twoFelt
s and refactor creation process #982 (comment))AccountId
to twoFelt
s and refactor creation process #982 (comment))validate_id
MASM procedure (ExtendAccountId
to twoFelt
s and refactor creation process #982 (comment))AccountId
to twoFelt
s and refactor creation process #982 (comment))ChainMmr
docs to also say that it is being used for account id validation next to note authentication.The text was updated successfully, but these errors were encountered: