While looking at a logger PR I noticed there was some spaaam coming through, followed it upstream and discovered that our config serialization is a big janky... and likewise deserialization
Here's what a config looks like (safe to steal, this is a testing account):
While looking at a logger PR I noticed there was some spaaam coming through, followed it upstream and discovered that our config serialization is a big janky... and likewise deserialization
Here's what a config looks like (safe to steal, this is a testing account):
Specifically see
secretKey
,publicKey
andaddressRaw
. Those are the result of callingJSON.stringify
on aUint8Array
.When we go
JSON.parse
... those aren't converted back into the correct type... they're no just an Object.:melting_face: