Field.finv: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/field.bend as Field Lines 96-98 of bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/field.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/field.bend&start_line=96&end_line=98 import Base # a^(p - 2): the inverse of a nonzero a (Fermat), 0 for 0 (RFC 7748 section 5) def finv(+p: Nat, a: Nat) -> Nat: fpow(p, a, Nat.sub(p, 2n)) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.sub https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/field.bend&name=fpow