Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.55 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.55 KB

Netki Wallet Name Resolver

JitPack Badge Maven Central

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 validation for Address Service endpoints.

This library relies on the dnssecjava project for DNSSEC validation of the Wallet Name resolution as well as TLSA Record resolution.

Library Inclusion

This library can be included directly from Maven Central / OSS Sonatype.

Maven
<dependency>
    <groupId>com.netki</groupId>
    <artifactId>wallet-name-resolver</artifactId>
</dependency>
Gradle
'com.netki:wallet-name-resolver:0.0.2+'

Example

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