def mul_go
import bend-collections@1.0.0.0/src/crypto/secp256k1/point.bend as Pointimport Base
112def mul_go(bits: List<&2, Nat>, +p: Point, +r: Point) -> Point:
113 match bits:
114 case Nil{}: r
115 case b <> t: mul_go(t, p, step(b, p, dbl(r)))