Package org.symbol.sdk.symbol.models
Class PublicKey
java.lang.Object
org.symbol.sdk.ByteArray
org.symbol.sdk.symbol.models.PublicKey
- All Implemented Interfaces:
Serializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PublicKeydeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.static PublicKeyParses a raw value (PublicKey, hex string, byte array, or SDK ByteArray) into a PublicKey.
-
Field Details
-
SIZE
public static final int SIZE- See Also:
-
-
Constructor Details
-
PublicKey
public PublicKey(byte[] bytes) Creates a new PublicKey.- Parameters:
bytes- Bytes.
-
PublicKey
public PublicKey()Creates a new PublicKey.
-
-
Method Details
-
parse
- PublicKey.parse
- Parses a raw value (PublicKey, hex string, byte array, or SDK ByteArray) into a PublicKey.
- Parameters:
rawValue- Raw value.- Returns:
- Parsed value.
-
deserialize
- PublicKey.deserialize
- Deserializes an instance of this object from a byte payload.
- Parameters:
buffer- Output writer.- Returns:
- Deserialized object.
- Throws:
IndexOutOfBoundsException- if the buffer is truncated or a declared length overruns itIllegalArgumentException- if a field carries an invalid value (e.g. a reserved field or unknown discriminator)
-