Package com.klaytn.caver.account.wrapper
Class AccountKeyPublicWrapper
- java.lang.Object
-
- com.klaytn.caver.account.wrapper.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 arrayAccountKeyPublic
decode(java.lang.String rlpEncodedKey)
Decodes a RLP-encoded AccountKeyPublic stringAccountKeyPublic
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
-
-
-
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 xy
- 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
-
-