def sign

bend-collections@1.0.0.0 · src/crypto/secp256k1/ecdsa.bend:154

import bend-collections@1.0.0.0/src/crypto/secp256k1/ecdsa.bend as Ecdsa
import Base
import bend-collections@1.0.0.0/src/crypto/secp256k1/bytes.bend as B

154# the low-S signature of a 32-byte hash under a 32-byte secret key
155def sign(+sk: List<&2, U32>, +h: List<&2, U32>) -> Maybe<&2, Signature>:
156  sign_h(sk, h, B.has_len(32n, h))

Uses (6)

Used by (2)