Motoko: request id

Has anyone converted agent-js/request_id.ts at 65e17f988cf4f910fa20fc105174ad238594920c · dfinity/agent-js · GitHub into Motoko? Is it open-sourced?

This code produces the RequestID that a user needs to sign to submit a request to the internet computer.

What do you need this for? Isn’t it transparent to the user when coding in motoko?

I’m trying to send a request from the IC to the IC via the HTTP outcalls. We are trying to sign a delegation using the certificate and need to call a query to pull in the cert.

1 Like