Reserve version IDs to avoid accidental reuse with other options

This commit is contained in:
Egor Duda
2022-05-18 20:50:56 +03:00
parent 25d538cde6
commit e4d3262623

View File

@@ -45,7 +45,7 @@ pub const ECDSA_CREDENTIAL_ID_SIZE: usize = 113;
pub const MAX_CREDENTIAL_ID_SIZE: usize = 113;
const ECDSA_CREDENTIAL_ID_VERSION: u8 = 0x01;
#[cfg(feature = "ed25519")]
#[allow(dead_code)]
const ED25519_CREDENTIAL_ID_VERSION: u8 = 0x02;
#[cfg(test)]
const UNSUPPORTED_CREDENTIAL_ID_VERSION: u8 = 0x80;