def inv

bend-collections@1.0.0.0 · src/crypto/secp256k1/scalar.bend:90

import bend-collections@1.0.0.0/src/crypto/secp256k1/scalar.bend as Scalar
import 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())

Uses (5)

Used by (3)