XRPAddress.fromPublicKeyBytes constructor

XRPAddress.fromPublicKeyBytes(
  1. List<int> bytes,
  2. XRPKeyAlgorithm algorithm
)

Creates an XRPAddress from a byte representation.

Implementation

factory XRPAddress.fromPublicKeyBytes(
    List<int> bytes, XRPKeyAlgorithm algorithm) {
  return XRPAddress._(
      XrpAddrEncoder().encodeKey(bytes, {"curve_type": algorithm.curveType}),
      null);
}