SecretKey
should be enough to verify note's ownership
#146
Labels
type:enhancement
Issues concerning code or feature improvement (performance, refactoring, etc)
Milestone
Summary
We created the
ViewKey
as a way to delegate the ownership check, however we don't always do that: for example, in the current implementation of the wallet (CLI and web) we're verifying the note locally.In order to do so, we need to create a
ViewKey
even if we have access to aSecretKey
, that should be enough to verify the note's ownership.Possible solution design or implementation
As the
ViewKey
has, theSecretKey
should implement theowns
method as well.Additional context
The hope is to reduce not only the code involved, but at least a bit of the operations too.
The text was updated successfully, but these errors were encountered: