MoneroPublicKey.fromHex constructor

MoneroPublicKey.fromHex(
  1. String keyHex
)

Factory method for creating an MoneroPublicKey from a hex.

Implementation

factory MoneroPublicKey.fromHex(String keyHex) {
  return MoneroPublicKey.fromBytes(BytesUtils.fromHexString(keyHex));
}