Open andrewkmin opened 1 year ago
hi! :wave: thanks for reporting this issue!
This API is not currently supported, I have created an issue in our tracker and will reply if there are further updates!
👋 Hi there, any updates on this? Thanks!
Hi there, just wanted to follow up on this again :) hope all is well
Describe the bug
For reference, here is how we make use of the (node) built-in crypto library: https://github.com/tkhq/sdk/blob/89d9999757e004ce6f15ca5c91ea7378774c4ee2/packages/api-key-stamper/src/nodecrypto.ts#L11-L19. Note we use the
jwk
format. Also worth noting is that the following lineconst sign = crypto.createSign("SHA256");
is not working; (addressed separately, here)Full error:
Link to the blitz that caused the error
https://stackblitz.com/edit/github-4gfbpg?file=examples%2Fwith-ethers%2Fsrc%2Findex.ts
Steps to reproduce
examples/with-ethers
.env.local
(following.env.local.example
)pnpm run start
Expected behavior
Expect the script to successfully run, leading to an output like: https://github.com/tkhq/sdk/tree/main/examples/with-ethers#3-running-the-scripts. Under the hood, the script/example should be using node crypto libraries to sign API requests.
Parity with Local
Screenshots
No response
Platform
Additional context
No response