def decode_33
bend-collections@1.0.0.0 · src/crypto/secp256k1/point.bend:188
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
import bend-collections@1.0.0.0/src/crypto/secp256k1/bytes.bend as B
188def decode_33(+pre: U32, +rest: List<&2, U32>) -> Maybe<&2, Point>:
189 +x = B.of_be(rest)
190 decode_c(x, U32.to_nat(U32.and(pre, 1)), Bool.and(Bool.or(U32.is_eq(pre, 2), U32.is_eq(pre, 3)), F.lt_p(x)))