Skip to content

Commit 40fbe39

Browse files
committed
Increase constant size upper bound
1 parent 3f5a56c commit 40fbe39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/sdk/src/common/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ impl NoncedVerificationData {
9999
}
100100

101101
/// Returns an upper bound for the CBOR encoding size without performing serialization.
102-
/// Sums the length of all Vec<u8> fields in the inner VerificationData and adds 256 bytes as overhead.
102+
/// Sums the length of all Vec<u8> fields in the inner VerificationData and adds 1024 bytes as overhead. This covers the constant size data and extra headers
103103
pub fn cbor_size_upper_bound(&self) -> usize {
104-
const CBOR_OVERHEAD_BYTES: usize = 256;
104+
const CBOR_OVERHEAD_BYTES: usize = 1024;
105105
let mut total_size = 0;
106106

107107
// Add length of proof Vec<u8>

0 commit comments

Comments
 (0)