mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 15:05:20 +00:00
PeerID 11/n: Noise types use PeerID + create separate files (#750)
* Noise types use PeerID * Fix tests * Extract `NoiseSessionManager` into a separate file * Extract `NoiseSessionState` into a separate file * Remove `failed` state from `NoiseSessionState` * Extract `NoiseSessionError` into a separate file
This commit is contained in:
@@ -54,7 +54,7 @@ final class BinaryProtocolTests: XCTestCase {
|
||||
// Verify recipient
|
||||
XCTAssertNotNil(decodedPacket.recipientID)
|
||||
let decodedRecipientID = decodedPacket.recipientID?.trimmingNullBytes()
|
||||
XCTAssertEqual(String(data: decodedRecipientID!, encoding: .utf8), recipientID)
|
||||
XCTAssertTrue(String(data: decodedRecipientID!, encoding: .utf8) == recipientID)
|
||||
}
|
||||
|
||||
func testPacketWithSignature() throws {
|
||||
@@ -251,7 +251,7 @@ final class BinaryProtocolTests: XCTestCase {
|
||||
originalSender: TestConstants.testNickname3,
|
||||
isPrivate: false,
|
||||
recipientNickname: nil,
|
||||
senderPeerID: TestConstants.testPeerID1,
|
||||
senderPeerID: TestConstants.testPeerID1.id,
|
||||
mentions: nil
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user