public class BitcoinAddressUtils extends Object
Constructor and Description |
---|
BitcoinAddressUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isColoredAddress(String address)
Determines if the address is of the open asset type
|
static boolean |
isRegularAddress(String address)
Determines if the address is of the regular type
|
static String |
toColoredAddress(String regularAddress)
Tries to convert a regular address to an open assets address
Will throw an exception if there is a conversion problem
|
static String |
toRegularAddress(String coloredAddress)
Tries to convert an open assets address to a regular address
Will throw an exception if there is a conversion problem
|
public static String toColoredAddress(String regularAddress) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public static String toRegularAddress(String coloredAddress) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public static boolean isColoredAddress(String address) throws NoSuchAlgorithmException
NoSuchAlgorithmException
public static boolean isRegularAddress(String address) throws NoSuchAlgorithmException
NoSuchAlgorithmException
Copyright © 2016 Metaco. All rights reserved.