pinax-network / substreams-sink-websockets

Substreams Sink Websockets
https://substreams-sink-websockets-production.up.railway.app
MIT License
2 stars 1 forks source link

Update signature process #34

Closed DenisCarriere closed 11 months ago

DenisCarriere commented 11 months ago

Should only need to replace this line

https://github.com/pinax-network/substreams-sink-websockets/blob/3141631738bfc135262ed8c066efd8d30c5bef94/src/fetch/POST.ts#L29C22-L30C1

Before

const msg = Buffer.from(timestamp + body);

After

const expiry = req.headers.get("x-signature-expiry");
const msg = Buffer.from(expiry);
DenisCarriere commented 11 months ago

Implemented