A lightweight JavaScript library to validate Beldex addresses, support for Mainnet, Testnet, and Devnet.
- Validate Beldex standard address
- Checksum verification using Keccak-256
- Base58 decoding
Download the latest maven:
apache-maven-3.9.x-bin.zip
C:\maven\apache-maven-3.9.9
Clone Address-validator:
git clone https://github.com/julie882/Address-Validator.git
Step 1 : Add dependency in the pom.xml
<dependencies>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
<version>1.78</version>
</dependency>
</dependencies>
Step 2: Add the Plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>
Step 3: To compile
cd ADDRESS_VALIDATE
mvn clean install
./run.ps1
This will compile the project and install the library into the local maven repository
Specifically:
java -cp ".;target/address-validator-1.0.jar;adrs;$env:USERPROFILE\.m2\repository\org\bouncycastle\bcprov-jdk18on\1.78\bcprov-jdk18on-1.78.jar" main
Important
mvn install is only required once.
After installing, any Maven project on that machine can use the dependency.