Field.minv: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/spec/crypto/secp256k1/field.bend as Field Lines 62-64 of bend-collections@1.0.0.0/spec/crypto/secp256k1/field.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/spec/crypto/secp256k1/field.bend&start_line=62&end_line=64 import Base # a^(m - 2): for a prime m the inverse of a nonzero a (Fermat); 0 for 0 def minv(+m: Nat, a: Nat) -> Nat: mpow(m, a, Nat.sub(m, 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@1.0.0.0/spec/crypto/secp256k1/field.bend&name=mpow