Skip to content

Commit

Permalink
Fix read public key list ignore last index.
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyen Van Nguyen <[email protected]>
  • Loading branch information
nguyennv committed Dec 6, 2024
1 parent 7fd8ca4 commit 079cc7c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/src/type/public_key.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ class PublicKey extends Key {
),
);
}
else {
publicKeys.add(
PublicKey.fromPacketList(
PacketList(
packetList.packets.sublist(indexes[i]),
),
),
);
}
}
return publicKeys;
}
Expand Down

0 comments on commit 079cc7c

Please sign in to comment.