Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
AssetRegistrywith lifecycle states, certificate validation and deterministic receipts to manage asset registration and governance.MintDisabled).Description
crates/aoxcore/src/asset/mod.rsimplementingAssetRegistry,AssetRegistryEntry,RegistryCertificate, state enums, validation, lifecycle transitions, receipt-emitting helpers and unit tests, and exports the module viacrates/aoxcore/src/lib.rswithpub mod asset;.crates/aoxcore/src/native_token.rsto replacemintable: boolwithNativeTokenPolicy::supply_model: SupplyModel, introduceallows_mint()logic, returnNativeTokenError::MintDisabledPolicywhen minting is disallowed, add related error codeERROR_CODE_MINT_DISABLEDand tests (mint_is_rejected_when_supply_model_disables_mint,default_policy_is_canonical_native).aoxcunityblock model with new section types and multi-root header fields by updatingtypes.rs(newExecution/Identity/PostQuantum/Ai/ExternalSettlement/Constitutional/TimeSealtypes,SignaturePolicyenum, capability flags, header fields and helpers),hash.rs(new root domains, section hashing, capability flags propagation and new helper hash functions), andbuilder.rs(canonicalization, semantic validation calls, header field population and additional tests).policy_registry.rsforresolve_signature_policyandenforce_signature_policy_migration(withPQ_MANDATORY_START_EPOCH) andsemantic.rsforvalidate_block_semantics,validate_capability_section_alignmentandvalidate_root_semantic_bindingswith tests covering PQ, AI, TimeSeal and capability alignment rules.aoxcunity/src/lib.rsand updates docs by adding CMB v1 design and final semantic audit pages andSUMMARY.mdentries.Testing
aoxcoreasset tests andnative_tokentests; all asset and native token tests passed (validation, lifecycle flows, receipts and mint-policy cases).aoxcunityblock module unit tests covering builder determinism, duplicate section detection, capability flag exposure, time-seal/AI/PQ semantic validation, root-binding checks and policy registry behavior; all tests passed.cargo testacross the modified crates was exercised and completed successfully.Codex Task