Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Imports for privateKeyToAddress, parseAndValidatePrivateKey, and privateKeyToPublicKey in web3.js/accounts.ts #6620

Closed
SantiagoDevRel opened this issue Nov 23, 2023 · 0 comments
Assignees
Labels
4.x 4.0 related

Comments

@SantiagoDevRel
Copy link
Member

import {
create,
decrypt,
encrypt,
hashMessage,
privateKeyToAccount,
recover,
recoverTransaction,
signTransaction,
sign,
Wallet,
} from 'web3-eth-accounts';

should import privateKeyToAddress, parseAndValidatePrivateKey, and privateKeyToPublicKey to the main package

import {
	create,
	decrypt,
	encrypt,
	hashMessage,
	privateKeyToAccount,
	recover,
	recoverTransaction,
	signTransaction,
	sign,
	Wallet,
	privateKeyToAddress, 
	parseAndValidatePrivateKey, 
	privateKeyToPublicKey,
} from 'web3-eth-accounts';

return {
signTransaction: signTransactionWithContext,
create: createWithContext,
privateKeyToAccount: privateKeyToAccountWithContext,
decrypt: decryptWithContext,
recoverTransaction,
hashMessage,
sign,
recover,
encrypt,
wallet,
};

should return privateKeyToAddress, parseAndValidatePrivateKey, and privateKeyToPublicKey to the main package

return {
	signTransaction: signTransactionWithContext,
	create: createWithContext,
	privateKeyToAccount: privateKeyToAccountWithContext,
	decrypt: decryptWithContext,
	recoverTransaction,
	hashMessage,
	sign,
	recover,
	encrypt,
	wallet,
	privateKeyToAddress, 
	parseAndValidatePrivateKey, 
	privateKeyToPublicKey,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x 4.0 related
Projects
None yet
Development

No branches or pull requests

2 participants