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

Test Vectors Don't Verify #14

Closed
Wind4Greg opened this issue Aug 17, 2022 · 1 comment
Closed

Test Vectors Don't Verify #14

Wind4Greg opened this issue Aug 17, 2022 · 1 comment

Comments

@Wind4Greg
Copy link
Contributor

When trying out the procedures of EdDSA Cryptosuite v2020 the test vectors would not verify. Also ran into some inconsistencies with the test vectors.

  • The private key "privateKeyBase58": "47QbyJEDqmHTzsdg8xzqXD8gqKuLufYRrKWTmB7eAaWHG2EAsQ2GUyqRqWWYT15dGuag52Sf3j4hs2mu7w52mgps" is a 64 byte quantity not a 32 byte quantity as needed for Ed25519.
  • The "seed_0": "9b937b81322d816cfab9d5a3baacc9b2a5febe4b149f126b3630f93a29527017" quantity corresponds to the private key for the public key given by "publicKeyBase58": "dbDmZLTWuEYYZNHFLKLoRkEX4sZykkSLNQLXvMUyMB1" so I used that in subsequent signature atemps.
  • Used https://www.npmjs.com/package/jsonld library to canonize the example VC.
  • Tried both a SHA256 prehash and direct into EdDSA signature algorithm (RFC8032 compliant) but was not able to obtain the hash given as: "proofValue": "z5SpZtDGGz5a89PJbQT2sgbRUiyyAGhhgjcf86aJHfYcfvPjxn6vej5na6kUzmw1jMAR9PJU9mowshQFFdGmDN14D",

What may be the issue?

Best Regards
Greg B.

@Wind4Greg
Copy link
Contributor Author

New test vectors have been generated.

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