Interface Utils

  • All Known Implementing Classes:
    Utils.CppProxy

    public interface Utils
    Utility class providing blockchain related utility methods. Accessed from ZumoKit class.

    This class provides mnemonic phrase generation utility and Bitcoin & Ethereum address validation utilities.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  Utils.CppProxy  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String generateMnemonic​(int wordCount)
      Generates mnemonic seed phrase used in wallet creation process.
      boolean isValidAddress​(java.lang.String currencyCode, java.lang.String address, java.lang.String network)
      Validates Ethereum, Bitcoin or Bitcoin SV address.
    • Method Detail

      • generateMnemonic

        java.lang.String generateMnemonic​(int wordCount)
        Generates mnemonic seed phrase used in wallet creation process.
        Parameters:
        wordCount - 12, 15, 18, 21 or 24
      • isValidAddress

        boolean isValidAddress​(java.lang.String currencyCode,
                               java.lang.String address,
                               java.lang.String network)
        Validates Ethereum, Bitcoin or Bitcoin SV address.
        Parameters:
        currencyCode - 'ETH', 'BTC' or 'BSV'
        address - blockchain address
        network - network type
        Returns:
        true if address is valid on the given network
        See Also:
        NetworkType