Expand description
Lace H3 record creation, validation, and metadata views.
Structs§
- Application
Field Iter - Iterator over canonical Plex application fields.
- BySecret
- The single zeroizing owner for canonical private By-secret value
(
&.<b64a>.H3). - ByValue
- Canonical record-facing
Byvalue (V.<b64a>.H3). - Field
Occurrence - One borrowed Plex application-field occurrence.
- Indexed
Field - One indexed occurrence returned by direct field lookup.
- Mark
- A 64-byte Lace Schnorr-BLAKE3 signature, validated when verified.
- Record
- A validated record: verified canonical bytes from one retained source.
- Record
Hash - Record
Metadata - Borrowed view of a validated record’s canonical non-payload prefix.
- Record
Spec - Application-facing record construction intent.
- Record
Validator - Validates exactly one canonical record supplied in arbitrary fragments.
- Signing
Key - A normalized secret derived from Lace’s 32-byte seed (not a raw scalar). Secret storage is erased on drop, best effort; compiler copies may remain.
- Typed
H3Text - Validated
Header - The verified header of one complete record: outer hash, canonical length and the canonical non-payload prefix, whose length is the data offset.
- Verification
Key - A validated x-only, even-y Lace verification key.
Enums§
- Crypto
Error - Hash
Text Error - Record
Create Error - Error returned by application-facing record construction.
- Record
Error - Error type for record validation failures.
- Record
Kind - Record kind identified by the record glyph line.
- Record
Read Error - A record could not be materialised.
- Typed
Text Error
Constants§
- BY_
SECRET_ TEXT_ LEAD - BY_
VALUE_ TEXT_ LEAD - LENGTH_
FIELD - The 020 synthetic complete canonical record byte length field.
- MAX_
BLOB_ RECORD_ BYTES - Maximum complete canonical H3 Blob byte length.
- MAX_
BLOB_ SIZE - Maximum Blob data size: 32 MiB.
- MAX_
FIELD_ LINE_ BYTES_ EXCLUDING_ LF - Maximum complete H3 field-line size in UTF-8 bytes, excluding LF.
- MAX_
H3_ RECORD_ BYTES - Maximum complete canonical H3 record byte length (a Seal over a maximum Plex).
- MAX_
PLEX_ FIELDS - Maximum number of application field occurrences in one Plex.
- MAX_
PLEX_ RECORD_ BYTES - Maximum complete canonical H3 Plex byte length.
- MAX_
RECORD_ METADATA_ BYTES - Maximum canonical non-payload prefix (record metadata) of an H3 record: every byte of a maximum Seal except its Blob data.
- RECORD_
GLYPH - The Lace record glyph character at the start of every record glyph line.
- RECORD_
HASH_ B64A_ LEN - RECORD_
HASH_ TEXT_ LEN - REGISTERED_
TYPED_ TEXT_ LEADS - SYNTHETIC_
FIELD_ NAMES - Field names projected by 020 that never occur in record bytes.
- TYPE_
FIELD - The 020 synthetic record kind field:
B,P, orS.
Traits§
- Into
Record Batch - Convert owned or borrowed validated records into a store-operation batch.
- Into
Record Data - Values accepted by
RecordSpec::dataandRecordSpec::from_data.
Functions§
- b64a_
decode - Decode a B64A string into bytes. Validates canonical zeroed trailing bits.
- b64a_
decoded_ len - Compute the decoded length for a valid B64A string length.
- b64a_
encode - Encode bytes as a B64A string.
- b64a_
encoded_ len - Compute the encoded length for a given number of input bytes.
- blake3_
hash - Plain BLAKE3 hash of data.
- generate_
by_ secret - Generate a canonical By-secret value from OS randomness.
- is_
synthetic_ field_ name - Whether a name is one of the 020 synthetic field names.
- new_
record - Construct and validate the one record kind implied by caller intent.
- random_
aux_ rand32 - Generate nonzero auxiliary randomness using the OS random source.
- typed_
text_ lead_ description - Human-readable owner for one registered typed-text lead byte.