Ecdsa.hmac: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/spec/crypto/secp256k1/ecdsa.bend as Ecdsa Lines 47-51 of bend-collections@1.0.0.0/spec/crypto/secp256k1/ecdsa.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/spec/crypto/secp256k1/ecdsa.bend&start_line=47&end_line=51 import Base import bend-collections@1.0.0.0/spec/crypto/hmac.bend as HM # HMAC-SHA256 (the key is looked at first; the value is HM.hmac's) def hmac(key: List<&2, U32>, msg: List<&2, U32>) -> List<&2, U32>: match key: case Nil{}: HM.hmac(Nil{}, msg) case k <> t: HM.hmac(k <> t, msg) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/spec/crypto/hmac.bend&name=hmac