@@ -37,7 +37,7 @@ struct NostrProtocol {
37
37
38
38
// 2. Create ephemeral key for this message
39
39
let ephemeralKey = try P256K . Schnorr. PrivateKey ( )
40
- let ephemeralPubkey = Data ( ephemeralKey. xonly. bytes) . hexEncodedString ( )
40
+ let _ = Data ( ephemeralKey. xonly. bytes) . hexEncodedString ( )
41
41
// Created ephemeral key for seal
42
42
43
43
// 3. Seal the rumor (encrypt to recipient)
@@ -213,7 +213,7 @@ struct NostrProtocol {
213
213
throw NostrError . invalidPublicKey
214
214
}
215
215
216
- let senderPubkey = Data ( senderKey. xonly. bytes) . hexEncodedString ( )
216
+ let _ = Data ( senderKey. xonly. bytes) . hexEncodedString ( )
217
217
// Encrypting message
218
218
219
219
// Derive shared secret
@@ -449,12 +449,12 @@ struct NostrProtocol {
449
449
let formatter = DateFormatter ( )
450
450
formatter. dateFormat = " yyyy-MM-dd HH:mm:ss "
451
451
formatter. timeZone = TimeZone ( abbreviation: " UTC " )
452
- let nowUTC = formatter. string ( from: now)
453
- let randomizedUTC = formatter. string ( from: randomized)
452
+ let _ = formatter. string ( from: now)
453
+ let _ = formatter. string ( from: randomized)
454
454
455
455
formatter. timeZone = TimeZone . current
456
- let nowLocal = formatter. string ( from: now)
457
- let randomizedLocal = formatter. string ( from: randomized)
456
+ let _ = formatter. string ( from: now)
457
+ let _ = formatter. string ( from: randomized)
458
458
459
459
// Timestamp randomized for privacy
460
460
0 commit comments