def inv
import bend-collections@1.0.0.0/src/crypto/secp256k1/scalar.bend as Scalarimport Base
90# a^(n - 2): the inverse of a nonzero a, 0 for 0
91def inv(+a: List<&2, Nat>) -> List<&2, Nat>:
92 pow(a, inv_bits(), one())
import bend-collections@1.0.0.0/src/crypto/secp256k1/scalar.bend as Scalarimport Base
90# a^(n - 2): the inverse of a nonzero a, 0 for 0
91def inv(+a: List<&2, Nat>) -> List<&2, Nat>:
92 pow(a, inv_bits(), one())