Closed Zetanova closed 3 months ago
Could you provide code or algorithm to reproduce this?
Use the included unit test. The utility function Nkeys.FromPublicKey
will never produce a valid NKeyPair instance
src/Tests/UnitTests/TestNkeys.cs
@Zetanova This looks good. Could you please add to the main comment a discussion of the primary change, i.e., what was wrong with the old code and why you put in the code that you did.
The currently
Nkeys.FromPublicKey
method produces aNKeyPair
with an invalidPublicKey
of 56 bytes