We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c873b5 commit c09d05fCopy full SHA for c09d05f
math/src/field/element.rs
@@ -509,6 +509,8 @@ impl<F: IsPrimeField> FieldElement<F> {
509
/// Creates a `FieldElement` from a hexstring. It can contain `0x` or not.
510
/// Returns an `CreationError::InvalidHexString`if the value is not a hexstring.
511
/// Returns a `CreationError::EmptyString` if the input string is empty.
512
+ /// Returns a `CreationError::HexStringIsTooBig` if the the imput hex string is bigger
513
+ /// than the maximum amount of characters for this element.
514
pub fn from_hex(hex_string: &str) -> Result<Self, CreationError> {
515
if hex_string.is_empty() {
516
return Err(CreationError::EmptyString);
0 commit comments