atomicdata-dev / atomic-data-browser

This repo is no longer used! Code is moved to Atomic-Server
https://github.com/atomicdata-dev/atomic-server/issues
MIT License
56 stars 9 forks source link

Wrong signature - only in codesandbox with v0.33 #230

Closed joepio closed 2 years ago

joepio commented 2 years ago

In this codesandbox env I'm getting a wrong signature error when authentication happens. Diving a bit deeper makes it clear that the signToBase64 returns the wrong thing, only in codesandbox with v0.33:

const test = signToBase64(
  'test',
  'A/HPrEDqn+1KLZiOLwFOzknX3DAX8bbOmVt/+WCkrzM=',
);
test.then(console.log);

Locally: mWh7xwoBFAdj2vKdG4ACq0jGvxUtF8APjWEgHCEDXR1aCc2NBVLEgd9NR2N5hXqdDRZuYrwFKoFE4ZVZT5KJBQ== Codesandbox (v0.32.2): mWh7xwoBFAdj2vKdG4ACq0jGvxUtF8APjWEgHCEDXR1aCc2NBVLEgd9NR2N5hXqdDRZuYrwFKoFE4ZVZT5KJBQ== Codesandbox (v0.33.0): CKNpTllw1LZ33Fwm/Dkbx6lpvuQ+8hk3DrtA0BxntHV0AjNdkZvXdxCfhlAsiZ24Ofudcxx4bRylB+sHv3cQDA==

What's going on here?

joepio commented 2 years ago

https://github.com/paulmillr/noble-ed25519/issues/70

Not sure what the issue was. Locking the noble dependency fixed the issue, but I can't reproduce it.