def exec

bend-collections@1.0.0.0 · src/crypto/secp256k1/point.bend:39

import bend-collections@1.0.0.0/src/crypto/secp256k1/point.bend as Point
import Base
import bend-collections@1.0.0.0/src/crypto/secp256k1/field.bend as F

39def exec(op: Op, +regs: List<&2, List<&2, Nat>>) -> List<&2, Nat>:
40  match op:
41    case OAdd{i, j}: F.add(nth(i, regs), nth(j, regs))
42    case OSub{i, j}: F.sub(nth(i, regs), nth(j, regs))
43    case OMul{i, j}: F.mul(nth(i, regs), nth(j, regs))

Uses (7)

Used by (1)