Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Free functions

felt_signReturns the sign of a signed felt252 . Uses sign-magnitude representation where values greater than HALF_PRIME are considered negative….
felt_absReturns the absolute value of a signed felt252 . If the value is negative (per sign-magnitude representation), returns its negation. Otherwise returns the value unchanged.