spacemeshos / post

Spacemesh POST protocol implementation
MIT License
19 stars 20 forks source link

Fix incorrect seed length during verify #207

Closed fasmat closed 1 year ago

fasmat commented 1 year ago

In #205 the whole private key is passed to ed25519.NewKeyFromSeed while it should only be the first 32 bytes (the seed - the rest is the public key).

This PR fixes this oversight.

fasmat commented 1 year ago

👍 Perhaps postcli deserves some unit tests.

Will come with https://github.com/spacemeshos/post/issues/199