Package 

Class ByteArraySS58

  • All Implemented Interfaces:

    
    public final class ByteArraySS58
    
                        

    Wrapper over ByteArray for working with SS58

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final ByteArray accountId() Returns AccountId hashed using Algorithm.Blake2b for 256 bits if the provided ByteArray is bigger then SS58's public key's size.
      final String address(Integer type) Address for a specific network type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteArraySS58

        ByteArraySS58(ByteArray byteArray)
    • Method Detail

      • accountId

         final ByteArray accountId()

        Returns AccountId hashed using Algorithm.Blake2b for 256 bits if the provided ByteArray is bigger then SS58's public key's size. Otherwise, return a plain AccountId.

      • address

         final String address(Integer type)

        Address for a specific network type

        Parameters:
        type - network type to get address for