def to_affine

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

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

145# (X / Z, Y / Z); (0, 0) for the point at infinity
146def to_affine(p: Point) -> Affine:
147  match p:
148    case Point{x, y, z}: to_affine_z(x, y, F.inv(z))

Uses (4)

Used by (8)