Three more follow up questions:
1) in my linked repo above, the Kotlin js compiler isn't transpiling the npm-sourced js libs to wasm; why?
2) is it possible for the fancy Kotlin compiler(s) to auto generate Kotlin bindings for esm modules? It seems ridiculous that I have to do it manually -- then the compiler tells me I can't use specific types? It knows!
3) bonus question for the elite: how would you write Kotlin bindings for hmacSha256Sync:
import { hmac } from '@noble/hashes/hmac';
import { sha256 } from '@noble/hashes/sha256';
secp256k1.etc.hmacSha256Sync = (key, ...msgs) => hmac(sha256, key, secp256k1.etc.concatBytes(...msgs));