Network Working Group J. S. Wang Internet-Draft ACE Labs Intended status: Informational 3 December 2026 Expires: 6 June 2027 ACE-GF: A Generative Framework for Atomic Cryptographic Entities draft-wang-acegf-protocol-02 Abstract This document specifies the Atomic Cryptographic Entity Generative Framework (ACE-GF), a cryptographic construction for deriving and reconstructing stable cryptographic identities from user-held credentials without persistent storage of a plaintext master secret. In existing deterministic key-derivation schemes, the root secret is stored long-term, and changing the secret that protects it changes the derived keys. ACE-GF keeps the identity root only in an encrypted Sealed Artifact and derives all keys from it, so that the credential protecting an identity can be changed without changing any derived key, and keys for several cryptographic algorithms, including post-quantum algorithms, are derived with explicit context separation. The framework is application-agnostic and may be applied to authentication systems, distributed identities, key management, and cryptographic wallets. This document defines the core construction, its security properties, and interoperability considerations; application-specific profiles are defined separately. Discussion Venues This note is to be removed before publishing as an RFC. Source for this draft and an issue tracker can be found at https://github.com/acechain-io/acegf-ietf-draft. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Wang Expires 6 June 2027 [Page 1] Internet-Draft ACE-GF December 2026 Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 6 June 2027. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1. Background and Motivation . . . . . . . . . . . . . . . . 4 1.2. Core Contributions . . . . . . . . . . . . . . . . . . . 5 2. Conventions and Terminology . . . . . . . . . . . . . . . . . 5 2.1. Conventions . . . . . . . . . . . . . . . . . . . . . . . 5 2.2. Terminology . . . . . . . . . . . . . . . . . . . . . . . 5 3. Protocol Overview . . . . . . . . . . . . . . . . . . . . . . 7 3.1. The Decoupled Identity Model . . . . . . . . . . . . . . 7 3.2. Data Flow and Transformation . . . . . . . . . . . . . . 7 3.3. Atomic Entity Lifecycle and States . . . . . . . . . . . 7 3.3.1. Operational States . . . . . . . . . . . . . . . . . 8 3.3.2. Lifecycle Sequence . . . . . . . . . . . . . . . . . 8 3.4. Core Operations: Rekeying and Identity Unreachability . . 8 3.5. Local Call Sequence . . . . . . . . . . . . . . . . . . . 9 4. Architecture and Design Principles . . . . . . . . . . . . . 9 4.1. Identity Pipeline . . . . . . . . . . . . . . . . . . . . 9 4.2. Authorization Pipeline . . . . . . . . . . . . . . . . . 9 5. Cryptographic Primitives . . . . . . . . . . . . . . . . . . 10 5.1. KDF1: Credential Hashing (Argon2id) . . . . . . . . . . . 10 5.2. AEAD: Sealing Encryption (AES-256-GCM-SIV) . . . . . . . 10 5.3. KDF2: Key Derivation (HKDF-SHA256) . . . . . . . . . . . 11 6. Protocol Specification . . . . . . . . . . . . . . . . . . . 11 6.1. Root Entropy Value (REV) Generation . . . . . . . . . . . 12 6.1.1. Inputs . . . . . . . . . . . . . . . . . . . . . . . 12 6.1.2. Outputs . . . . . . . . . . . . . . . . . . . . . . . 12 6.1.3. Processing Requirements . . . . . . . . . . . . . . . 12 6.1.4. Error Conditions . . . . . . . . . . . . . . . . . . 12 6.1.5. Error Handling Requirements . . . . . . . . . . . . . 12 Wang Expires 6 June 2027 [Page 2] Internet-Draft ACE-GF December 2026 6.2. Sealing Process (Seal) . . . . . . . . . . . . . . . . . 12 6.2.1. Inputs . . . . . . . . . . . . . . . . . . . . . . . 12 6.2.2. Outputs . . . . . . . . . . . . . . . . . . . . . . . 13 6.2.3. Processing Steps . . . . . . . . . . . . . . . . . . 13 6.2.4. Error Conditions . . . . . . . . . . . . . . . . . . 13 6.2.5. Error Handling Requirements . . . . . . . . . . . . . 13 6.3. Unsealing Process (Unseal) . . . . . . . . . . . . . . . 14 6.3.1. Inputs . . . . . . . . . . . . . . . . . . . . . . . 14 6.3.2. Outputs . . . . . . . . . . . . . . . . . . . . . . . 14 6.3.3. Processing Steps . . . . . . . . . . . . . . . . . . 14 6.3.4. Error Conditions . . . . . . . . . . . . . . . . . . 14 6.3.5. Error Handling Requirements . . . . . . . . . . . . . 15 6.4. Key Derivation Function (Derive) . . . . . . . . . . . . 15 6.4.1. Inputs . . . . . . . . . . . . . . . . . . . . . . . 15 6.4.2. Outputs . . . . . . . . . . . . . . . . . . . . . . . 15 6.4.3. Processing Steps . . . . . . . . . . . . . . . . . . 15 6.4.4. Error Conditions . . . . . . . . . . . . . . . . . . 15 6.4.5. Error Handling Requirements . . . . . . . . . . . . . 16 7. Data Structures and Encodings . . . . . . . . . . . . . . . . 16 7.1. Sealed Artifact (SA) Binary Format (Version 0x01) . . . . 16 7.1.1. SA Binary Layout (Version 0x01) . . . . . . . . . . . 16 7.1.2. Field Semantics . . . . . . . . . . . . . . . . . . . 17 7.2. Sealing Profiles . . . . . . . . . . . . . . . . . . . . 17 7.3. Context Labels . . . . . . . . . . . . . . . . . . . . . 17 7.3.1. Algorithm Identifiers (AlgID) . . . . . . . . . . . . 17 7.3.2. Usage Domains (Domain) . . . . . . . . . . . . . . . 19 7.4. Context String Encoding . . . . . . . . . . . . . . . . . 19 8. Cryptographic Agility . . . . . . . . . . . . . . . . . . . . 20 8.1. Algorithm-Independent Identity Root . . . . . . . . . . . 20 8.2. Adding an Algorithm . . . . . . . . . . . . . . . . . . . 20 8.3. Retiring an Algorithm . . . . . . . . . . . . . . . . . . 21 8.4. Agility of the Sealing Layer . . . . . . . . . . . . . . 22 8.5. Limits . . . . . . . . . . . . . . . . . . . . . . . . . 22 9. Operational Considerations and Identity Lifecycle . . . . . . 22 9.1. Sealed Artifact Persistence and Mobility . . . . . . . . 22 9.2. Stateless Credential Rotation . . . . . . . . . . . . . . 23 9.3. Authorization Epochs and Revocation . . . . . . . . . . . 23 9.3.1. Synchronization Across Devices . . . . . . . . . . . 24 9.4. Failure Modes and Recovery Considerations . . . . . . . . 24 9.5. Storage and Ephemeral State Considerations . . . . . . . 25 9.6. Migration Considerations . . . . . . . . . . . . . . . . 25 10. Security Considerations . . . . . . . . . . . . . . . . . . . 25 10.1. Entropy Requirements for Credentials . . . . . . . . . . 25 10.2. Protection of Volatile Memory and Memory Management . . 26 10.2.1. Isolated Execution Environments (IEE) . . . . . . . 26 10.2.2. Memory Hardening and Zeroization . . . . . . . . . . 26 10.3. Resistance to Brute-Force Attacks . . . . . . . . . . . 27 10.4. Post-Quantum Transition and Hybrid Security . . . . . . 28 Wang Expires 6 June 2027 [Page 3] Internet-Draft ACE-GF December 2026 10.5. Cryptographic Isolation of Derived Keys . . . . . . . . 28 11. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 28 11.1. ACE-GF Sealing Profile Registry . . . . . . . . . . . . 28 11.2. ACE-GF Algorithm Identifier Registry . . . . . . . . . . 29 11.3. ACE-GF Usage Domain Registry . . . . . . . . . . . . . . 29 12. Test Vectors . . . . . . . . . . . . . . . . . . . . . . . . 30 12.1. Sealing with the Standard Profile . . . . . . . . . . . 30 12.2. Sealing a Non-ASCII Credential with the Mobile Profile . . . . . . . . . . . . . . . . . . . . . . . . 31 12.3. Credential Normalization . . . . . . . . . . . . . . . . 32 12.4. Key Derivation from a Single REV . . . . . . . . . . . . 32 12.5. Interoperability Verification Guidance . . . . . . . . . 33 13. References . . . . . . . . . . . . . . . . . . . . . . . . . 33 13.1. Normative References . . . . . . . . . . . . . . . . . . 33 13.2. Informative References . . . . . . . . . . . . . . . . . 35 Appendix A. Implementation Considerations for Resource-Constrained Devices . . . . . . . . . . . . . . . . . . . . . . . . . 36 Appendix B. Reference Program . . . . . . . . . . . . . . . . . 36 Appendix C. Example Use Cases (Informational) . . . . . . . . . 38 C.1. Autonomous Digital Entities (ADEs) . . . . . . . . . . . 38 C.2. IoT and Embedded Devices . . . . . . . . . . . . . . . . 38 C.3. Blockchain and Cryptographic Wallet Identities . . . . . 39 Appendix D. Security Boundaries and Trust Assumptions (Informational) . . . . . . . . . . . . . . . . . . . . . 39 D.1. Trust Boundaries . . . . . . . . . . . . . . . . . . . . 39 D.2. Authorization Boundary . . . . . . . . . . . . . . . . . 39 D.3. Execution Environment Assumptions . . . . . . . . . . . . 39 D.4. Non-Goals . . . . . . . . . . . . . . . . . . . . . . . . 39 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 40 1. Introduction 1.1. Background and Motivation Deterministic key management schemes, such as BIP-32 [BIP32] and BIP-39 [BIP39], derive all keys from a single master seed. The seed is stored long-term, often in plaintext or in a form whose protection is tied to the seed itself. In BIP-39, for example, the optional passphrase is an input to seed derivation: changing the passphrase produces an entirely different set of keys, so the protection of an existing identity cannot be changed without changing the identity. ACE-GF separates the two. The identity root, the Root Entropy Value (REV), is a random value that is stored only inside an encrypted Sealed Artifact (SA). Credentials control access to the SA, and the REV alone determines every derived key. Credentials can therefore be rotated while all derived public keys and identifiers stay the same. Wang Expires 6 June 2027 [Page 4] Internet-Draft ACE-GF December 2026 This separation does not remove the REV as a single point of compromise: anyone who obtains the REV, or an SA together with a credential that opens it, can derive every key of the identity. What ACE-GF changes is where the root lives at rest (only encrypted) and how its protection is updated (without changing identifiers). This suits Autonomous Digital Entities (ADEs), such as AI agents and IoT deployments, which need identity continuity across restarts and credential changes without centralized trust anchors [DID-Core]. 1.2. Core Contributions ACE-GF introduces a generative framework for Atomic Cryptographic Entities (ACE) with the following properties: * *Seed-Storage-Free*: The identity root (REV) is never stored in plaintext. It exists in plaintext only in volatile memory during active operations; at rest it exists only inside an SA. * *Deterministic Reconstruction*: The REV is reconstructed from an SA and an authorization credential. * *Credential Rotation without Identifier Change*: The SA can be re- sealed under a new credential while every derived key stays the same. * *Context Isolation*: Keys for different algorithms and purposes (e.g., Ed25519, ML-DSA) are derived with explicit, fixed-length context encoding [RFC5869]. * *Cryptographic Agility*: The identity root is independent of any algorithm. Algorithms, including ones specified in the future, are added by registering an identifier, and existing identities derive keys for them without changing the root (Section 8). 2. Conventions and Terminology 2.1. Conventions The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. 2.2. Terminology The following terms are used throughout this document: Wang Expires 6 June 2027 [Page 5] Internet-Draft ACE-GF December 2026 *ACE-GF* Atomic Cryptographic Entity Generative Framework. A cryptographic framework that enables deterministic reconstruction of digital identities from user-held credentials without persistent storage of a plaintext master secret. *Root Entropy Value (REV)* The 256-bit secret from which all key material of an identity is derived. *Sealed Artifact (SA)* The persistent, encrypted form of the REV, together with the metadata needed to unseal it (Section 7.1). *Credential* A secret input to ACE-GF, such as a passphrase or other high-entropy material, from which the key that seals the REV is derived. Credentials are supplied at the time of identity reconstruction and are not persistently stored by the framework. *Identity* A stable cryptographic identity derived via ACE-GF. An identity may correspond to one or more public/private key pairs, addresses, or identifiers, depending on the application context in which ACE-GF is applied. An Identity in ACE-GF is defined by the ability to reconstruct the underlying REV; loss of this ability renders the identity cryptographically unreachable. *Context* An explicit domain-separation parameter, in the sense used for key derivation functions [NIST-SP800-108], used by ACE-GF to ensure that derived material for different purposes, algorithms, or applications remains cryptographically isolated. *Rekeying* The process of producing a new SA that associates a new credential with an existing REV. Unlike traditional key rotation, ACE-GF rekeying does not modify the REV or any derived key. *Profile* A specification that defines how ACE-GF is applied within a specific application domain. Profiles may impose additional constraints, parameters, or output formats. A profile that encodes the sealed REV differently from Section 7.1 defines its own artifact format, which is not a Sealed Artifact as defined in this document and MUST NOT use its Magic Number. *Wallet Application Profile* An application profile that applies ACE-GF to cryptocurrency wallet systems, including multi-algorithm key derivation, a mnemonic encoding of the sealed value, and migration from legacy wallet formats. It is specified in a separate document; it uses its own artifact encoding and is not covered by the test vectors in this document. Wang Expires 6 June 2027 [Page 6] Internet-Draft ACE-GF December 2026 3. Protocol Overview This section provides a high-level, non-normative overview of the ACE-GF framework. It establishes the mental model for the decoupled architecture before the detailed protocol specification in Section 6. 3.1. The Decoupled Identity Model ACE-GF operates on the principle of *Functional Decoupling*. Unlike traditional deterministic systems that require the persistent storage of a master seed, ACE-GF separates the identity into two logically independent pipelines: * *Authorization Pipeline (The "Lock")*: Manages the transformation between a user's volatile *Credential* and a persistent *Sealed Artifact (SA)*. It controls _access_ to the identity. * *Identity Pipeline (The "Key")*: Performs deterministic derivation from the reconstructed *Root Entropy Value (REV)* to various cryptographic algorithms. It defines the _substance_ of the identity. 3.2. Data Flow and Transformation The following diagram illustrates how entropy flows from a raw state, through the authorization lock, and into algorithm-specific keys: Authorization Pipeline Identity Pipeline ---------------------- ----------------- [Credential] + [Salt] | v Argon2id (KDF1) | v K_seal (Symmetric) Derivation Context (Ctx) | | | v AEAD-Decrypt(SA, K_seal) ----> [ REV ] ----> HKDF (KDF2) | v [ Algorithm-Specific Keys ] 3.3. Atomic Entity Lifecycle and States The lifecycle of an ACE is defined by the availability and reachability of the REV. Wang Expires 6 June 2027 [Page 7] Internet-Draft ACE-GF December 2026 3.3.1. Operational States +=================+==============================+================+ | State | Description | Persistence | +=================+==============================+================+ | *Sealed* | The REV is encrypted within | Persistent | | | an SA. | (Disk/Storage) | +-----------------+------------------------------+----------------+ | *Reconstructed* | The REV is unsealed and | Ephemeral (RAM | | | resides in volatile memory. | only) | +-----------------+------------------------------+----------------+ | *Zeroized* | Sensitive material has been | N/A | | | wiped. Identity is dormant. | | +-----------------+------------------------------+----------------+ | *Unreachable* | Every SA copy is destroyed, | Permanent | | | or every credential that | | | | opens one is lost. | | +-----------------+------------------------------+----------------+ Table 1 3.3.2. Lifecycle Sequence 1. *Generate*: A 256-bit REV is sampled from a CSPRNG. 2. *Seal*: The REV is encrypted with a key derived from a Credential and Salt, producing an SA. The plaintext REV is then zeroized. 3. *Unseal*: When an operation is required, the user provides the Credential to decrypt the SA, restoring the REV to RAM. 4. *Derive*: The REV is used to generate keys for specific contexts (e.g., Ed25519, ML-DSA). 5. *Zeroize*: Once complete, the REV and all derived material are wiped from RAM. 3.4. Core Operations: Rekeying and Identity Unreachability By decoupling authorization from identity, ACE-GF enables the following operations without changing derived cryptographic identifiers (e.g., blockchain addresses): * *Stateless Rekeying*: To change a password, the entity unseals the REV and re-seals it using a _new_ Credential and _new_ Salt. The REV remains invariant; thus, all derived public keys remain stable. Rekeying does not invalidate earlier SAs (see Section 9.2). Wang Expires 6 June 2027 [Page 8] Internet-Draft ACE-GF December 2026 * *Identity Unreachability*: An identity becomes unreachable when no SA copy can be opened any longer, because all copies are destroyed or all credentials that open them are lost. No external revocation infrastructure is involved. 3.5. Local Call Sequence The following sequence describes the typical interaction between an application ("Caller") and an ACE-GF implementation: Caller ACE-GF Implementation | | |----- 1. generate_rev() ------------>| (Samples CSPRNG) |<------ [REV in RAM] ----------------| | | |----- 2. seal_rev(REV, Cred) ------->| (Argon2id + AES-GCM-SIV) |<----- [Sealed Artifact (SA)] -------| (Store to disk) | | |----- 3. zeroize_memory() ---------->| (Wipe RAM) | | | ... later (identity usage) ... | | | |----- 4. unseal_rev(SA, Cred) ------>| (Reconstructs REV in RAM) |----- 5. derive_key(REV, Ctx) ------>| (HKDF-SHA256) |<----- [Derived Key Material] -------| |----- 6. zeroize_memory() ---------->| (Wipe RAM) 4. Architecture and Design Principles ACE-GF separates the identity lifecycle into two distinct pipelines. 4.1. Identity Pipeline The identity pipeline manages the transformation from the REV to application-specific keys. It uses a deterministic, one-way derivation function (HKDF) with explicit context strings. Compromise of one derived key (e.g., an Ed25519 signing key) does not reveal the REV or any other derived key. 4.2. Authorization Pipeline The authorization pipeline manages the sealing and unsealing of the REV. Argon2id provides memory-hard key stretching of the credential, and AES-256-GCM-SIV provides authenticated encryption, so that the REV is accessible only when a correct Credential is provided. Wang Expires 6 June 2027 [Page 9] Internet-Draft ACE-GF December 2026 5. Cryptographic Primitives Implementations MUST use exactly the primitives and parameters specified in this section, so that results are identical across platforms. 5.1. KDF1: Credential Hashing (Argon2id) To resist offline brute-force attacks, ACE-GF uses Argon2id [RFC9106] to stretch the Credential (Cred) into a 256-bit sealing key (K_seal). * *Algorithm Selection*: Implementations MUST use the Argon2id variant (type y = 2) at version 0x13. * *Parameters*: The memory size m (in KiB, i.e., the profile's MiB value multiplied by 1024), the number of passes t, and the degree of parallelism p are taken from the Sealing Profile (Section 7.2). The tag length T MUST be 32 bytes. The optional secret value K and associated data X MUST be empty. * *Salt*: Each SA MUST include a 128-bit random salt sampled from a CSPRNG. The salt input S to Argon2id MUST be the 20-byte sequence Salt (16 bytes) || auth_index (4 bytes, Big-Endian). * *Credential Encoding*: The Credential MUST be normalized to Unicode Normalization Form KC (NFKC) [UAX15] and then encoded as UTF-8 [RFC3629]. The resulting octets are the password input P to Argon2id. Without normalization, the same visible credential could be entered as different code point sequences (for example a precomposed "é" and "e" followed by a combining acute accent) on different platforms and fail to open the SA. 5.2. AEAD: Sealing Encryption (AES-256-GCM-SIV) ACE-GF uses AES-256-GCM-SIV [RFC8452] to encrypt and authenticate the REV. It is used only for sealing and does not correspond to any AlgID value (Section 7.3.1). Wang Expires 6 June 2027 [Page 10] Internet-Draft ACE-GF December 2026 * *Nonce*: Sealing and unsealing use the fixed 96-bit all-zero nonce N_fixed. This is safe because each K_seal encrypts exactly one message: K_seal depends on a fresh 128-bit random salt, so two SAs share a key only if they share credential, salt, and auth_index, which happens with negligible probability when salts are generated as required. Even if a salt were reused, AES-GCM-SIV under a repeated key and nonce reveals only whether two sealed plaintexts are equal [RFC8452]. This argument depends on the one-message- per-key property of this construction; the fixed nonce MUST NOT be used to encrypt any other data or more than one plaintext under the same K_seal. * *Data Structure*: Encryption of the 32-byte REV produces a 32-byte ciphertext and a 16-byte authentication tag. * *Additional Authenticated Data (AAD)*: The AAD MUST be the first 10 bytes of the SA: Magic Number (4 bytes), Version (1 byte), ProfileID (1 byte), and auth_index (4 bytes, Big-Endian). Any modification of these fields causes authentication to fail when unsealing. 5.3. KDF2: Key Derivation (HKDF-SHA256) ACE-GF derives algorithm-specific keys from the REV with HKDF [RFC5869] using SHA-256, in the Extract-then-Expand mode: * *Extract*: The REV is the input keying material; the salt is a 32-byte all-zero string. * *Expand*: The info parameter is the context string defined in Section 7.4, and the output length is fixed by the AlgID (Section 7.3.1). Because the context string fixes algorithm, usage domain, and index, and the output length is a function of the algorithm alone, outputs for different contexts are computationally independent. A caller cannot request two lengths for the same context; HKDF outputs of different lengths under the same info would otherwise share a prefix. 6. Protocol Specification This section defines the operations of ACE-GF. All cryptographic operations MUST follow the steps described here to maintain cross- platform interoperability. Wang Expires 6 June 2027 [Page 11] Internet-Draft ACE-GF December 2026 6.1. Root Entropy Value (REV) Generation This operation generates the REV of a new identity. 6.1.1. Inputs * None. 6.1.2. Outputs * *REV*: A freshly generated Root Entropy Value. * *Error*: On failure. 6.1.3. Processing Requirements 1. The REV MUST be a 256-bit (32-byte) value. 2. The REV MUST be sampled uniformly from a cryptographically secure random number generator (CSPRNG). 3. The REV MUST NOT be stored in persistent storage in plaintext form. It MUST exist only in volatile memory during active use. Identities migrated from legacy secrets do not satisfy requirement 2; see Section 9.6. 6.1.4. Error Conditions * *EntropyUnavailable*: A suitable CSPRNG is not available or fails to produce sufficient entropy. 6.1.5. Error Handling Requirements If REV generation fails, implementations MUST return an error and MUST NOT proceed with any sealing or derivation operations. 6.2. Sealing Process (Seal) The Sealing process transforms a REV into a persistent SA using a Credential. 6.2.1. Inputs * *REV*: The Root Entropy Value to be protected. * *Credential (Cred)*: Secret material used to derive the sealing key. Wang Expires 6 June 2027 [Page 12] Internet-Draft ACE-GF December 2026 * *Sealing Profile*: Identifies the Argon2id parameters to be used. * *Authorization Index (auth_index)*: An unsigned 32-bit integer that labels the authorization epoch of this SA. The auth_index is not a secret and is managed by implementations. Its value is carried in the SA and SHOULD NOT require manual tracking by users. 6.2.2. Outputs * *Sealed Artifact (SA)*: The 74-byte artifact defined in Section 7.1. * *Error*: On failure. 6.2.3. Processing Steps 1. Generate a fresh 128-bit Salt from a CSPRNG. 2. Derive K_seal with Argon2id as specified in Section 5.1, using the normalized and encoded Credential and the 20-byte salt input Salt || auth_index. 3. Encrypt the REV with AES-256-GCM-SIV under K_seal and N_fixed, with the 10-byte AAD Magic || Version || ProfileID || auth_index (Section 5.2). 4. Construct the SA by concatenating the Magic Number, Version, ProfileID, auth_index, Salt, Ciphertext, and Authentication Tag, as specified in Section 7.1. 5. Zeroize the REV and K_seal from volatile memory. 6.2.4. Error Conditions * *InvalidREV*: The supplied REV is not 32 bytes. * *ProfileUnsupported*: The specified Sealing Profile is not supported. * *SealingFailure*: Encryption or key derivation fails. 6.2.5. Error Handling Requirements If sealing fails, implementations MUST return an error and MUST ensure that the REV and any intermediate key material are not retained in memory. Wang Expires 6 June 2027 [Page 13] Internet-Draft ACE-GF December 2026 6.3. Unsealing Process (Unseal) The Unsealing process reconstructs the REV from an SA and a Credential. 6.3.1. Inputs * *Sealed Artifact (SA)*: The artifact to be opened. * *Credential (Cred)*: Secret material required to derive the sealing key. 6.3.2. Outputs * *REV*: The reconstructed Root Entropy Value, on success. * *Error*: On failure. 6.3.3. Processing Steps 1. *Parse*: Check that the SA is exactly 74 bytes, that the Magic Number is ACE\0, and that the Version is 0x01; otherwise fail with InvalidFormat. If the ProfileID is not supported, fail with ProfileUnsupported. Extract auth_index, Salt, Ciphertext, and Authentication Tag. 2. *Derive*: Recompute K_seal as specified in Section 5.1 from the normalized and encoded Credential, the extracted Salt and auth_index, and the parameters of the ProfileID. 3. *Decrypt*: Decrypt and verify the Ciphertext and Tag with AES- 256-GCM-SIV under K_seal and N_fixed, supplying the first 10 bytes of the SA as AAD. If verification fails, fail with AuthenticationFailure. 6.3.4. Error Conditions * *InvalidFormat*: The SA has the wrong length, Magic Number, or Version. * *ProfileUnsupported*: The ProfileID is not implemented. * *AuthenticationFailure*: Tag verification fails. This covers a wrong credential as well as a modified or corrupted SA; the two cases cannot be distinguished. Wang Expires 6 June 2027 [Page 14] Internet-Draft ACE-GF December 2026 6.3.5. Error Handling Requirements If any error occurs, implementations MUST return an error and MUST NOT release any portion of the decrypted REV. Implementations SHOULD ensure that error handling does not introduce observable timing differences that could leak information about the Credential or K_seal. 6.4. Key Derivation Function (Derive) The Derive operation deterministically produces algorithm-specific key material from a reconstructed REV. 6.4.1. Inputs * *REV*: The reconstructed Root Entropy Value. * *Context Tuple (Ctx)*: The AlgID, usage Domain, and key Index (Section 7.4). 6.4.2. Outputs * *DerivedKey*: Algorithm-specific private key material. * *Error*: On failure. 6.4.3. Processing Steps 1. Check that the AlgID is listed in Section 7.3.1 and that the Domain is permitted for it (Section 7.3.2); otherwise fail with InvalidContext. 2. Compute PRK = HKDF-Extract(salt = 32 zero bytes, IKM = REV). 3. Compute OKM = HKDF-Expand(PRK, info, L), where info is the context string of Section 7.4 and L is the output length of the AlgID. 4. Map OKM to the private key of the algorithm as specified for the AlgID in Section 7.3.1. 6.4.4. Error Conditions * *InvalidContext*: The AlgID is not supported, or the Domain is not permitted for it. Wang Expires 6 June 2027 [Page 15] Internet-Draft ACE-GF December 2026 6.4.5. Error Handling Requirements On failure, implementations MUST return an error and MUST NOT release partial key material. The REV MUST remain protected in volatile memory and SHOULD be zeroized once derivation operations are complete. 7. Data Structures and Encodings 7.1. Sealed Artifact (SA) Binary Format (Version 0x01) This section defines the binary encoding of the SA for protocol version 0x01. All multi-byte integer fields MUST be encoded in Big- Endian (Network Byte Order). Implementations MUST reject any SA whose total length does not exactly match the expected length for the indicated Version. 7.1.1. SA Binary Layout (Version 0x01) +========+========+==============+========================+ | Offset | Length | Field | Description | +========+========+==============+========================+ | 0 | 4 | Magic Number | Fixed bytes: 0x41 0x43 | | | | | 0x45 0x00 ("ACE\0") | +--------+--------+--------------+------------------------+ | 4 | 1 | Version | Protocol version | | | | | (0x01) | +--------+--------+--------------+------------------------+ | 5 | 1 | ProfileID | Identifier for Sealing | | | | | Profile | +--------+--------+--------------+------------------------+ | 6 | 4 | auth_index | Authorization Index | | | | | (Unsigned 32-bit) | +--------+--------+--------------+------------------------+ | 10 | 16 | Salt | Random salt for | | | | | Argon2id | +--------+--------+--------------+------------------------+ | 26 | 32 | Ciphertext | AES-256-GCM-SIV | | | | | encrypted REV | +--------+--------+--------------+------------------------+ | 58 | 16 | Tag | Authentication Tag | +--------+--------+--------------+------------------------+ Table 2 *Total Length: 74 bytes* Wang Expires 6 June 2027 [Page 16] Internet-Draft ACE-GF December 2026 7.1.2. Field Semantics * *auth_index*: A label for the authorization epoch of the SA. It is bound into both K_seal and the AAD, so it cannot be changed without making the SA fail to open. It does not by itself invalidate SAs that carry an earlier value; see Section 9.3. 7.2. Sealing Profiles Sealing Profiles define the cost parameters for Argon2id, so that ACE-GF can be used from memory-constrained clients to servers. +============+==========+==============+============+=============+ | Profile ID | Label | Memory (MiB) | Iterations | Parallelism | | | | | (T) | (P) | +============+==========+==============+============+=============+ | 0x01 | Mobile | 64 | 3 | 1 | +------------+----------+--------------+------------+-------------+ | 0x02 | Standard | 256 | 4 | 2 | +------------+----------+--------------+------------+-------------+ | 0x03 | Paranoid | 1024 | 8 | 4 | +------------+----------+--------------+------------+-------------+ Table 3 Implementations MUST support at least the 'Standard' (0x02) profile. The 'Paranoid' profile is RECOMMENDED for high-value administrative identities. 7.3. Context Labels 7.3.1. Algorithm Identifiers (AlgID) Each AlgID names exactly one algorithm and, for algorithms with several parameter sets, exactly one parameter set, so that no derived secret is ever used with two algorithms. Each AlgID fixes the HKDF output length L and how the output is mapped to a private key. +======+=================+=======+======================+===========+ |AlgID |Algorithm |L |Mapping of OKM |Reference | | | |(bytes)| | | +======+=================+=======+======================+===========+ |0x0001|Ed25519 |32 |OKM is the 32-byte |[RFC8032] | | | | |private key | | +------+-----------------+-------+----------------------+-----------+ |0x0002|secp256k1 ECDSA |48 |d = (OKM mod (n - 1)) |[SEC2], | | | | |+ 1 |[FIPS186-5]| +------+-----------------+-------+----------------------+-----------+ Wang Expires 6 June 2027 [Page 17] Internet-Draft ACE-GF December 2026 |0x0003|X25519 |32 |OKM is the scalar, |[RFC7748] | | | | |clamped by | | | | | |decodeScalar25519 | | +------+-----------------+-------+----------------------+-----------+ |0x0004|ML-DSA-44 |32 |OKM is the seed xi of |[FIPS204] | | | | |ML-DSA.KeyGen_internal| | +------+-----------------+-------+----------------------+-----------+ |0x0005|ML-KEM-768 |64 |OKM is d (first 32 |[FIPS203] | | | | |bytes) and z (last 32 | | | | | |bytes) of ML- | | | | | |KEM.KeyGen_internal | | +------+-----------------+-------+----------------------+-----------+ |0x0006|ML-DSA-65 |32 |as 0x0004 |[FIPS204] | +------+-----------------+-------+----------------------+-----------+ |0x0007|ML-DSA-87 |32 |as 0x0004 |[FIPS204] | +------+-----------------+-------+----------------------+-----------+ |0x0008|ML-KEM-512 |64 |as 0x0005 |[FIPS203] | +------+-----------------+-------+----------------------+-----------+ |0x0009|ML-KEM-1024 |64 |as 0x0005 |[FIPS203] | +------+-----------------+-------+----------------------+-----------+ |0x000A|secp256k1 Schnorr|48 |d = (OKM mod (n - 1)) |[BIP340] | | |(BIP-340) | |+ 1 | | +------+-----------------+-------+----------------------+-----------+ |0x000B|P-256 ECDSA |48 |d = (OKM mod (n - 1)) |[FIPS186-5]| | | | |+ 1 | | +------+-----------------+-------+----------------------+-----------+ |0x000C|Ed448 |57 |OKM is the 57-byte |[RFC8032] | | | | |private key | | +------+-----------------+-------+----------------------+-----------+ |0x000D|X448 |56 |OKM is the scalar, |[RFC7748] | | | | |clamped by | | | | | |decodeScalar448 | | +------+-----------------+-------+----------------------+-----------+ |0x000E|SLH-DSA-SHA2-128s|48 |SK.seed, SK.prf, |[FIPS205] | | | | |PK.seed are bytes | | | | | |0-15, 16-31, 32-47 of | | | | | |OKM | | +------+-----------------+-------+----------------------+-----------+ Table 4 Wang Expires 6 June 2027 [Page 18] Internet-Draft ACE-GF December 2026 For the elliptic-curve signature algorithms (0x0002, 0x000A, 0x000B), n is the order of the curve's base point and OKM is interpreted as a Big-Endian integer. This is the "extra random bits" method of [FIPS186-5] (Appendix A.2.1): it always yields a valid scalar in the range 1 to n - 1, and its bias is negligible because OKM is 128 bits longer than n. secp256k1 ECDSA and BIP-340 Schnorr use the same curve but separate AlgIDs, so that one scalar is never used with both signature schemes. Other algorithms, such as other SLH-DSA parameter sets or sr25519, are added through the registry (Section 11.2). 7.3.2. Usage Domains (Domain) The 8-bit Domain field separates keys by their functional intent: * *0x01 (Signing)*: Primary identity signatures. * *0x02 (Encryption)*: Data at rest or in transit. * *0x03 (Authentication)*: Challenge-response protocols. * *0x04 (Key Wrapping)*: Protecting other keys. Domains 0x01 and 0x03 are permitted only with signature algorithms (AlgIDs 0x0001, 0x0002, 0x0004, 0x0006, 0x0007, 0x000A, 0x000B, 0x000C, 0x000E). Domains 0x02 and 0x04 are permitted only with key agreement and key encapsulation algorithms (AlgIDs 0x0003, 0x0005, 0x0008, 0x0009, 0x000D). Derive fails with InvalidContext for any other combination. 7.4. Context String Encoding The info input to HKDF-Expand is a fixed-length, 23-byte string: Wang Expires 6 June 2027 [Page 19] Internet-Draft ACE-GF December 2026 +========+========+========+======================================+ | Offset | Length | Field | Description | +========+========+========+======================================+ | 0 | 16 | Label | ASCII "ACE-GF v1 derive" | | | | | (0x4143452d474620763120646572697665) | +--------+--------+--------+--------------------------------------+ | 16 | 2 | AlgID | Algorithm Identifier (Big-Endian) | +--------+--------+--------+--------------------------------------+ | 18 | 1 | Domain | Usage Domain | +--------+--------+--------+--------------------------------------+ | 19 | 4 | Index | Key Index (unsigned 32-bit, Big- | | | | | Endian) | +--------+--------+--------+--------------------------------------+ Table 5 The Label separates ACE-GF derivations from any other use of HKDF with the same input keying material. The Index MAY be incremented to derive multiple independent keys within the same algorithm and domain. 8. Cryptographic Agility Cryptographic algorithms are retired over time, and post-quantum migration will not be the last such transition. In most systems a key is bound to one algorithm, so changing algorithms means creating a new key and a new identity, and every party that relies on the old identity has to follow the migration. ACE-GF separates the identity from the algorithms it uses, so that an identity can adopt new algorithms, including algorithms specified after the identity was created, without any change to its root. 8.1. Algorithm-Independent Identity Root The REV is a uniformly random 256-bit value. Nothing in its generation (Section 6.1) or sealing (Section 6.2) depends on the algorithms for which keys are later derived. The algorithm enters only at derivation time, through the AlgID in the context string (Section 7.4) and the output length and mapping that the AlgID fixes (Section 7.3.1). 8.2. Adding an Algorithm An algorithm is added by registering a new AlgID (Section 11.2). The registration specifies: * exactly one algorithm and parameter set; Wang Expires 6 June 2027 [Page 20] Internet-Draft ACE-GF December 2026 * the HKDF output length L, at most 8160 bytes (the HKDF-SHA256 limit of 255 times the hash length [RFC5869]); * the rule that maps the L output bytes to a private key; and * the Usage Domains permitted with it. An algorithm can be registered only if its key generation can be driven deterministically by the L output bytes, either because the algorithm defines key generation from a seed, as ML-DSA, ML-KEM, and SLH-DSA do, or because the mapping rule defines it, as Section 7.3.1 does for the elliptic-curve algorithms. All key-generation randomness MUST come from those bytes. Stateful signature schemes, such as LMS and XMSS, MUST NOT be registered. Their security depends on never reusing a one-time key, which requires persistent state; an ACE-GF identity is reconstructed from an SA and keeps no state between reconstructions, so it cannot guarantee that a one-time key is used only once. Once an AlgID is registered, every existing identity can derive keys for it by running Derive (Section 6.4) with the new AlgID. The REV is not changed, no SA is re-sealed, and keys already derived for other AlgIDs are unaffected, because their contexts are different. 8.3. Retiring an Algorithm When an algorithm is found to be weak, applications stop deriving and accepting keys for its AlgID and move to another AlgID. No change to the identity root is needed. Keys for the retired AlgID remain derivable from the REV; retiring an AlgID does not revoke keys that were already published for it. If an attack on an algorithm also exposes its private keys, the REV stays protected, because HKDF does not allow the REV or keys of other AlgIDs to be recovered from a derived key (Section 10.5). Applications MAY register keys of more than one algorithm family for an identity in advance, for example an ML-DSA key and an SLH-DSA key, so that relying parties already know the replacement key if one family weakens. Wang Expires 6 June 2027 [Page 21] Internet-Draft ACE-GF December 2026 8.4. Agility of the Sealing Layer The KDF and AEAD that protect the REV can also change. The SA carries a Version and a ProfileID (Section 7.1): new Argon2id cost parameters are registered as Sealing Profiles, and a different KDF or AEAD requires a new SA Version. An identity moves to new sealing parameters by rekeying (Section 9.2): it is unsealed under the current format and re-sealed under the new one. The REV, and therefore every derived key, stays the same. 8.5. Limits * *Security ceiling.* Every derived key is at most as strong as the REV, about 256 bits against classical attacks and about 128 bits against generic quantum search (Section 10.4). An algorithm with a higher security target gains nothing beyond that ceiling when its keys are derived through ACE-GF. * *Derivation function.* All AlgIDs share HKDF-SHA256. A weakness in HKDF or SHA-256 would affect every derived key and would require a new derivation label and protocol version, not a new AlgID. * *Root compromise.* Agility does not help if the REV itself is exposed; all keys for all AlgIDs, present and future, are then exposed. Recovery requires a new REV and therefore a new identity. 9. Operational Considerations and Identity Lifecycle This section describes operational aspects of deploying and managing Atomic Cryptographic Entities (ACEs). It focuses on lifecycle management, authorization updates, identity unreachability, and deployment considerations. ACE-GF manages the identity lifecycle without changing the REV. Authorization material may be updated or made unavailable independently, while derived identifiers remain stable as long as the REV remains reachable. 9.1. Sealed Artifact Persistence and Mobility The SA is a persistent, encrypted artifact. Possession of an SA alone does not enable identity reconstruction without a Credential that opens it. Wang Expires 6 June 2027 [Page 22] Internet-Draft ACE-GF December 2026 The SA reveals no information about the REV beyond what an attacker can learn by guessing the credential: anyone holding an SA can test candidate credentials offline, at the cost of one Argon2id evaluation per guess. An SA MAY therefore be stored on untrusted storage, such as public cloud storage or content-addressable systems, only when the credential has enough entropy to withstand offline guessing (Section 10.1). The fixed Magic Number makes SAs recognizable as such. Loss of all copies of the SA renders the identity cryptographically unreachable. Applications SHOULD treat the SA as durable authorization metadata and apply backup and redundancy strategies appropriate to their threat model. 9.2. Stateless Credential Rotation ACE-GF supports credential rotation: an entity can change its Credential (e.g., a password or authorization factor) without changing the REV. All derived public keys, addresses, and identifiers stay the same. The rotation process is performed as follows: 1. *Unseal*: Use the current Credential and the existing SA to reconstruct the REV in volatile memory. 2. *Re-Seal*: Perform the Sealing Process (Section 6.2) with the new Credential, which generates a new salt, while keeping the same REV. 3. *Commit*: Replace the previous SA with the new SA. Rotation does not invalidate the previous SA. Any copy of it remains openable with the previous credential and yields the same REV. Rotation therefore protects against future use of the old credential only to the extent that every copy of the old SA is destroyed. An entity whose old credential or old SA may have been exposed must treat the REV itself as compromised. 9.3. Authorization Epochs and Revocation The auth_index labels successive authorization states of an identity. An implementation that re-seals a REV can increment it, so that artifacts of different epochs are distinguishable and the epoch cannot be altered without detection. Wang Expires 6 June 2027 [Page 23] Internet-Draft ACE-GF December 2026 The auth_index is stored in the SA itself, and ACE-GF keeps no other record of which epoch is current. Re-sealing under a new auth_index therefore does not make an SA of an earlier epoch undecryptable: that SA, together with the credential it was sealed under, still yields the REV. Without changing the REV, ACE-GF cannot revoke a party that already holds an SA and a credential that opens it. Access to an identity can be withdrawn only by one of the following means: * *Destruction*: Every copy of the SAs that the party can open is destroyed. * *Removal of a held authorization component*: The deployment derives the Credential from several components, one of which is held by a party that enforces policy, such as a server-held secret. That party can stop supplying its component. How such components are combined into the Credential is defined by an application profile. * *Identity replacement*: A new REV is generated and the identity's public keys are replaced. This changes the identifiers. Policies governing epoch management, distribution of updated SAs, recovery procedures, and governance models are application-specific and out of scope. 9.3.1. Synchronization Across Devices In multi-device or multi-instance deployments, applications are responsible for distributing the most recent SA to all authorized endpoints and for replacing stale artifacts when authorization updates occur. ACE-GF does not require global state synchronization and does not define mechanisms for resolving concurrent authorization updates. 9.4. Failure Modes and Recovery Considerations Failure to reconstruct the REV may occur due to incorrect credentials, corrupted SAs, or unsupported sealing profiles. Implementations SHOULD make all unsealing failures indistinguishable to an external observer and MUST NOT leak partial information about the REV or derived keys in failure scenarios. Recovery is possible only if an SA and a credential that opens it remain available. Wang Expires 6 June 2027 [Page 24] Internet-Draft ACE-GF December 2026 9.5. Storage and Ephemeral State Considerations The REV is intended to exist only in volatile memory during active operations and MUST NOT be persistently stored in plaintext. The SA is the only persistent representation required to reconstruct an ACE identity. It MAY be stored, transmitted, or backed up using conventional storage mechanisms, subject to application-specific security policies and to the conditions above. Implementations SHOULD ensure timely zeroization of all sensitive material, including the REV, sealing keys, and intermediate buffers, after use. Where available, hardware-backed isolation mechanisms such as Trusted Execution Environments (TEEs) are RECOMMENDED to reduce exposure risk during reconstruction and derivation operations. 9.6. Migration Considerations Existing identities MAY be migrated into ACE-GF by deriving a 32-byte REV from a legacy secret, such as a private key or a legacy mnemonic, and sealing it with the standard procedures. A migrated REV is not sampled from a CSPRNG as Section 6.1 requires, and its security is bounded by the entropy of the legacy secret; a 12-word BIP-39 mnemonic, for example, carries 128 bits. How a legacy secret is mapped to a REV is profile-dependent. Profiles that support migration MUST specify that mapping, and implementations SHOULD distinguish natively generated identities from migrated ones where relevant. 10. Security Considerations The security of ACE-GF depends on the strength of the underlying cryptographic primitives, the entropy of credentials, and the protection of the execution environment. 10.1. Entropy Requirements for Credentials Anyone holding an SA can mount an offline guessing attack on the credential. The security of an SA is therefore bounded by the entropy of its Credential, multiplied by the cost of one Argon2id evaluation. 1. *Human-provided credentials* SHOULD be long, randomly generated passphrases managed by password managers. Wang Expires 6 June 2027 [Page 25] Internet-Draft ACE-GF December 2026 2. *Machine-generated credentials*, including those of Autonomous Digital Entities (ADEs), MUST be generated using a CSPRNG and MUST provide at least 128 bits of entropy. 3. *Limits of stretching*: Argon2id raises the cost of each guess but cannot compensate for weak secrets such as short or common passwords. 10.2. Protection of Volatile Memory and Memory Management Because the REV is the root of all derived keys, an attacker who can observe the memory of an active ACE-GF implementation can compromise the entire identity. 10.2.1. Isolated Execution Environments (IEE) Implementations SHOULD perform the Unsealing (Section 6.3) and Derivation (Section 6.4) operations within an Isolated Execution Environment (IEE). An IEE is a platform-provided security boundary that provides: * *Memory Confidentiality*: Sensitive material, including the REV, Credentials, and K_seal, is not observable by the host operating system, hypervisor, or other unauthorized processes. * *Execution Integrity*: The cryptographic logic of ACE-GF is protected from unauthorized modification during runtime. * *Isolation*: Secrets within the IEE remain protected even if the host operating system is compromised. Examples of such environments include, but are not limited to: * *Hardware Enclaves*: Intel SGX, RISC-V Keystone. * *Trust Zones*: ARM TrustZone. * *Virtualization-based Security*: AWS Nitro Enclaves, Azure Confidential Computing (SNP/TDX). 10.2.2. Memory Hardening and Zeroization When a hardware-isolated IEE is unavailable, or as an additional measure within an IEE, implementations MUST adhere to the following memory management principles to mitigate cold boot attacks and memory forensics: Wang Expires 6 June 2027 [Page 26] Internet-Draft ACE-GF December 2026 1. *Zeroization*: All volatile memory buffers containing the REV, K_seal, or raw Credentials MUST be overwritten with zeros immediately after an operation concludes. Implementations MUST use platform-specific mechanisms (e.g., memset_s in C, the Zeroize trait in Rust) to ensure that compilers do not optimize away these routines. 2. *Anti-Swapping*: Memory regions used for sensitive material SHOULD be marked as non-swappable (e.g., using mlock() on POSIX or VirtualLock() on Windows), to prevent secrets from being leaked via swap files, core dumps, or hibernation images. 3. *Side-Channel Mitigation*: Implementations MUST use constant-time implementations of the cryptographic primitives for all operations on K_seal and the REV. 4. *Process Isolation*: ACE-GF operations SHOULD be executed in a dedicated process with minimal privileges to reduce the attack surface from other resident applications. 10.3. Resistance to Brute-Force Attacks Each credential guess against an SA costs one Argon2id evaluation with the parameters of the SA's profile. Memory hardness limits how many guesses an attacker can run in parallel on a given amount of memory. +==========+==========================+==================+========+ | Profile | Intended clients | Memory per guess | Passes | +==========+==========================+==================+========+ | Mobile | Phones and other memory- | 64 MiB | 3 | | | constrained clients | | | +----------+--------------------------+------------------+--------+ | Standard | Desktop and server | 256 MiB | 4 | | | clients | | | +----------+--------------------------+------------------+--------+ | Paranoid | Servers with ample | 1 GiB | 8 | | | memory | | | +----------+--------------------------+------------------+--------+ Table 6 The Mobile profile trades guessing cost for usability on constrained clients; it SHOULD be combined with high-entropy credentials. No profile protects a low-entropy credential against a determined attacker. Wang Expires 6 June 2027 [Page 27] Internet-Draft ACE-GF December 2026 10.4. Post-Quantum Transition and Hybrid Security 1. *Context-Isolated PQC*: The framework derives post-quantum keys (ML-DSA, ML-KEM, SLH-DSA) alongside classical keys from the same REV, with separate contexts (Section 7.3.1). Algorithms specified later can be added without changing the REV (Section 8). 2. *Hybrid Authorization*: During the transition period, applications MAY require both a classical signature and a post- quantum signature to authorize a single action. 3. *REV Margin*: The 256-bit REV provides about 128 bits of security against generic quantum search [Grover1996]. 4. *Sealing*: AES-256 retains about 128 bits of security against generic quantum search. The SA's resistance to guessing remains bounded by the credential's entropy, which quantum search reduces further; high-entropy credentials are therefore more important for SAs expected to be stored long-term. 10.5. Cryptographic Isolation of Derived Keys Derived keys are independent as long as HKDF-SHA256 behaves as a pseudorandom function. Exposure of one derived private key does not reveal the REV or other derived keys. Exposure of the REV reveals all derived keys; it is equivalent to exposure of a master seed in schemes such as [BIP32]. 11. IANA Considerations This document requests IANA to create three registries under a new registry group "Atomic Cryptographic Entity Generative Framework (ACE-GF)". Because this document is published on the Independent Submissions Stream, the registries use the "First Come First Served" policy [RFC8126], which does not require designated experts appointed by the IESG [RFC8726]. Each registration MUST include a reference to a stable, publicly available specification of the requested entry. 11.1. ACE-GF Sealing Profile Registry This registry manages the parameter sets for Argon2id. Each entry contains a Profile ID (one byte), a label, the memory size in MiB, the number of passes, the degree of parallelism, and a reference. Wang Expires 6 June 2027 [Page 28] Internet-Draft ACE-GF December 2026 +==========+============+======+============+=============+=========+ |Profile | Label |Memory| Iterations | Parallelism |Reference| |ID | |(MiB) | (T) | (P) | | +==========+============+======+============+=============+=========+ |0x00 | Reserved | | | |RFC XXXX | +----------+------------+------+------------+-------------+---------+ |0x01 | Mobile |64 | 3 | 1 |RFC XXXX | +----------+------------+------+------------+-------------+---------+ |0x02 | Standard |256 | 4 | 2 |RFC XXXX | +----------+------------+------+------------+-------------+---------+ |0x03 | Paranoid |1024 | 8 | 4 |RFC XXXX | +----------+------------+------+------------+-------------+---------+ |0x04-0xFF | Unassigned | | | | | +----------+------------+------+------------+-------------+---------+ Table 7 11.2. ACE-GF Algorithm Identifier Registry This registry manages the 16-bit AlgID values used in the derivation context. Each entry contains the AlgID, the algorithm and parameter set, the HKDF output length, the mapping of the output to a private key, the Usage Domains permitted with it, and a reference. An entry MUST name exactly one algorithm and parameter set and MUST meet the requirements of Section 8. The initial contents are the entries of Section 7.3.1 with reference RFC XXXX; 0x0000 is Reserved, and 0x000F-0xFFFF are Unassigned. 11.3. ACE-GF Usage Domain Registry This registry manages the 8-bit Domain field. Wang Expires 6 June 2027 [Page 29] Internet-Draft ACE-GF December 2026 +===========+================+===========+ | Domain ID | Description | Reference | +===========+================+===========+ | 0x00 | Reserved | RFC XXXX | +-----------+----------------+-----------+ | 0x01 | Signing | RFC XXXX | +-----------+----------------+-----------+ | 0x02 | Encryption | RFC XXXX | +-----------+----------------+-----------+ | 0x03 | Authentication | RFC XXXX | +-----------+----------------+-----------+ | 0x04 | Key Wrapping | RFC XXXX | +-----------+----------------+-----------+ | 0x05-0xFF | Unassigned | | +-----------+----------------+-----------+ Table 8 RFC Editor: please replace RFC XXXX with the number of this document. 12. Test Vectors The following vectors are normative: every value, including K_seal, ciphertext, tag, and derived output, is fully determined by the inputs, and a conforming implementation MUST reproduce them exactly. They were computed with the program in Appendix B. Hexadecimal strings are split across lines for readability. 12.1. Sealing with the Standard Profile Wang Expires 6 June 2027 [Page 30] Internet-Draft ACE-GF December 2026 Credential "password123" ProfileID 0x02 (Standard: m = 262144 KiB, t = 4, p = 2) auth_index 1 Salt 0102030405060708090a0b0c0d0e0f10 REV f0e1d2c3b4a5968778695a4b3c2d1e0f 00112233445566778899aabbccddeeff K_seal 8b629453a809ca868e283f377b73ae05 7437bdfeb391c3877a58795063eba02e SA (74 bytes): Magic 41434500 Version 01 ProfileID 02 auth_index 00000001 Salt 0102030405060708090a0b0c0d0e0f10 Ciphertext 2e0c00adf3e1072722810983a8023f51 ca14ec9b534439808f5a2dcc37eef085 Tag 22b0f34412f52535b72bb1559f602b22 Unsealing this SA with the same Credential MUST return the REV above. 12.2. Sealing a Non-ASCII Credential with the Mobile Profile Credential "密码123" (NFKC, UTF-8: e5af86e7a081313233) ProfileID 0x01 (Mobile: m = 65536 KiB, t = 3, p = 1) auth_index 0 Salt f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff REV 000102030405060708090a0b0c0d0e0f 101112131415161718191a1b1c1d1e1f K_seal bdeddd95ca75ce11487bda266903074e 4c24886449d11a8d5b4061dfa7246d2d SA (74 bytes): Magic 41434500 Version 01 ProfileID 01 auth_index 00000000 Salt f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff Ciphertext 5dc59b61d5913ce21217872d96c85dd0 3bd73d1e06006d3d6d8a73683f3692eb Tag 0cc855fdc1a0645742caadc28bbeae30 Wang Expires 6 June 2027 [Page 31] Internet-Draft ACE-GF December 2026 12.3. Credential Normalization The credential "Café" entered in decomposed form (UTF-8 43616665cc81, "e" followed by U+0301) and in precomposed form (UTF-8 436166c3a9) MUST both normalize to 436166c3a9 and yield the same K_seal: ProfileID 0x01 auth_index 0 Salt 000102030405060708090a0b0c0d0e0f K_seal 7624b2f0ae76df42aacc1bd25a68088b 119694acc3fc096e7b94b8d23f4dad55 12.4. Key Derivation from a Single REV All cases use the same REV and Index 0 unless stated otherwise. The context string begins with the 16-byte label 4143452d474620763120 646572697665 ("ACE-GF v1 derive"); only its last 7 bytes are shown. REV 603deb1015ca71be2b73aef0857d7781 1f352c073b6108d72d9810a30914dff4 Ed25519, Domain 0x01 (info tail 00010100000000) OKM 9e8c2ae52daf1a8402383b3e32f55d08 41646618f5d7e441d5ee9b1701e47364 Ed25519, Domain 0x01, Index 1 (info tail 00010100000001) OKM 51017116b5f9ed9f2152880767b11e69 787b7b25cb8c327265edc2a6a4ad6f80 secp256k1 ECDSA, Domain 0x01 (info tail 00020100000000) OKM f1e12ad2237f5b6f8013e5a4bdea7b72 a831973470cbb40c38045a83147c514c f96c5a41b555f5130eb66c624997ba63 d db911bf97875279fd810a8404344a000 6fa72391521e771caa79de52cb5eaaa4 X25519, Domain 0x02 (info tail 00030200000000) OKM f600e9f7e550f821dbfd1b4e4c9d1294 9af6f695a72188e53f0bb85de6c37c0c clamped scalar f000e9f7e550f821dbfd1b4e4c9d1294 9af6f695a72188e53f0bb85de6c37c4c ML-DSA-44, Domain 0x01 (info tail 00040100000000) xi 26f7c1b38d357d58478d71240f40bd93 e44869cf7cb0116f0400b978d257d26c ML-KEM-768, Domain 0x02 (info tail 00050200000000) Wang Expires 6 June 2027 [Page 32] Internet-Draft ACE-GF December 2026 d c7bf4cfa1519a69ce1884250deeacf26 c6ea448c6f60ad2ca5ebdaf510cfd322 z 7bc58afe267e1e675fb373e0ceb2b699 490fd58c38f31393f048a271e3543f4a secp256k1 Schnorr (BIP-340), Domain 0x01 (info tail 000a0100000000) OKM 9b2708c0eeadd34fdb30807e0da6cc59 06d1d0bd58bbfc84553e4827b895d960 c2b2ced6ca8c07abd55aaf01140c34ad d cbfb8b79bab7bfef9f2d69ded3c61614 e12ad7b0b1045cac74a9b822e5b0856e P-256 ECDSA, Domain 0x01 (info tail 000b0100000000) OKM 3e5d8802c909cb1ce796746f2417e47f 29836041e251d58a346f8aeddac4a6d0 8b3ad0e3634ec7feb02a4246243e533f d 568c84a80b832bd8b93b3033d8cd3fa9 d552a96c10a8dc34bcd07deb2dea12d0 12.5. Interoperability Verification Guidance An implementation claiming conformance to this specification SHOULD: 1. Reproduce the SAs of Section 12.1 and Section 12.2 byte for byte, and recover the REV by unsealing them. 2. Reproduce the normalized credential and K_seal of Section 12.3 from both input forms. 3. Reproduce the derived values of Section 12.4 for every AlgID it supports. Implementations of an application profile verify that profile against the vectors of the profile's own specification. 13. References 13.1. Normative References [RFC3629] Yergeau, F., "UTF-8, a transformation format of ISO 10646", STD 63, RFC 3629, DOI 10.17487/RFC3629, November 2003, . [RFC5869] Krawczyk, H. and P. Eronen, "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)", RFC 5869, DOI 10.17487/RFC5869, May 2010, . Wang Expires 6 June 2027 [Page 33] Internet-Draft ACE-GF December 2026 [RFC7748] Langley, A., Hamburg, M., and S. Turner, "Elliptic Curves for Security", RFC 7748, DOI 10.17487/RFC7748, January 2016, . [RFC8032] Josefsson, S. and I. Liusvaara, "Edwards-Curve Digital Signature Algorithm (EdDSA)", RFC 8032, DOI 10.17487/RFC8032, January 2017, . [RFC8452] Gueron, S., Langley, A., and Y. Lindell, "AES-GCM-SIV: Nonce Misuse-Resistant Authenticated Encryption", RFC 8452, DOI 10.17487/RFC8452, April 2019, . [RFC9106] Biryukov, A., Dinu, D., Khovratovich, D., and S. Josefsson, "Argon2 Memory-Hard Function for Password Hashing and Proof-of-Work Applications", RFC 9106, DOI 10.17487/RFC9106, September 2021, . [FIPS186-5] National Institute of Standards and Technology, "Digital Signature Standard (DSS)", FIPS PUB 186-5, February 2023, . [FIPS203] National Institute of Standards and Technology, "Module- Lattice-Based Key-Encapsulation Mechanism Standard", FIPS PUB 203, August 2024, . [FIPS204] National Institute of Standards and Technology, "Module- Lattice-Based Digital Signature Standard", FIPS PUB 204, August 2024, . [FIPS205] National Institute of Standards and Technology, "Stateless Hash-Based Digital Signature Standard", FIPS PUB 205, August 2024, . [SEC2] Certicom Research, "SEC 2: Recommended Elliptic Curve Domain Parameters", Standards for Efficient Cryptography Version 2.0, January 2010, . [BIP340] Wuille, P., Nick, J., and T. Ruffing, "Schnorr Signatures for secp256k1", January 2020, . Wang Expires 6 June 2027 [Page 34] Internet-Draft ACE-GF December 2026 [UAX15] The Unicode Consortium, "Unicode Normalization Forms", Unicode Standard Annex #15, n.d., . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . 13.2. Informative References [RFC8126] Cotton, M., Leiba, B., and T. Narten, "Guidelines for Writing an IANA Considerations Section in RFCs", BCP 26, RFC 8126, DOI 10.17487/RFC8126, June 2017, . [RFC8726] Farrel, A., "How Requests for IANA Action Will Be Handled on the Independent Stream", RFC 8726, DOI 10.17487/RFC8726, November 2020, . [BIP32] Wuille, P., "Hierarchical Deterministic Wallets", February 2012, . [BIP39] Palatinus, M., Rusnak, P., Voisine, A., and S. Bowe, "Mnemonic code for generating deterministic keys", September 2013, . [DID-Core] W3C, "Decentralized Identifiers (DIDs) v1.0", July 2022, . [NIST-SP800-108] Chen, L., "Recommendation for Key Derivation Using Pseudorandom Functions", NIST Special Publication 800-108r1, August 2022, . Wang Expires 6 June 2027 [Page 35] Internet-Draft ACE-GF December 2026 [Grover1996] Grover, L. K., "A Fast Quantum Mechanical Algorithm for Database Search", Proceedings of the 28th Annual ACM Symposium on Theory of Computing pp. 212-219, 1996, . Appendix A. Implementation Considerations for Resource-Constrained Devices For IoT devices with limited RAM that cannot support the 'Standard' Argon2id profile (256 MiB), the following approaches are RECOMMENDED: 1. *Offloading Sealing*: The Sealing process can be performed on a provisioning terminal. The device only needs to store the resulting SA. 2. *Hardware-Bound Credential Component*: If the device features a Secure Element (SE) or TEE, a device-bound secret held there SHOULD be one component of the Credential, so that an SA copied off the device cannot be opened elsewhere even if the user- supplied part is weak. How the components are combined is defined by an application profile. Appendix B. Reference Program The following Python program implements Seal, Unseal, and Derive as specified in this document and computes the values of Section 12. It requires the Python cryptography package (version 44 or later, which provides Argon2id). It omits memory zeroization and other protections required by Section 10 and is not suitable for production use. import struct import unicodedata from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.ciphers.aead import ( AESGCMSIV) from cryptography.hazmat.primitives.kdf.argon2 import Argon2id from cryptography.hazmat.primitives.kdf.hkdf import HKDF MAGIC = b"ACE\x00" VERSION = 0x01 N_FIXED = b"\x00" * 12 PROFILES = {0x01: (64, 3, 1), 0x02: (256, 4, 2), 0x03: (1024, 8, 4)} LABEL = b"ACE-GF v1 derive" OUT_LEN = {0x0001: 32, 0x0002: 48, 0x0003: 32, 0x0004: 32, Wang Expires 6 June 2027 [Page 36] Internet-Draft ACE-GF December 2026 0x0005: 64, 0x0006: 32, 0x0007: 32, 0x0008: 64, 0x0009: 64, 0x000A: 48, 0x000B: 48, 0x000C: 57, 0x000D: 56, 0x000E: 48} N_SECP256K1 = int("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE" "BAAEDCE6AF48A03BBFD25E8CD0364141", 16) N_P256 = int("FFFFFFFF00000000FFFFFFFFFFFFFFFF" "BCE6FAADA7179E84F3B9CAC2FC632551", 16) def encode_credential(cred: str) -> bytes: return unicodedata.normalize("NFKC", cred).encode("utf-8") def k_seal(cred, salt16, auth_index, profile_id): m_mib, t, p = PROFILES[profile_id] kdf = Argon2id(salt=salt16 + struct.pack(">I", auth_index), length=32, iterations=t, lanes=p, memory_cost=m_mib * 1024) return kdf.derive(encode_credential(cred)) def seal(rev, cred, salt16, auth_index, profile_id): assert len(rev) == 32 and len(salt16) == 16 header = MAGIC + struct.pack(">BBI", VERSION, profile_id, auth_index) key = k_seal(cred, salt16, auth_index, profile_id) sealed = AESGCMSIV(key).encrypt(N_FIXED, rev, header) return header + salt16 + sealed # ciphertext || tag def unseal(sa, cred): if len(sa) != 74 or sa[:4] != MAGIC or sa[4] != VERSION: raise ValueError("InvalidFormat") if sa[5] not in PROFILES: raise ValueError("ProfileUnsupported") (auth_index,) = struct.unpack(">I", sa[6:10]) key = k_seal(cred, sa[10:26], auth_index, sa[5]) return AESGCMSIV(key).decrypt(N_FIXED, sa[26:], sa[:10]) def derive(rev, alg_id, domain, index): info = LABEL + struct.pack(">HBI", alg_id, domain, index) hkdf = HKDF(algorithm=hashes.SHA256(), length=OUT_LEN[alg_id], salt=b"\x00" * 32, info=info) return hkdf.derive(rev) Wang Expires 6 June 2027 [Page 37] Internet-Draft ACE-GF December 2026 def ec_scalar(okm48, n): # FIPS 186-5 A.2.1: d = (c mod (n - 1)) + 1 return int.from_bytes(okm48, "big") % (n - 1) + 1 def x25519_clamp(okm32): k = bytearray(okm32) k[0] &= 248 k[31] &= 127 k[31] |= 64 return bytes(k) The Domain check of Section 7.3.2 is omitted from derive for brevity. Appendix C. Example Use Cases (Informational) This appendix provides illustrative, non-normative examples of how ACE-GF may be applied. C.1. Autonomous Digital Entities (ADEs) Autonomous Digital Entities such as AI agents may require a stable cryptographic identity that can be deterministically reconstructed across restarts without persistent plaintext secret storage. In such deployments: * The SA may be stored in local or remote storage. * Credentials may be supplied at runtime by a controller or policy engine. * Derived keys may be used for signing, authentication, or secure communication between agents. C.2. IoT and Embedded Devices IoT devices often operate under memory and storage constraints and may lack secure persistent storage for long-lived secrets. ACE-GF allows: * Off-device provisioning of SAs. * On-device reconstruction of identity only when required. * Integration with Secure Elements or TEEs where available. Wang Expires 6 June 2027 [Page 38] Internet-Draft ACE-GF December 2026 C.3. Blockchain and Cryptographic Wallet Identities Cryptographic wallets may use ACE-GF to derive keys for several algorithms (e.g., Ed25519, secp256k1, ML-DSA) from a single REV. Credential rotation changes the password protecting a wallet without changing its public addresses. Destroying every copy of the SA makes the wallet's keys unrecoverable; it does not revoke a party that already holds a copy of the SA and its credential (Section 9.3). Appendix D. Security Boundaries and Trust Assumptions (Informational) This appendix summarizes the security boundaries and trust assumptions of ACE-GF. It complements Section 10. D.1. Trust Boundaries ACE-GF assumes a clear separation between: * Authorization inputs (Credentials, salts, policy-controlled inputs) * Identity material (REV and derived keys) * Persistent storage (SAs) Compromise of persistent storage alone does not reveal the REV or derived keys, but it enables offline guessing of the credential. D.2. Authorization Boundary Credentials are assumed to be protected by the application or deployment environment. Weak credentials reduce the effective security of an SA to the cost of guessing them. D.3. Execution Environment Assumptions During unsealing and derivation, the execution environment is assumed to provide basic process isolation. Where stronger guarantees are required, hardware-backed isolation (e.g., TEEs) is RECOMMENDED. D.4. Non-Goals ACE-GF does not attempt to: * Protect against fully compromised execution environments. Wang Expires 6 June 2027 [Page 39] Internet-Draft ACE-GF December 2026 * Revoke a party that holds an SA and a credential that opens it, without changing the REV. * Provide anonymity or unlinkability guarantees. * Replace application-level access control or policy enforcement. Author's Address Jian Sheng Wang ACE Labs Email: jason@acechain.io Wang Expires 6 June 2027 [Page 40]