def words

bend-collections@1.0.0.0 · spec/crypto/secp256k1/ecdsa.bend:252

import bend-collections@1.0.0.0/spec/crypto/secp256k1/ecdsa.bend as Ecdsa
import Base
import bend-collections@1.0.0.0/spec/crypto/secp256k1/curve.bend as CV

252def words(k: Nat, +bs: List<&2, U32>) -> List<&2, U32>:
253  match k:
254    case 0n: Nil{}
255    case 1n+j: word(CV.head(bs), CV.head(CV.after(1n, bs)), CV.head(CV.after(2n, bs)), CV.head(CV.after(3n, bs))) <> words(j, CV.after(4n, bs))

Uses (6)

Used by (1)