diff --git a/src/internet_identity/src/storage/anchor.rs b/src/internet_identity/src/storage/anchor.rs index 73517484eb..26d4143bca 100644 --- a/src/internet_identity/src/storage/anchor.rs +++ b/src/internet_identity/src/storage/anchor.rs @@ -515,7 +515,7 @@ fn check_device_limits(device: &Device) -> Result<(), AnchorError> { const ORIGIN_LEN_LIMIT: usize = 50; const ALIAS_LEN_LIMIT: usize = 64; const PK_LEN_LIMIT: usize = 300; - const CREDENTIAL_ID_LEN_LIMIT: usize = 200; + const CREDENTIAL_ID_LEN_LIMIT: usize = 350; let n = device.alias.len(); if n > ALIAS_LEN_LIMIT { diff --git a/src/internet_identity/src/storage/anchor/tests.rs b/src/internet_identity/src/storage/anchor/tests.rs index 001dcdd7c8..afb9078cc2 100644 --- a/src/internet_identity/src/storage/anchor/tests.rs +++ b/src/internet_identity/src/storage/anchor/tests.rs @@ -75,7 +75,7 @@ fn should_enforce_pubkey_limit() { fn should_enforce_credential_id_limit() { let mut anchor = Anchor::new(ANCHOR_NUMBER); let mut device = sample_device(); - device.credential_id = Some(ByteBuf::from([0; 201])); + device.credential_id = Some(ByteBuf::from([0; 351])); let result = anchor.add_device(device);