Fix OS 26 build errors

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
Daniel D’Aquino
2025-09-17 17:17:43 -07:00
parent de528f3f70
commit a3ef36120e
8 changed files with 38 additions and 11 deletions

View File

@@ -132,7 +132,7 @@ final class NIP44v2EncryptingTests: XCTestCase {
try encryptDecryptVectors.forEach { vector in
let conversationKey = vector.conversationKey
let conversationKeyData = try XCTUnwrap(conversationKey.hexDecoded)
let conversationKeyBytes = conversationKeyData.bytes
let conversationKeyBytes = conversationKeyData.byteArray
let nonce = try XCTUnwrap(vector.nonce.hexDecoded)
let expectedPlaintextSHA256 = vector.plaintextSHA256
@@ -211,7 +211,7 @@ final class NIP44v2EncryptingTests: XCTestCase {
func testInvalidDecrypt() throws {
let decryptVectors = try XCTUnwrap(vectors.v2.invalid.decrypt)
try decryptVectors.forEach { vector in
let conversationKey = try XCTUnwrap(vector.conversationKey.hexDecoded).bytes
let conversationKey = try XCTUnwrap(vector.conversationKey.hexDecoded).byteArray
let payload = vector.payload
XCTAssertThrowsError(try NIP44v2Encryption.decrypt(payload: payload, conversationKey: conversationKey), vector.note)
}