Open
Description
This is a feature request to add new validator that will validate string if it is valid XRP address.
specification
There are two types of XRP addresses:
- classic address
- xAddress
classic address is base58 string, that starts with small r
and can be between 25 and 35 characters long
xAddress is "extension" of classic address, that also includes destinationTag and is different per network (test & mainnet).
proposal
Add new isXRPAddress
validator, that will check if string is vallid XRP classic address. User can also specify options, so that validator can check if address is specific address and/or xAddress.
{
classicAddress: boolean
xAddress: {
test: boolean
}
}