def encode_compressed

bend-collections@1.0.0.0 · spec/crypto/secp256k1/curve.bend:244

import bend-collections@1.0.0.0/spec/crypto/secp256k1/curve.bend as Curve
import Base

244# compressed: 02 or 03 (the parity of y), then x
245def encode_compressed(+p: Nat, a: SPoint) -> List<&2, U32>:
246  enc_c(to_affine(p, a))

Uses (6)

Used by (1)