def decompress_if

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

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

169def decompress_if(+x: List<&2, Nat>, +y: List<&2, Nat>, ok: Bool) -> Maybe<&2, Point>:
170  match ok:
171    case True{}: Some{Point{x, y, F.one()}}
172    case False{}: None{}

Uses (6)

Used by (1)