Skip to content

Commit d44e6e0

Browse files
committed
Add comment for Fp size
1 parent f54d357 commit d44e6e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soroban-sdk/src/crypto/bls12_381.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use core::{
1010
ops::{Add, Mul, Neg, Sub},
1111
};
1212

13-
pub const FP_SERIALIZED_SIZE: usize = 48;
13+
pub const FP_SERIALIZED_SIZE: usize = 48; // Size in bytes of a serialized Fp element in BLS12-381. The field modulus is 381 bits, requiring 48 bytes (384 bits) with 3 bits reserved for flags.
1414
pub const FP2_SERIALIZED_SIZE: usize = FP_SERIALIZED_SIZE * 2;
1515
pub const G1_SERIALIZED_SIZE: usize = FP_SERIALIZED_SIZE * 2;
1616
pub const G2_SERIALIZED_SIZE: usize = FP2_SERIALIZED_SIZE * 2;

0 commit comments

Comments
 (0)