| Internet-Draft | ACE-GF | December 2026 |
| Wang | Expires 6 June 2027 | [Page] |
- Workgroup:
- Network Working Group
- Internet-Draft:
- draft-wang-acegf-protocol-01
- Published:
- Intended Status:
- Informational
- Expires:
ACE-GF: A Generative Framework for Atomic Cryptographic Entities
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/hayekw/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/.¶
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.¶
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.¶
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].¶
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:¶
- 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.¶
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.¶
3.3.1. Operational States
| State | Description | Persistence |
|---|---|---|
| Sealed | The REV is encrypted within an SA. | Persistent (Disk/Storage) |
| Reconstructed | The REV is unsealed and resides in volatile memory. | Ephemeral (RAM only) |
| Zeroized | Sensitive material has been wiped. Identity is dormant. | N/A |
| Unreachable | Every SA copy is destroyed, or every credential that opens one is lost. | Permanent |
3.3.2. Lifecycle Sequence
-
Generate: A 256-bit REV is sampled from a CSPRNG.¶
-
Seal: The REV is encrypted with a key derived from a Credential and Salt, producing an SA. The plaintext REV is then zeroized.¶
-
Unseal: When an operation is required, the user provides the Credential to decrypt the SA, restoring the REV to RAM.¶
-
Derive: The REV is used to generate keys for specific contexts (e.g., Ed25519, ML-DSA).¶
-
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 8.2).¶
-
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.¶
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).¶
-
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
infoparameter 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.¶
6.1. Root Entropy Value (REV) Generation
This operation generates the REV of a new identity.¶
6.1.3. Processing Requirements
-
The REV MUST be a 256-bit (32-byte) value.¶
-
The REV MUST be sampled uniformly from a cryptographically secure random number generator (CSPRNG).¶
-
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 8.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.¶
-
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
-
Generate a fresh 128-bit Salt from a CSPRNG.¶
-
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.¶ -
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).¶ -
Construct the SA by concatenating the Magic Number, Version, ProfileID,
auth_index, Salt, Ciphertext, and Authentication Tag, as specified in Section 7.1.¶ -
Zeroize the REV and K_seal from volatile memory.¶
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.¶
6.3. Unsealing Process (Unseal)
The Unsealing process reconstructs the REV from an SA and a Credential.¶
6.3.3. Processing Steps
-
Parse: Check that the SA is exactly 74 bytes, that the Magic Number is
ACE\0, and that the Version is 0x01; otherwise fail withInvalidFormat. If the ProfileID is not supported, fail withProfileUnsupported. Extractauth_index, Salt, Ciphertext, and Authentication Tag.¶ -
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.¶ -
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.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.3. Processing Steps
-
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.¶ -
Compute PRK = HKDF-Extract(salt = 32 zero bytes, IKM = REV).¶
-
Compute OKM = HKDF-Expand(PRK, info, L), where
infois the context string of Section 7.4 and L is the output length of the AlgID.¶ -
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.¶
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 |
Total Length: 74 bytes¶
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 8.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 (T) | Parallelism (P) |
|---|---|---|---|---|
| 0x01 | Mobile | 64 | 3 | 1 |
| 0x02 | Standard | 256 | 4 | 2 |
| 0x03 | Paranoid | 1024 | 8 | 4 |
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 (bytes) | Mapping of OKM | Reference |
|---|---|---|---|---|
| 0x0001 | Ed25519 | 32 | OKM is the 32-byte private key | [RFC8032] |
| 0x0002 | secp256k1 ECDSA | 48 | d = (OKM mod (n - 1)) + 1 | [SEC2], [FIPS186-5] |
| 0x0003 | X25519 | 32 | OKM is the scalar, clamped by decodeScalar25519 | [RFC7748] |
| 0x0004 | ML-DSA-44 | 32 | OKM is the seed xi of ML-DSA.KeyGen_internal | [FIPS204] |
| 0x0005 | ML-KEM-768 | 64 | OKM is d (first 32 bytes) and z (last 32 bytes) of ML-KEM.KeyGen_internal | [FIPS203] |
| 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 (BIP-340) | 48 | d = (OKM mod (n - 1)) + 1 | [BIP340] |
| 0x000B | P-256 ECDSA | 48 | d = (OKM mod (n - 1)) + 1 | [FIPS186-5] |
| 0x000C | Ed448 | 57 | OKM is the 57-byte private key | [RFC8032] |
| 0x000D | X448 | 56 | OKM is the scalar, clamped by decodeScalar448 | [RFC7748] |
| 0x000E | SLH-DSA-SHA2-128s | 48 | SK.seed, SK.prf, PK.seed are bytes 0-15, 16-31, 32-47 of OKM | [FIPS205] |
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 10.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:¶
| 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) |
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. 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.¶
8.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.¶
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 9.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.¶
8.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:¶
-
Unseal: Use the current Credential and the existing SA to reconstruct the REV in volatile memory.¶
-
Re-Seal: Perform the Sealing Process (Section 6.2) with the new Credential, which generates a new salt, while keeping the same REV.¶
-
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.¶
8.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.¶
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.¶
8.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.¶
8.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.¶
8.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.¶
8.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.¶
9. 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.¶
9.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.¶
-
Human-provided credentials SHOULD be long, randomly generated passphrases managed by password managers.¶
-
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.¶
-
Limits of stretching: Argon2id raises the cost of each guess but cannot compensate for weak secrets such as short or common passwords.¶
9.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.¶
9.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:¶
9.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:¶
-
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_sin C, theZeroizetrait in Rust) to ensure that compilers do not optimize away these routines.¶ -
Anti-Swapping: Memory regions used for sensitive material SHOULD be marked as non-swappable (e.g., using
mlock()on POSIX orVirtualLock()on Windows), to prevent secrets from being leaked via swap files, core dumps, or hibernation images.¶ -
Side-Channel Mitigation: Implementations MUST use constant-time implementations of the cryptographic primitives for all operations on K_seal and the REV.¶
-
Process Isolation: ACE-GF operations SHOULD be executed in a dedicated process with minimal privileges to reduce the attack surface from other resident applications.¶
9.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-constrained clients | 64 MiB | 3 |
| Standard | Desktop and server clients | 256 MiB | 4 |
| Paranoid | Servers with ample memory | 1 GiB | 8 |
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.¶
9.4. Post-Quantum Transition and Hybrid Security
-
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).¶
-
Hybrid Authorization: During the transition period, applications MAY require both a classical signature and a post-quantum signature to authorize a single action.¶
-
REV Margin: The 256-bit REV provides about 128 bits of security against generic quantum search [Grover1996].¶
-
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.¶
9.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].¶
10. 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.¶
10.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.¶
| Profile ID | Label | Memory (MiB) | Iterations (T) | Parallelism (P) | Reference |
|---|---|---|---|---|---|
| 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 |
10.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.¶
The initial contents are the entries of Section 7.3.1 with reference RFC XXXX; 0x0000 is Reserved, and 0x000F-0xFFFF are Unassigned.¶
10.3. ACE-GF Usage Domain Registry
This registry manages the 8-bit Domain field.¶
| 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 |
RFC Editor: please replace RFC XXXX with the number of this document.¶
11. 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.¶
11.1. Sealing with the Standard Profile
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.¶
11.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
¶
11.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
¶
11.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)
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
¶
11.5. Interoperability Verification Guidance
An implementation claiming conformance to this specification SHOULD:¶
-
Reproduce the SAs of Section 11.1 and Section 11.2 byte for byte, and recover the REV by unsealing them.¶
-
Reproduce the normalized credential and K_seal of Section 11.3 from both input forms.¶
-
Reproduce the derived values of Section 11.4 for every AlgID it supports.¶
Implementations of an application profile verify that profile against the vectors of the profile's own specification.¶
12. References
12.1. Normative References
- [RFC3629]
- Yergeau, F., "UTF-8, a transformation format of ISO 10646", STD 63, RFC 3629, DOI 10.17487/RFC3629, , <https://www.rfc-editor.org/info/rfc3629>.
- [RFC5869]
- Krawczyk, H. and P. Eronen, "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)", RFC 5869, DOI 10.17487/RFC5869, , <https://www.rfc-editor.org/info/rfc5869>.
- [RFC7748]
- Langley, A., Hamburg, M., and S. Turner, "Elliptic Curves for Security", RFC 7748, DOI 10.17487/RFC7748, , <https://www.rfc-editor.org/info/rfc7748>.
- [RFC8032]
- Josefsson, S. and I. Liusvaara, "Edwards-Curve Digital Signature Algorithm (EdDSA)", RFC 8032, DOI 10.17487/RFC8032, , <https://www.rfc-editor.org/info/rfc8032>.
- [RFC8452]
- Gueron, S., Langley, A., and Y. Lindell, "AES-GCM-SIV: Nonce Misuse-Resistant Authenticated Encryption", RFC 8452, DOI 10.17487/RFC8452, , <https://www.rfc-editor.org/info/rfc8452>.
- [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, , <https://www.rfc-editor.org/info/rfc9106>.
- [FIPS186-5]
- National Institute of Standards and Technology, "Digital Signature Standard (DSS)", FIPS PUB 186-5, , <https://doi.org/10.6028/NIST.FIPS.186-5>.
- [FIPS203]
- National Institute of Standards and Technology, "Module-Lattice-Based Key-Encapsulation Mechanism Standard", FIPS PUB 203, , <https://doi.org/10.6028/NIST.FIPS.203>.
- [FIPS204]
- National Institute of Standards and Technology, "Module-Lattice-Based Digital Signature Standard", FIPS PUB 204, , <https://doi.org/10.6028/NIST.FIPS.204>.
- [FIPS205]
- National Institute of Standards and Technology, "Stateless Hash-Based Digital Signature Standard", FIPS PUB 205, , <https://doi.org/10.6028/NIST.FIPS.205>.
- [SEC2]
- Certicom Research, "SEC 2: Recommended Elliptic Curve Domain Parameters", Standards for Efficient Cryptography Version 2.0, , <https://www.secg.org/sec2-v2.pdf>.
- [BIP340]
- Wuille, P., Nick, J., and T. Ruffing, "Schnorr Signatures for secp256k1", , <https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki>.
- [UAX15]
- The Unicode Consortium, "Unicode Normalization Forms", Unicode Standard Annex #15, n.d., <https://www.unicode.org/reports/tr15/>.
- [RFC2119]
- Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
- [RFC8174]
- Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.
12.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, , <https://www.rfc-editor.org/info/rfc8126>.
- [RFC8726]
- Farrel, A., "How Requests for IANA Action Will Be Handled on the Independent Stream", RFC 8726, DOI 10.17487/RFC8726, , <https://www.rfc-editor.org/info/rfc8726>.
- [BIP32]
- Wuille, P., "Hierarchical Deterministic Wallets", , <https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki>.
- [BIP39]
- Palatinus, M., Rusnak, P., Voisine, A., and S. Bowe, "Mnemonic code for generating deterministic keys", , <https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki>.
- [DID-Core]
- W3C, "Decentralized Identifiers (DIDs) v1.0", , <https://www.w3.org/TR/did-core/>.
- [NIST-SP800-108]
- Chen, L., "Recommendation for Key Derivation Using Pseudorandom Functions", NIST Special Publication 800-108r1, , <https://doi.org/10.6028/NIST.SP.800-108r1>.
- [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, , <https://doi.org/10.1145/237814.237866>.
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:¶
-
Offloading Sealing: The Sealing process can be performed on a provisioning terminal. The device only needs to store the resulting SA.¶
-
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 11. It requires the Python cryptography package (version
44 or later, which provides Argon2id). It omits memory zeroization and
other protections required by Section 9 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,
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)
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:¶
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:¶
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 8.3).¶
Appendix D. Security Boundaries and Trust Assumptions (Informational)
This appendix summarizes the security boundaries and trust assumptions of ACE-GF. It complements Section 9.¶
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.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.¶