java.lang.Object
com.hedera.hashgraph.sdk.Key
com.hedera.hashgraph.sdk.EvmAddress
The ID for a cryptocurrency account on Hedera.
-
Field Summary
Fields inherited from class com.hedera.hashgraph.sdk.Key
ECDSA_SECP256K1_CURVE, ECDSA_SECP256K1_DOMAIN, ID_EC_PUBLIC_KEY, ID_ECDSA_SECP256K1, ID_ED25519 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean(package private) static EvmAddressfromAliasBytes(com.google.protobuf.ByteString aliasBytes) static EvmAddressfromBytes(byte[] bytes) Convert a byte array to an ethereum address.static EvmAddressfromString(String evmAddress) Convert a string to an ethereum address.inthashCode()byte[]toBytes()Create the byte array.(package private) KeySerialize this key as a protobuf objecttoString()Methods inherited from class com.hedera.hashgraph.sdk.Key
fromProtobufKey
-
Constructor Details
-
EvmAddress
public EvmAddress(byte[] bytes) Constructor- Parameters:
bytes- the byte array representation of the address
-
-
Method Details
-
fromString
Convert a string to an ethereum address.- Parameters:
evmAddress- the string- Returns:
- the ethereum address
-
fromAliasBytes
-
fromBytes
Convert a byte array to an ethereum address.- Parameters:
bytes- the byte array- Returns:
- the ethereum address
-
toProtobufKey
Key toProtobufKey()Description copied from class:KeySerialize this key as a protobuf object- Specified by:
toProtobufKeyin classKey
-
toBytes
public byte[] toBytes()Description copied from class:KeyCreate the byte array. -
toString
-
hashCode
public int hashCode() -
equals
-