[{"data":1,"prerenderedAt":979},["ShallowReactive",2],{"navigation_docs":3,"-math-field":88,"-math-field-surround":974},[4,24],{"title":5,"path":6,"stem":7,"children":8,"icon":23},"Guide","\u002Fguide","1.guide\u002F01.index",[9,11,15,19],{"title":10,"path":6,"stem":7},"Getting started",{"title":12,"path":13,"stem":14},"CLI","\u002Fguide\u002Fcli","1.guide\u002F02.cli",{"title":16,"path":17,"stem":18},"Agents","\u002Fguide\u002Fagents","1.guide\u002F03.agents",{"title":20,"path":21,"stem":22},"Playground","\u002Fguide\u002Fplayground","1.guide\u002F04.playground","i-lucide-book-open",{"title":25,"path":26,"stem":27,"children":28,"icon":87},"Math","\u002Fmath","2.math\u002F00.index",[29,31,35,39,43,47,51,55,59,63,67,71,75,79,83],{"title":30,"path":26,"stem":27},"Overview",{"title":32,"path":33,"stem":34},"Curves and points","\u002Fmath\u002Fcurves","2.math\u002F01.curves",{"title":36,"path":37,"stem":38},"Orders and logs","\u002Fmath\u002Fgroups","2.math\u002F02.groups",{"title":40,"path":41,"stem":42},"secp256k1","\u002Fmath\u002Fsecp256k1","2.math\u002F03.secp256k1",{"title":44,"path":45,"stem":46},"sr25519","\u002Fmath\u002Fsr25519","2.math\u002F04.sr25519",{"title":48,"path":49,"stem":50},"ed25519","\u002Fmath\u002Fed25519","2.math\u002F05.ed25519",{"title":52,"path":53,"stem":54},"P-256","\u002Fmath\u002Fp256","2.math\u002F06.p256",{"title":56,"path":57,"stem":58},"P-384","\u002Fmath\u002Fp384","2.math\u002F07.p384",{"title":60,"path":61,"stem":62},"P-521","\u002Fmath\u002Fp521","2.math\u002F08.p521",{"title":64,"path":65,"stem":66},"brainpoolP256r1","\u002Fmath\u002Fbrainpoolp256r1","2.math\u002F09.brainpoolp256r1",{"title":68,"path":69,"stem":70},"brainpoolP384r1","\u002Fmath\u002Fbrainpoolp384r1","2.math\u002F10.brainpoolp384r1",{"title":72,"path":73,"stem":74},"brainpoolP512r1","\u002Fmath\u002Fbrainpoolp512r1","2.math\u002F11.brainpoolp512r1",{"title":76,"path":77,"stem":78},"Ed448","\u002Fmath\u002Fed448","2.math\u002F12.ed448",{"title":80,"path":81,"stem":82},"Modular arithmetic","\u002Fmath\u002Ffield","2.math\u002F13.field",{"title":84,"path":85,"stem":86},"Linear algebra","\u002Fmath\u002Fmatrices","2.math\u002F14.matrices","i-lucide-sigma",{"id":89,"title":80,"body":90,"description":966,"extension":967,"links":968,"meta":969,"navigation":144,"path":81,"seo":971,"stem":82,"__hash__":973},"docs\u002F2.math\u002F13.field.md",{"type":91,"value":92,"toc":954},"minimark",[93,98,107,256,274,277,281,299,314,320,375,379,393,397,405,409,435,455,459,472,566,572,576,586,754,757,773,786,790,802,885,902,917,921,927,931,934,942,950],[94,95,97],"h2",{"id":96},"bigint-modular-arithmetic","BigInt modular arithmetic",[99,100,101,102,106],"p",{},"Import modular arithmetic directly from ",[103,104,105],"code",{},"@agntn\u002Fcurves",". These are the functions the curve code uses, with input checks at the root.",[108,109,114],"pre",{"className":110,"code":111,"language":112,"meta":113,"style":113},"language-ts shiki shiki-themes compressions compressions compressions","import { invert, jacobi, mod, power, squareRoot, squareRootMod } from \"@agntn\u002Fcurves\";\n\nmod(-7n, 5n); \u002F\u002F 3n\npower(2n, 10n, { modulus: 1000n }); \u002F\u002F 24n\ninvert(3n, 10n); \u002F\u002F 7n\nsquareRoot(10n ** 30n + 1n); \u002F\u002F 1000000000000000n\n","ts","",[103,115,116,139,146,177,204,224],{"__ignoreMap":113},[117,118,121,125,129,132,136],"span",{"class":119,"line":120},"line",1,[117,122,124],{"class":123},"skH_V","import",[117,126,128],{"class":127},"s38Sx"," { invert, jacobi, mod, power, squareRoot, squareRootMod } ",[117,130,131],{"class":123},"from",[117,133,135],{"class":134},"shU9J"," \"@agntn\u002Fcurves\"",[117,137,138],{"class":127},";\n",[117,140,142],{"class":119,"line":141},2,[117,143,145],{"emptyLinePlaceholder":144},true,"\n",[117,147,149,153,156,159,162,165,168,170,173],{"class":119,"line":148},3,[117,150,152],{"class":151},"sK71F","mod",[117,154,155],{"class":127},"(",[117,157,158],{"class":123},"-",[117,160,161],{"class":127},"7",[117,163,164],{"class":123},"n",[117,166,167],{"class":127},", 5",[117,169,164],{"class":123},[117,171,172],{"class":127},"); ",[117,174,176],{"class":175},"scIB-","\u002F\u002F 3n\n",[117,178,180,183,186,188,191,193,196,198,201],{"class":119,"line":179},4,[117,181,182],{"class":151},"power",[117,184,185],{"class":127},"(2",[117,187,164],{"class":123},[117,189,190],{"class":127},", 10",[117,192,164],{"class":123},[117,194,195],{"class":127},", { modulus: 1000",[117,197,164],{"class":123},[117,199,200],{"class":127}," }); ",[117,202,203],{"class":175},"\u002F\u002F 24n\n",[117,205,207,210,213,215,217,219,221],{"class":119,"line":206},5,[117,208,209],{"class":151},"invert",[117,211,212],{"class":127},"(3",[117,214,164],{"class":123},[117,216,190],{"class":127},[117,218,164],{"class":123},[117,220,172],{"class":127},[117,222,223],{"class":175},"\u002F\u002F 7n\n",[117,225,227,230,233,235,238,241,243,246,249,251,253],{"class":119,"line":226},6,[117,228,229],{"class":151},"squareRoot",[117,231,232],{"class":127},"(10",[117,234,164],{"class":123},[117,236,237],{"class":123}," **",[117,239,240],{"class":127}," 30",[117,242,164],{"class":123},[117,244,245],{"class":123}," +",[117,247,248],{"class":127}," 1",[117,250,164],{"class":123},[117,252,172],{"class":127},[117,254,255],{"class":175},"\u002F\u002F 1000000000000000n\n",[99,257,258,259,262,263,266,267,270,271,273],{},"Every numeric argument must be a ",[103,260,261],{},"bigint",". Pass a ",[103,264,265],{},"Number"," and you get a ",[103,268,269],{},"TypeError",". Why insist? A ",[103,272,265],{}," above 2^53 can already have lost digits. A silent wrong answer is worse than a refusal.",[99,275,276],{},"These functions are not constant time. Don't use them with secrets.",[94,278,280],{"id":279},"modular-reduction-and-exponentiation","Modular reduction and exponentiation",[99,282,283,286,287,290,291,294,295,298],{},[103,284,285],{},"mod(value, modulus)"," returns a value from zero to ",[103,288,289],{},"modulus - 1n",". Negative values work too. The modulus must be at least ",[103,292,293],{},"1n",". A smaller modulus throws a ",[103,296,297],{},"RangeError",".",[99,300,301,304,305,307,308,310,311,298],{},[103,302,303],{},"power(base, exponent, { modulus })"," takes its modulus in an options object. The exponent must be zero or more. A negative exponent throws a ",[103,306,297],{},". Anything to the zeroth power mod ",[103,309,293],{}," is ",[103,312,313],{},"0n",[99,315,316,317,319],{},"Pass the modulus bare? You get a ",[103,318,269],{}," that shows the right shape.",[108,321,323],{"className":110,"code":322,"language":112,"meta":113,"style":113},"power(3n, 2n ** 61n - 2n, { modulus: 2n ** 61n - 1n }); \u002F\u002F 1n, Fermat says hi\n",[103,324,325],{"__ignoreMap":113},[117,326,327,329,331,333,336,338,340,343,345,348,351,353,356,358,360,362,364,366,368,370,372],{"class":119,"line":120},[117,328,182],{"class":151},[117,330,212],{"class":127},[117,332,164],{"class":123},[117,334,335],{"class":127},", 2",[117,337,164],{"class":123},[117,339,237],{"class":123},[117,341,342],{"class":127}," 61",[117,344,164],{"class":123},[117,346,347],{"class":123}," -",[117,349,350],{"class":127}," 2",[117,352,164],{"class":123},[117,354,355],{"class":127},", { modulus: 2",[117,357,164],{"class":123},[117,359,237],{"class":123},[117,361,342],{"class":127},[117,363,164],{"class":123},[117,365,347],{"class":123},[117,367,248],{"class":127},[117,369,164],{"class":123},[117,371,200],{"class":127},[117,373,374],{"class":175},"\u002F\u002F 1n, Fermat says hi\n",[94,376,378],{"id":377},"modular-inverse","Modular inverse",[99,380,381,384,385,387,388,390,391,298],{},[103,382,383],{},"invert(value, modulus)"," works with composite moduli too. The value and modulus must have gcd 1. Otherwise, it throws a ",[103,386,297],{}," naming the shared factor. For modulus ",[103,389,293],{},", the result is ",[103,392,313],{},[94,394,396],{"id":395},"integer-square-root","Integer square root",[99,398,399,402,403,298],{},[103,400,401],{},"squareRoot(value)"," returns the integer square root, rounded down. It accepts values of any size. A negative value throws a ",[103,404,297],{},[94,406,408],{"id":407},"jacobi-symbol","Jacobi symbol",[99,410,411,414,415,418,419,422,423,426,427,429,430,432,433,298],{},[103,412,413],{},"jacobi(value, modulus)"," returns the number ",[103,416,417],{},"1",", ",[103,420,421],{},"-1"," or ",[103,424,425],{},"0",". The result is ",[103,428,425],{}," when the arguments share a factor. The modulus must be odd and at least ",[103,431,293],{},". Other moduli throw a ",[103,434,297],{},[99,436,437,438,440,441,443,444,447,448,451,452,454],{},"Does ",[103,439,417],{}," mean a square exists? Not for every composite modulus. Jacobi says ",[103,442,417],{}," for ",[103,445,446],{},"2n"," mod ",[103,449,450],{},"15n",", but ",[103,453,446],{}," is no square there. A confident answer to a different question.",[94,456,458],{"id":457},"modular-square-roots","Modular square roots",[99,460,461,464,465,468,469,471],{},[103,462,463],{},"squareRootMod(value, prime)"," returns the smaller root. If no square root exists, it returns ",[103,466,467],{},"undefined",". The prime ",[103,470,446],{}," works too. Tonelli-Shanks handles primes beyond those congruent to 3 mod 4.",[108,473,475],{"className":110,"code":474,"language":112,"meta":113,"style":113},"squareRootMod(2n, 7n); \u002F\u002F 3n\nsquareRootMod(3n, 7n); \u002F\u002F undefined\nsquareRootMod(1n, 2n); \u002F\u002F 1n\njacobi(3n, 7n); \u002F\u002F -1\njacobi(2n, 15n); \u002F\u002F 1, and 2 is still no square mod 15\n",[103,476,477,495,512,530,548],{"__ignoreMap":113},[117,478,479,482,484,486,489,491,493],{"class":119,"line":120},[117,480,481],{"class":151},"squareRootMod",[117,483,185],{"class":127},[117,485,164],{"class":123},[117,487,488],{"class":127},", 7",[117,490,164],{"class":123},[117,492,172],{"class":127},[117,494,176],{"class":175},[117,496,497,499,501,503,505,507,509],{"class":119,"line":141},[117,498,481],{"class":151},[117,500,212],{"class":127},[117,502,164],{"class":123},[117,504,488],{"class":127},[117,506,164],{"class":123},[117,508,172],{"class":127},[117,510,511],{"class":175},"\u002F\u002F undefined\n",[117,513,514,516,519,521,523,525,527],{"class":119,"line":148},[117,515,481],{"class":151},[117,517,518],{"class":127},"(1",[117,520,164],{"class":123},[117,522,335],{"class":127},[117,524,164],{"class":123},[117,526,172],{"class":127},[117,528,529],{"class":175},"\u002F\u002F 1n\n",[117,531,532,535,537,539,541,543,545],{"class":119,"line":179},[117,533,534],{"class":151},"jacobi",[117,536,212],{"class":127},[117,538,164],{"class":123},[117,540,488],{"class":127},[117,542,164],{"class":123},[117,544,172],{"class":127},[117,546,547],{"class":175},"\u002F\u002F -1\n",[117,549,550,552,554,556,559,561,563],{"class":119,"line":206},[117,551,534],{"class":151},[117,553,185],{"class":127},[117,555,164],{"class":123},[117,557,558],{"class":127},", 15",[117,560,164],{"class":123},[117,562,172],{"class":127},[117,564,565],{"class":175},"\u002F\u002F 1, and 2 is still no square mod 15\n",[99,567,568,569,571],{},"The function checks primality before finding a root. A modulus that isn't prime throws a ",[103,570,297],{},". That's better than a loop that never ends.",[94,573,575],{"id":574},"chinese-remainder-theorem","Chinese remainder theorem",[99,577,578,579,582,583,585],{},"Do the moduli have to be coprime? No. Their residues just have to agree mod the gcd. Otherwise ",[103,580,581],{},"crt"," returns ",[103,584,467],{},". No coprime juggling needed.",[108,587,589],{"className":110,"code":588,"language":112,"meta":113,"style":113},"import { crt } from \"@agntn\u002Fcurves\";\n\ncrt([\n  { residue: 3n, modulus: 10n },\n  { residue: 7n, modulus: 12n },\n]); \u002F\u002F { residue: 43n, modulus: 60n }\ncrt([\n  { residue: 1n, modulus: 4n },\n  { residue: 2n, modulus: 6n },\n]); \u002F\u002F undefined, odd and even won't agree mod 2\ncrt([\n  { residue: 2n, modulus: 3n },\n  { residue: 3n, modulus: 5n },\n  { residue: 2n, modulus: 7n },\n]); \u002F\u002F { residue: 23n, modulus: 105n }\n",[103,590,591,604,608,615,630,644,652,659,674,689,697,704,718,732,746],{"__ignoreMap":113},[117,592,593,595,598,600,602],{"class":119,"line":120},[117,594,124],{"class":123},[117,596,597],{"class":127}," { crt } ",[117,599,131],{"class":123},[117,601,135],{"class":134},[117,603,138],{"class":127},[117,605,606],{"class":119,"line":141},[117,607,145],{"emptyLinePlaceholder":144},[117,609,610,612],{"class":119,"line":148},[117,611,581],{"class":151},[117,613,614],{"class":127},"([\n",[117,616,617,620,622,625,627],{"class":119,"line":179},[117,618,619],{"class":127},"  { residue: 3",[117,621,164],{"class":123},[117,623,624],{"class":127},", modulus: 10",[117,626,164],{"class":123},[117,628,629],{"class":127}," },\n",[117,631,632,635,637,640,642],{"class":119,"line":206},[117,633,634],{"class":127},"  { residue: 7",[117,636,164],{"class":123},[117,638,639],{"class":127},", modulus: 12",[117,641,164],{"class":123},[117,643,629],{"class":127},[117,645,646,649],{"class":119,"line":226},[117,647,648],{"class":127},"]); ",[117,650,651],{"class":175},"\u002F\u002F { residue: 43n, modulus: 60n }\n",[117,653,655,657],{"class":119,"line":654},7,[117,656,581],{"class":151},[117,658,614],{"class":127},[117,660,662,665,667,670,672],{"class":119,"line":661},8,[117,663,664],{"class":127},"  { residue: 1",[117,666,164],{"class":123},[117,668,669],{"class":127},", modulus: 4",[117,671,164],{"class":123},[117,673,629],{"class":127},[117,675,677,680,682,685,687],{"class":119,"line":676},9,[117,678,679],{"class":127},"  { residue: 2",[117,681,164],{"class":123},[117,683,684],{"class":127},", modulus: 6",[117,686,164],{"class":123},[117,688,629],{"class":127},[117,690,692,694],{"class":119,"line":691},10,[117,693,648],{"class":127},[117,695,696],{"class":175},"\u002F\u002F undefined, odd and even won't agree mod 2\n",[117,698,700,702],{"class":119,"line":699},11,[117,701,581],{"class":151},[117,703,614],{"class":127},[117,705,707,709,711,714,716],{"class":119,"line":706},12,[117,708,679],{"class":127},[117,710,164],{"class":123},[117,712,713],{"class":127},", modulus: 3",[117,715,164],{"class":123},[117,717,629],{"class":127},[117,719,721,723,725,728,730],{"class":119,"line":720},13,[117,722,619],{"class":127},[117,724,164],{"class":123},[117,726,727],{"class":127},", modulus: 5",[117,729,164],{"class":123},[117,731,629],{"class":127},[117,733,735,737,739,742,744],{"class":119,"line":734},14,[117,736,679],{"class":127},[117,738,164],{"class":123},[117,740,741],{"class":127},", modulus: 7",[117,743,164],{"class":123},[117,745,629],{"class":127},[117,747,749,751],{"class":119,"line":748},15,[117,750,648],{"class":127},[117,752,753],{"class":175},"\u002F\u002F { residue: 23n, modulus: 105n }\n",[99,755,756],{},"That last one is the puzzle from the Sunzi Suanjing. Still 23.",[99,758,759,760,763,764,766,767,769,770,772],{},"Pass any iterable of ",[103,761,762],{},"{ residue, modulus }"," objects, a generator included. Residues may be negative. Every modulus must be at least ",[103,765,293],{},". The answer comes mod their lcm, with a residue from ",[103,768,313],{}," up to one less. Feed it back into ",[103,771,581],{}," to add more congruences.",[99,774,775,776,779,780,783,784,298],{},"An empty iterable gives ",[103,777,778],{},"{ residue: 0n, modulus: 1n }",", every integer. A generator is read once. All inputs are checked before solving, even after a disagreement. A ",[103,781,782],{},"[residue, modulus]"," pair throws a ",[103,785,269],{},[94,787,789],{"id":788},"linear-congruences","Linear congruences",[99,791,792,795,796,799,800,298],{},[103,793,794],{},"linearCongruence(coefficient, value, { modulus })"," solves ",[103,797,798],{},"coefficient * x = value"," mod a modulus. The modulus goes in an options object, like ",[103,801,182],{},[108,803,805],{"className":110,"code":804,"language":112,"meta":113,"style":113},"import { linearCongruence } from \"@agntn\u002Fcurves\";\n\nlinearCongruence(6n, 4n, { modulus: 10n }); \u002F\u002F { residue: 4n, modulus: 5n, count: 2n }\nlinearCongruence(2n ** 64n, 0n, { modulus: 2n ** 65n }); \u002F\u002F { residue: 0n, modulus: 2n, count: 18446744073709551616n }\n",[103,806,807,820,824,849],{"__ignoreMap":113},[117,808,809,811,814,816,818],{"class":119,"line":120},[117,810,124],{"class":123},[117,812,813],{"class":127}," { linearCongruence } ",[117,815,131],{"class":123},[117,817,135],{"class":134},[117,819,138],{"class":127},[117,821,822],{"class":119,"line":141},[117,823,145],{"emptyLinePlaceholder":144},[117,825,826,829,832,834,837,839,842,844,846],{"class":119,"line":148},[117,827,828],{"class":151},"linearCongruence",[117,830,831],{"class":127},"(6",[117,833,164],{"class":123},[117,835,836],{"class":127},", 4",[117,838,164],{"class":123},[117,840,841],{"class":127},", { modulus: 10",[117,843,164],{"class":123},[117,845,200],{"class":127},[117,847,848],{"class":175},"\u002F\u002F { residue: 4n, modulus: 5n, count: 2n }\n",[117,850,851,853,855,857,859,862,864,867,869,871,873,875,878,880,882],{"class":119,"line":179},[117,852,828],{"class":151},[117,854,185],{"class":127},[117,856,164],{"class":123},[117,858,237],{"class":123},[117,860,861],{"class":127}," 64",[117,863,164],{"class":123},[117,865,866],{"class":127},", 0",[117,868,164],{"class":123},[117,870,355],{"class":127},[117,872,164],{"class":123},[117,874,237],{"class":123},[117,876,877],{"class":127}," 65",[117,879,164],{"class":123},[117,881,200],{"class":127},[117,883,884],{"class":175},"\u002F\u002F { residue: 0n, modulus: 2n, count: 18446744073709551616n }\n",[99,886,887,888,422,891,447,894,897,898,901],{},"That first answer means ",[103,889,890],{},"4n",[103,892,893],{},"9n",[103,895,896],{},"10n",". You get one class mod the modulus divided by the gcd. Its ",[103,899,900],{},"count"," is the gcd, not a list of classes. Want 2^64 classes printed one by one? Neither do we.",[99,903,904,905,907,908,910,911,913,914,916],{},"If the gcd doesn't divide the value, the result is ",[103,906,467],{},". With coefficient ",[103,909,313],{},", a value divisible by the modulus gives residue ",[103,912,313],{},", modulus ",[103,915,293],{}," and count equal to the modulus. Everything stays BigInt. Neither function is constant time.",[94,918,920],{"id":919},"primality-testing","Primality testing",[99,922,923,926],{},[103,924,925],{},"isPrime(value)"," is also available from the package root. Primality checks use Baillie-PSW. It combines Miller-Rabin tests on small prime bases with a strong Lucas test. No known composite passes it. But nobody has proved that none does.",[94,928,930],{"id":929},"modular-arithmetic-errors","Modular arithmetic errors",[99,932,933],{},"Wrong inputs fail with a useful message.",[108,935,940],{"className":936,"code":938,"language":939,"meta":113},[937],"language-text","invert(4n, 10n)                  \u002F\u002F No inverse exists mod 10: the value shares the factor 2 with it\nsquareRootMod(2n, 15n)           \u002F\u002F The modulus must be a prime\nsquareRoot(-1n)                  \u002F\u002F The value must be 0 or more\npower(2n, 3n, 7n)                \u002F\u002F power takes the modulus as { modulus }\ncrt([[3n, 10n]])                 \u002F\u002F crt takes each congruence as { residue, modulus }\nlinearCongruence(6n, 4n, 10n)    \u002F\u002F linearCongruence takes the modulus as { modulus }\n","text",[103,941,938],{"__ignoreMap":113},[99,943,944,945,947,948,298],{},"The first three throw ",[103,946,297],{},". The rest throw ",[103,949,269],{},[951,952,953],"style",{},"html pre.shiki code .skH_V, html code.shiki .skH_V{--shiki-light:var(--shiki-token-keyword);--shiki-default:var(--shiki-token-keyword);--shiki-dark:var(--shiki-token-keyword)}html pre.shiki code .s38Sx, html code.shiki .s38Sx{--shiki-light:var(--ui-text-highlighted);--shiki-default:var(--ui-text-highlighted);--shiki-dark:var(--ui-text-highlighted)}html pre.shiki code .shU9J, html code.shiki .shU9J{--shiki-light:var(--shiki-token-string);--shiki-default:var(--shiki-token-string);--shiki-dark:var(--shiki-token-string)}html pre.shiki code .sK71F, html code.shiki .sK71F{--shiki-light:var(--shiki-token-function);--shiki-default:var(--shiki-token-function);--shiki-dark:var(--shiki-token-function)}html pre.shiki code .scIB-, html code.shiki .scIB-{--shiki-light:var(--shiki-token-comment);--shiki-default:var(--shiki-token-comment);--shiki-dark:var(--shiki-token-comment)}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":113,"searchDepth":141,"depth":141,"links":955},[956,957,958,959,960,961,962,963,964,965],{"id":96,"depth":141,"text":97},{"id":279,"depth":141,"text":280},{"id":377,"depth":141,"text":378},{"id":395,"depth":141,"text":396},{"id":407,"depth":141,"text":408},{"id":457,"depth":141,"text":458},{"id":574,"depth":141,"text":575},{"id":788,"depth":141,"text":789},{"id":919,"depth":141,"text":920},{"id":929,"depth":141,"text":930},"Use BigInt modular arithmetic, square roots and congruences from the curves package root","md",null,{"icon":970},"i-lucide-percent",{"title":972,"description":966},"BigInt modular arithmetic and square roots","XK13CptLDbrPv_wus8UQQfZBCoehsSR4t5I6t3gVMpg",[975,977],{"title":76,"path":77,"stem":78,"description":976,"children":-1},"Verify RFC 8032 Ed448 signatures with context and OpenPGP support",{"title":84,"path":85,"stem":86,"description":978,"children":-1},"Solve linear systems over a prime field with BigInt. Get rank, a nullspace, a proof when nothing solves it and exact integer determinants",1794497996729]