copy method

  1. @override
EcKeyPairData copy()
override

Copies the private key.

Implementation

@override
EcKeyPairData copy() {
  if (hasBeenDestroyed) {
    throw StateError('Private key has been destroyed');
  }
  return EcKeyPairData(
    d: d,
    x: x,
    y: y,
    type: type,
    debugLabel: debugLabel,
  );
}