You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnewPromise((resolve)=>{cyptoWorker.postMessage('sha384',messageToSign);cryptoWorker.onmessage=function(response){if(response.type=='sha384'&&response.messageToSign==messageToSign){// or use a message indexresolve(response.digest)}};});
and then get a message event back with the signed
The text was updated successfully, but these errors were encountered:
No, and it won't be. It'll be build into amp-analytics and while other components will be able to use it, it'll only work if amp-analytics is on the page.
More concretely we should generate a binary for https://github.com/ampproject/amphtml/blob/master/third_party/closure-library/sha384-generated.js that can live in a worker and performs signature generation in response to messages.
Eventually we'd have an API like
and then get a message event back with the signed
The text was updated successfully, but these errors were encountered: