Adds combined/unified bech32+EVM wallet utility functions #195
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add unified Wallet Utility Functions to @sei-js/evm
Implements wallet utility functions for address generation and validation in both native and EVM context.
Changes
Added new utility functions in
src/utils/walletUtils.ts
:generateAddressesFromPrivateKey
: Generates Sei and EVM addresses from a private keyderiveAddressesFromPublicKey
: Derives Sei and EVM addresses from a public keyisValidSeiAddress
: Validates a Sei addressisValidEvmAddress
: Validates an EVM addressCreated unit tests in
src/utils/walletUtils.spec.ts
Updated README.md for new utilities
Bumped package version from 1.4.0 to 1.5.0
Updated deps, specifically
bech32
to latestImplementation Details
bech32
library for Sei address encoding and validationTesting
Documentation
Impact
Adds easily accessible capabilities for developers working with both Sei and EVM addresses, providing a unified interface for address operations, verification and testing