Expand description
Qualia Identifier (did:qi) runtime for ☉ Human-Centric Internet instruments.
This is a DID-Core shaped method runtime: create / read / update / deactivate.
It is not did:q42 (Q42 Resource Coordinate), not did:hcai, and not
Gate B. Git objects are in-process; UTXO attestation verifies caller-supplied
Bitcoin-family transaction bytes. There is no network, Chronik, DHT, or git daemon.
Canonical document bytes use QCDE-1 (RFC 8785 profile) in [document]. The DID
method-specific-id is multibase Bitcoin base58btc (z prefix) of the 32-byte
SHA-256 genesis payload digest.
Structs§
- AkaEntry
- ChainId
- Cscp
Mailbox - DidQi
- 32-byte genesis digest. The DID string is
did:qi:z+ base58btc(this). - GitObject
Store - Outpoint
- QiDocument
- Relay
Hint - Utxo
Commitment
Enums§
- Disclosure
- Locator
Class - QiError
- Fail-closed errors. Hot paths return these without allocating.
Constants§
- CONSTITUTION_
MAINNET - Bitcoin mainnet genesis, first 16 bytes of block hash (CAIP-2
bip122). - CONSTITUTION_
TESTNET - Bitcoin testnet3 genesis identifier (distinct ledger, same DID).
- CREATED_
UNIX_ VECTOR - GIT_
STORE_ CAP - LIVE_
KIND - MAX_AKA
- MAX_
AKA_ LEN - MAX_
BLOB - MAX_
CANONICAL - MAX_
DID_ TEXT - Spec §6.3: at most 57 ASCII octets; 64 leaves headroom.
- MAX_
HINTS - MAX_
RECORD - MAX_
SERVICES - MAX_
SIGNED - MAX_
UNSIGNED - METHOD_
NAME - DID method name. Bound in prose to the Human-Centric Internet (HCInet).
- OP_
RETURN - QI_
MAGIC - SERVICE_
TYPE - TOMBSTONE_
OPCODE - Registered tombstone kind in the 35-byte OP_RETURN push (
0xFF).
Traits§
- QiStore
- In-process document store. Implementations keep a fixed slot cap.
Functions§
- admit_
chain - Parse then admit. Well-formed but unlisted
bip122:ids areunsupported_chain. - apply_
utxo_ attestation - Applies a UTXO attestation into store
S. - blob_
object_ id - SHA-256 object id of a blob encoding of
content. - canonical_
digest - Alias for
genesis_digest. - chain_
admitted - True when
chainis an admitted BIP-122 constitution identifier (spec §17.1). - check_
relay_ only - Spec §10.3: relay-only documents MUST NOT carry Direct locators or public DHT.
- create
- Creates a
did:qidocument instore; returns the new generation. - deactivate
- Tombstones
id. - decode_
canonical - Reconstruct a
QiDocumentfrom QCDE-1 the encoder emits (F1). - encode_
blob - Encodes
contentas a git blob (blob <len>