Class AccountKeyPublicWrapper


  • public class AccountKeyPublicWrapper
    extends java.lang.Object
    Representing an AccountKeyPublicWrapper which wraps all of static methods of AccountKeyPublic
    • Constructor Summary

      Constructors 
      Constructor Description
      AccountKeyPublicWrapper()
      Creates an AccountKeyPublicWrapper instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AccountKeyPublic decode​(byte[] rlpEncodedKey)
      Decodes a RLP-encoded AccountKeyPublic byte array
      AccountKeyPublic decode​(java.lang.String rlpEncodedKey)
      Decodes a RLP-encoded AccountKeyPublic string
      AccountKeyPublic fromPublicKey​(java.lang.String publicKey)
      Creates AccountKeyPublic instance from ECC Public Key.
      AccountKeyPublic fromXYPoint​(java.lang.String x, java.lang.String y)
      Creates AccountKeyPublic instance from Elliptic curve x, y coordinates.
      java.lang.String getType()
      Returns an AccountKeyPublic's type attribute
      • Methods inherited from class java.lang.Object

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

      • AccountKeyPublicWrapper

        public AccountKeyPublicWrapper()
        Creates an AccountKeyPublicWrapper instance.
    • Method Detail

      • fromXYPoint

        public AccountKeyPublic fromXYPoint​(java.lang.String x,
                                            java.lang.String y)
        Creates AccountKeyPublic instance from Elliptic curve x, y coordinates.
        Parameters:
        x - The point x
        y - The point y
        Returns:
        AccountKeyPublic
      • fromPublicKey

        public AccountKeyPublic fromPublicKey​(java.lang.String publicKey)
        Creates AccountKeyPublic instance from ECC Public Key.
        Parameters:
        publicKey - The public key string. This public key can be in format of compressed or uncompressed.
        Returns:
        AccountKeyPublic
      • decode

        public AccountKeyPublic decode​(java.lang.String rlpEncodedKey)
        Decodes a RLP-encoded AccountKeyPublic string
        Parameters:
        rlpEncodedKey - RLP-encoded AccountKeyPublic string.
        Returns:
        AccountKeyPublic
      • decode

        public AccountKeyPublic decode​(byte[] rlpEncodedKey)
        Decodes a RLP-encoded AccountKeyPublic byte array
        Parameters:
        rlpEncodedKey - RLP-encoded AccountKeyPublic byte array
        Returns:
        AccountKeyPublic
      • getType

        public java.lang.String getType()
        Returns an AccountKeyPublic's type attribute
        Returns:
        AccountKeyPublic's type attribute