Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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();
}

}

}
```