Skip to content

Conversation

@Jon-edge
Copy link

@Jon-edge Jon-edge commented Jul 2, 2025


Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

Approved, but I don't think we actually need to add this.

Comment on lines +245 to +253
/**
* Get the private view key for a wallet.
* This key allows viewing incoming transactions without spending ability.
* WARNING: This is sensitive information - handle with care!
*/
async getPrivateViewKey(walletId: number): Promise<string> {
const walletInfo = await this.getWalletInfo(walletId)
return walletInfo.wi_extended.view_private_key
}
Copy link
Contributor

@swansontec swansontec Jul 2, 2025

Choose a reason for hiding this comment

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

Not sure if we even need this PR at all, since getWalletInfo already exists, and is accessible from the JS world. Couldn't the PoS app do these two lines just as well?

This seems like a documentation problem, not a code problem. If we had type definitions for the getWalletInfo return value, we could just put a /** Private view key */comment in the right place, and call it good.

Copy link
Contributor

Choose a reason for hiding this comment

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

Move this method to EdgeCurrencyTools in accountbased.

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.

3 participants