From 079cc7caa7aafadde8c886b0ce89c865d030bd1e Mon Sep 17 00:00:00 2001 From: Nguyen Van Nguyen Date: Fri, 6 Dec 2024 10:17:32 +0700 Subject: [PATCH] Fix read public key list ignore last index. Signed-off-by: Nguyen Van Nguyen --- lib/src/type/public_key.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/src/type/public_key.dart b/lib/src/type/public_key.dart index 4ea17c36..477de90b 100644 --- a/lib/src/type/public_key.dart +++ b/lib/src/type/public_key.dart @@ -60,6 +60,15 @@ class PublicKey extends Key { ), ); } + else { + publicKeys.add( + PublicKey.fromPacketList( + PacketList( + packetList.packets.sublist(indexes[i]), + ), + ), + ); + } } return publicKeys; }