Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schildbach/java-wns-resolver
Java Wallet Name Resolver Library
https://github.com/schildbach/java-wns-resolver
Last synced: about 1 month 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-08T16:36:51.000Z (over 8 years ago)
- Last Synced: 2024-10-12T20:27:34.853Z (2 months ago)
- Language: Java
- Size: 59.6 KB
- Stars: 2
- Watchers: 3
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Netki Wallet Name Resolver
![JitPack Badge](https://img.shields.io/github/tag/netkicorp/java-wns-resolver.svg?label=JitPack)
![Maven Central](https://img.shields.io/maven-central/v/com.netki/wallet-name-resolver.svg)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();
}
}
}
```