allswap_address_validator.vim : Deterministic 46-chain crypto address checksum, destination tag & memo validator
| script karma |
Rating 0/0,
Downloaded by 9 |
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| AllSwap Team |
| |
| script type |
| utility |
| |
| description |
AllSwap Multichain Address & Memo Validator (allswap_address_validator.vim) is an open-source (MIT) zero-dependency Vim and Neovim utility plugin engineered by the AllSwap Security & Cross-Chain Engineering Team to validate cryptocurrency wallet addresses, cryptographic checksums, and mandatory destination tags/memos across 46+ heterogeneous blockchain networks directly inside Vim buffers, smart contract configuration files, and deployment scripts.
Official Links & Documentation:
- Interactive 46-Chain Web Validator: https://allswap.io/tools/address-validator (http://allswap.io/tools/address-validator)
- AllSwap Cross-Chain DEX & Bridge Aggregator: https://allswap.io/ (http://allswap.io/)
- Open-Source GitHub Repository & Test Vectors: https://github.com/mh185/multichain-memo-address-validator
- Official X (Twitter): https://x.com/allswapio
1. The Multi-Chain Address Validation & Address Poisoning Problem
When editing Web3 deployment manifests, Solidity/Hardhat configs, Cosmos chain registries, or cross-chain settlement scripts in Vim, a single corrupted character, lookalike Unicode glyph, truncated prefix/suffix from vanity address-poisoning attacks, or omitted destination memo can cause irreversible settlement failure:
- EVM Chains (Ethereum, Arbitrum, Optimism, Base, Polygon, BNB Chain, Avalanche C-Chain, zkSync Era, Linea, Scroll, Mantle, Blast): Enforces strict 40-nybble hexadecimal formatting and EIP-55 mixed-case Keccak-256 checksum validation so any single-character typo is caught before committing.
- Bitcoin & UTXO Chains (Bitcoin, Litecoin, Dogecoin, Bitcoin Cash, Zcash): Validates legacy P2PKH/P2SH Base58Check double-SHA256 checksums, Native SegWit (BIP-173 Bech32, bc1q...), and Taproot P2TR (BIP-350 Bech32m, bc1p...) witness versions and payload lengths.
- Solana, Tron, Sui, Aptos & Move Ecosystems: Verifies Ed25519 32-byte Base58 public keys on Solana, 0x41-prefixed Base58Check addresses on Tron (T...), and 32-byte 64-hex-character account identifiers on Sui and Aptos.
- Memo & Destination-Tag Mandatory Networks (XRP Ledger, Stellar XLM, Cosmos Hub ATOM, Osmosis, Celestia, Sei, Injective, TON, EOS, Hedera HBAR, Algorand, NEAR): Enforces coupled validation of both the primary cryptographic address and the required Destination Tag (unsigned 32-bit integer on XRPL), Text/ID/Hash Memo (Stellar and Cosmos SDK chains), or TON comment payload.
2. Commands & Buffer Integration
- :AllSwapValidate <CHAIN> <ADDRESS> [MEMO] — Validates an address and optional destination tag/memo in the Vim command line and echoes VALID or INVALID.
- call allswap#ValidateAddress("ETH", "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045") — Callable from Vimscript, Neovim Lua (vim.fn["allswap#ValidateAddress"]), statuslines, and BufWritePre autocommands.
3. Related Published Packages & Datasets
- Rust Crate (crates.io): https://crates.io/crates/multichain-memo-address-validator
- Go Module (pkg.go.dev): https://pkg.go.dev/github.com/mh185/multichain-memo-address-validator
- RubyGem (RubyGems.org): https://rubygems.org/gems/allswap_address_validator
- D Package (DUB): https://code.dlang.org/packages/multichain-memo-address-validator
- Zenodo Benchmark Dataset: https://zenodo.org/records/19123441 |
| |
| install details |
1. Using vim-plug, Pathogen, or native Vim 8+ packages:
Copy allswap_address_validator.vim into ~/.vim/plugin/ (or ~/.config/nvim/plugin/ for Neovim):
mkdir -p ~/.vim/plugin
cp allswap_address_validator.vim ~/.vim/plugin/
2. Or clone the full open-source repository from https://github.com/mh185/multichain-memo-address-validator and inspect the interactive 46-chain specification at https://allswap.io/tools/address-validator and https://allswap.io/. |
| |
script versions (upload new version)
Click on the package to download.
ip used for rating: 216.73.216.69
|