https://github.com/schildbach/java-wns-resolver
Java Wallet Name Resolver Library
https://github.com/schildbach/java-wns-resolver
Last synced: 3 months ago
JSON representation
Java Wallet Name Resolver Library
- Host: GitHub
- URL: https://github.com/schildbach/java-wns-resolver
- Owner: schildbach
- License: bsd-3-clause
- Created: 2016-03-09T10:46:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-08T16:36:51.000Z (about 9 years ago)
- Last Synced: 2025-03-26T10:52:17.523Z (3 months ago)
- Language: Java
- Size: 59.6 KB
- Stars: 2
- Watchers: 2
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Netki Wallet Name Resolver

This Wallet Name resolver library allows you go resolve a Wallet Name using DNS + DNSSEC. Additionally, the library has
built-in support for optional [TLSA Record](https://tools.ietf.org/html/rfc6698) validation for Address Service endpoints.This library relies on the [dnssecjava](https://github.com/ibauersachs/dnssecjava) project for DNSSEC validation of
the Wallet Name resolution as well as [TLSA Record](https://tools.ietf.org/html/rfc6698) resolution.### Library Inclusion
This library can be included directly from Maven Central / OSS Sonatype.
##### Maven
com.netki
wallet-name-resolver
##### Gradle'com.netki:wallet-name-resolver:0.0.2+'
### Example
```java
import com.netki.WalletNameResolver;
import com.netki.exceptions.WalletNameLookupException;public class WalletNameResolverExample {
public static void main(String[] args) throws Exception {
try {
WalletNameResolver resolver = new WalletNameResolver();
String result = resolver.resolve("wallet.mattdavid.xyz", "btc");
System.out.println(String.format("Resolved BTC Address for wallet.mattdavid.xyz: %s", result));
} catch (WalletNameLookupException e) {
e.printStackTrace();
}
}
}
```