rfe-types
Core domain types and deterministic audit primitives for the Rust Fintech Ecosystem (RFE).
Key Capabilities
Sensitive<T>redacts PII inDebugoutput.- Typed IDs:
Inn,Ogrn,RequestId,LoanId,ClientId. - Deterministic Blake3 helpers:
blake3_hash,blake3_chain. - Canonical audit structures:
AuditEntry,SealInput. rust_decimalre-export for exact financial arithmetic.
Freeze Notice (v0.1.x)
SealInput is frozen starting from v0.1.0 for TrustBox compatibility.
Field-level breaking changes require semver-major bump.
SealInput and AuditEntry
SealInput fields:
noncerequest_hashresult_hashchain_head_pre
AuditEntry includes:
sealprocessing_time_microsoperator_binding_hashsession_nonce
Minimal Example
use ;
let payload = b"tx:123";
let request_hash = blake3_hash;
let result_hash = blake3_hash;
let parent = ;
let nonce = ;
let seal = new_v1.compute_seal;
assert_ne!;
let root = genesis;
let next = root.next;
assert!;