zilpay / zil-pay

ZilPay browser extension enables browsing Zilliqa blockchain enabled websites.
https://zilpay.io
Other
3 stars 1 forks source link

The sign() function for data does not match the reproduction of a signature in scilla or the sdk example #50

Closed csajedi closed 3 years ago

csajedi commented 3 years ago

Describe the bug The message sign() function produces a signature that does not pass the verification node.js code at the same place in the documentation, incidentally it also does not pass the on-chain scilla function either.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://zilpay.github.io/zilpay-docs/zilliqa-provider/#sign-message
  2. Follow steps 3 . See error

Expected behavior At least I'd hope that the sign method works with the scilla lang, otherwise it is of very little use

Screenshots You can see an example of a sign() produced message being rejected on chain with this transaction https://viewblock.io/zilliqa/tx/0x03fa9b1d3595a7d6aac1cbf5838db9148687c07af894e6eb05accf701f7364ef

Desktop (please complete the following information):

hicaru commented 3 years ago

hello please learn more about verify method of scilla. ZIlliqa Schnorr Test.pdf