-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDKs - Provide an arbitrary byte sign/verify #10
Comments
This request is often meant to allow a "sign in" in a web3 context. In lieu of arbitrary byte signing maybe something like this arc would be useful |
In fact, maybe this should just validate a transaction rather than arbitrary bytes? |
I think a function for arbitrary signing/verifying would be nice. If someone wanted to verify a transaction they could just leverage that. Ideally, I think we should have functions similar to the JavaScript SDK In my ideal world:
|
At the moment the Sign/Verify bytes functions prepend the domain separator
MX
prior to signing/checking. This is fine in the case that it is desired but if a user is trying to do something like validate a signature on a transaction for auth purposes it makes the processes awkward and the user has to write their own ED25519 sign/verify functions.The SDKs should provide some
rawsign
/rawverify
that does not prepend the domain separator.The text was updated successfully, but these errors were encountered: