Skip to content

Conversation

@nothingalike
Copy link
Member

No description provided.

@nothingalike nothingalike requested a review from tweakch November 26, 2021 19:22
Comment on lines 79 to 88
public string EncryptKeys(PrivateKey accountPrivateKey, PublicKey accountPublicKey)
{
return JsonSerializer.Serialize((accountPrivateKey.Encrypt("spending_password"), accountPublicKey));
}

public (PrivateKey, PublicKey) DecryptKeys(string accountNode)
{
var load = JsonSerializer.Deserialize<(PrivateKey, PublicKey)>(accountNode);
return (load.Item1.Decrypt("spending_password"), load.Item2);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tweakch im thinking we actually store it here too. I think this "manager" can handle the persistence of the items we deal with. thoughts?

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

Successfully merging this pull request may close these issues.

2 participants