Package com.syntifi.near.api.model.key
Class PublicKey
- java.lang.Object
-
- com.syntifi.near.api.model.key.KeySig
-
- com.syntifi.near.api.model.key.PublicKey
-
- All Implemented Interfaces:
com.syntifi.near.borshj.Borsh
public class PublicKey extends KeySig implements com.syntifi.near.borshj.Borsh
Holds a Near PublicKey- Since:
- 0.0.1
- Author:
- Alexandre Carvalho, Andre Bertolace
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getJsonPublicKey()
com.syntifi.crypto.key.AbstractPublicKey
getPublicKey()
static PublicKey
getPublicKeyFromJson(java.lang.String base58String)
-
Methods inherited from class com.syntifi.near.api.model.key.KeySig
fromEncodedBase58String, toEncodedBase58String, toString
-
-
-
-
Constructor Detail
-
PublicKey
public PublicKey()
-
PublicKey
public PublicKey(KeyType keyType, byte[] data)
Instantiate a Public Key- Parameters:
keyType
- the KeyTypedata
- the key bytes
-
-
Method Detail
-
getPublicKey
public com.syntifi.crypto.key.AbstractPublicKey getPublicKey()
-
getPublicKeyFromJson
public static PublicKey getPublicKeyFromJson(java.lang.String base58String)
-
getJsonPublicKey
public java.lang.String getJsonPublicKey()
-
-