From 713ea8e1b110fa22bedc7383137c652c61516105 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Wed, 3 Aug 2022 17:18:14 +0200 Subject: [PATCH] refactor: Rename key.dart to keys.dart --- lib/omemo_dart.dart | 2 +- lib/src/crypto.dart | 2 +- lib/src/double_ratchet/double_ratchet.dart | 2 +- lib/src/{key.dart => keys.dart} | 0 lib/src/omemo/bundle.dart | 2 +- lib/src/x3dh/x3dh.dart | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename lib/src/{key.dart => keys.dart} (100%) diff --git a/lib/omemo_dart.dart b/lib/omemo_dart.dart index 40ef8b6..ae10e34 100644 --- a/lib/omemo_dart.dart +++ b/lib/omemo_dart.dart @@ -3,6 +3,6 @@ library omemo_dart; export 'src/double_ratchet/double_ratchet.dart'; export 'src/errors.dart'; export 'src/helpers.dart'; -export 'src/key.dart'; +export 'src/keys.dart'; export 'src/omemo/bundle.dart'; export 'src/x3dh/x3dh.dart'; diff --git a/lib/src/crypto.dart b/lib/src/crypto.dart index 77c36f3..f504420 100644 --- a/lib/src/crypto.dart +++ b/lib/src/crypto.dart @@ -1,5 +1,5 @@ import 'package:cryptography/cryptography.dart'; -import 'package:omemo_dart/src/key.dart'; +import 'package:omemo_dart/src/keys.dart'; /// Performs X25519 with [kp] and [pk]. If [identityKey] is set, then /// it indicates which of [kp] ([identityKey] == 1) or [pk] ([identityKey] == 2) diff --git a/lib/src/double_ratchet/double_ratchet.dart b/lib/src/double_ratchet/double_ratchet.dart index f9dd156..ef8f8ef 100644 --- a/lib/src/double_ratchet/double_ratchet.dart +++ b/lib/src/double_ratchet/double_ratchet.dart @@ -6,7 +6,7 @@ import 'package:omemo_dart/src/double_ratchet/crypto.dart'; import 'package:omemo_dart/src/double_ratchet/kdf.dart'; import 'package:omemo_dart/src/errors.dart'; import 'package:omemo_dart/src/helpers.dart'; -import 'package:omemo_dart/src/key.dart'; +import 'package:omemo_dart/src/keys.dart'; /// Amount of messages we may skip per session const maxSkip = 1000; diff --git a/lib/src/key.dart b/lib/src/keys.dart similarity index 100% rename from lib/src/key.dart rename to lib/src/keys.dart diff --git a/lib/src/omemo/bundle.dart b/lib/src/omemo/bundle.dart index d43882e..d70dd37 100644 --- a/lib/src/omemo/bundle.dart +++ b/lib/src/omemo/bundle.dart @@ -1,6 +1,6 @@ import 'dart:convert'; import 'package:cryptography/cryptography.dart'; -import 'package:omemo_dart/src/key.dart'; +import 'package:omemo_dart/src/keys.dart'; class OmemoBundle { diff --git a/lib/src/x3dh/x3dh.dart b/lib/src/x3dh/x3dh.dart index 6e6af23..4165c2e 100644 --- a/lib/src/x3dh/x3dh.dart +++ b/lib/src/x3dh/x3dh.dart @@ -4,7 +4,7 @@ import 'package:cryptography/cryptography.dart'; import 'package:omemo_dart/src/crypto.dart'; import 'package:omemo_dart/src/errors.dart'; import 'package:omemo_dart/src/helpers.dart'; -import 'package:omemo_dart/src/key.dart'; +import 'package:omemo_dart/src/keys.dart'; import 'package:omemo_dart/src/omemo/bundle.dart'; /// The overarching assumption is that we use Ed25519 keys for the identity keys