copy method

KeyPair copy()

Creates a copy of this key.

Implementation

KeyPair copy() => KeyPair(
      publicKey: Uint8List.fromList(publicKey),
      secretKey: secretKey.copy(),
    );