#[non_exhaustive]#[repr(u8)]pub enum ComputationType {
Show 13 variants
BiometricAuth = 1,
FraudScore = 2,
FedNowPayment = 3,
SolanaAttestation = 4,
HatsGovernance = 5,
BitcoinUtxo = 6,
KycVerification = 7,
ShareComputation = 8,
ArchiveSign = 9,
MedVaultPhi = 10,
VaultKeyOp = 11,
ApiResponse = 12,
GenericFhe = 255,
}Expand description
Domain separator values defined by the substrate specification.
A substrate minted for one computation type can NEVER be confused with a substrate minted for another, because the type byte is covered by the SHA3-256 signing message.
Values are an append-only enum — once assigned, a value cannot be reused or removed without breaking every historical signature that used the old meaning.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BiometricAuth = 1
FHE biometric authentication match.
FraudScore = 2
FHE fraud scoring result.
FedNowPayment = 3
FedNow payment attestation.
SolanaAttestation = 4
Solana transaction attestation.
HatsGovernance = 5
HATS governance proof.
BitcoinUtxo = 6
Bitcoin UTXO quantum-insurance attestation.
KycVerification = 7
ZK-KYC identity verification.
H33-Share cross-institution computation.
ArchiveSign = 9
ArchiveSign document attestation.
MedVaultPhi = 10
MedVault PHI operation.
VaultKeyOp = 11
VaultKey secret operation.
ApiResponse = 12
HTTP API response attestation (Tier 1 substrate response middleware).
GenericFhe = 255
Generic FHE computation — catch-all for unrelated uses.
Implementations§
Source§impl ComputationType
impl ComputationType
Sourcepub const fn from_byte(byte: u8) -> Option<Self>
pub const fn from_byte(byte: u8) -> Option<Self>
Convert from a raw byte. Returns None for values the verifier
does not recognize.
§Examples
use h33_substrate_verifier::ComputationType;
assert_eq!(ComputationType::from_byte(0x01), Some(ComputationType::BiometricAuth));
assert_eq!(ComputationType::from_byte(0x0C), Some(ComputationType::ApiResponse));
assert_eq!(ComputationType::from_byte(0x42), None);Trait Implementations§
Source§impl Clone for ComputationType
impl Clone for ComputationType
Source§fn clone(&self) -> ComputationType
fn clone(&self) -> ComputationType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more