Overview
The Go-wallet-sdk is a robust Go-based wallet solution that supports multiple blockchain networks, offering functionalities such as private key generation, address creation, transaction assembly, and signing—all available offline. This SDK is designed for seamless integration into web, mobile, or desktop applications, providing developers with tools to interact securely with various blockchains.
Key Features
- Multi-chain support: Ethereum, Bitcoin, Solana, Cosmos, and more.
- Security: Implements BIP32, BIP39, ECDSA, and ED25519 algorithms.
- Modular design: Independent modules for each supported blockchain.
👉 Explore the full range of features
Installation and Setup
Installing via go get
To integrate the SDK, run:
go get github.com/okx/go-wallet-sdk Supported Packages
Core Packages:
crypto: Encryption and signing utilities (BIP32, BIP39, ECDSA).coins: Blockchain-specific modules (e.g.,ethereum,bitcoin).
Core Functionalities
1. Cryptographic Operations (crypto)
- BIP32/BIP39: Generate mnemonics, derive keys.
- ECDSA/ED25519: Sign messages and transactions.
- Hashing: SHA256, Base64 encoding/decoding.
2. Blockchain-Specific Modules
Each module (e.g., ethereum-sdk, bitcoin-sdk) includes:
- Address generation (
NewAddress). - Transaction signing (
SignTransaction). - Message signing (
SignMessage).
👉 View code examples on GitHub
Supported Blockchains
| Blockchain | Derivation Path | Supported Coins |
|-------------|--------------------------|---------------------------------|
| Bitcoin | m/44'/0'/0'/0/0 | BTC, BCH, LTC, Doge |
| Ethereum| m/44'/60'/0'/0/0 | ETH, Arbitrum, Polygon, Optimism|
| Cosmos | m/44'/118'/0'/0/0 | ATOM, Osmosis, Kava |
| Solana | m/44'/501'/0'/0/0 | SOL |
FAQ
Q1: How do I generate a new wallet address?
address := coins.NewAddress(privateKey) Q2: Can I use this SDK for EVM-compatible chains?
Yes! Modules like ethereum-sdk support 40+ EVM chains (e.g., BNB Chain, Avalanche).
Q3: Is offline signing supported?
Absolutely. All cryptographic operations are performed locally.
Q4: Where can I find test cases?
Each module’s tests/ directory on GitHub includes usage examples.
Conclusion
The Go-wallet-sdk simplifies blockchain integration with its modular design, extensive cryptographic tools, and multi-chain support. Whether you’re building a DeFi app or a custodial service, this SDK provides the flexibility and security needed for seamless Web3 development.