Skip to content

globaltoken/globaltoken-android-wallet-name-resolver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Java Globaltoken Wallet Name Resolver Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%