Skip to content
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

[Feature request] Toggle to print Proof.Y #8

Open
callebtc opened this issue Jun 25, 2024 · 0 comments
Open

[Feature request] Toggle to print Proof.Y #8

callebtc opened this issue Jun 25, 2024 · 0 comments

Comments

@callebtc
Copy link

callebtc commented Jun 25, 2024

It would be great to have a toggle that also prints the Proof.Y in the output JSON for a decoded token.

The Proof.Y can be calculated by computing hash_to_curve(secret) (see NUT-00). The hash_to_curve requires sha256 and secp256k1 (to check if the point is on the curve). An implementation in cashu-ts can be found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant