File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 3
3
// Copyright (c) 2023-2024 Rust Nostr Developers
4
4
// Distributed under the MIT software license
5
5
6
- //! NIP04
6
+ //! NIP-04
7
+ //!
8
+ //! <div class="warning"><strong>Unsecure!</strong> Deprecated in favor of NIP-17!</div>
7
9
//!
8
10
//! <https://github.com/nostr-protocol/nips/blob/master/04.md>
9
11
@@ -67,6 +69,8 @@ impl From<secp256k1::Error> for Error {
67
69
}
68
70
69
71
/// Encrypt
72
+ ///
73
+ /// <div class="warning"><strong>Unsecure!</strong> Deprecated in favor of NIP-17!</div>
70
74
#[ inline]
71
75
#[ cfg( feature = "std" ) ]
72
76
pub fn encrypt < T > (
81
85
}
82
86
83
87
/// Encrypt
88
+ ///
89
+ /// <div class="warning"><strong>Unsecure!</strong> Deprecated in favor of NIP-17!</div>
84
90
pub fn encrypt_with_rng < R , T > (
85
91
rng : & mut R ,
86
92
secret_key : & SecretKey ,
@@ -113,6 +119,8 @@ where
113
119
}
114
120
115
121
/// Decrypts content to bytes
122
+ ///
123
+ /// <div class="warning"><strong>Unsecure!</strong> Deprecated in favor of NIP-17!</div>
116
124
pub fn decrypt_to_bytes < S > (
117
125
secret_key : & SecretKey ,
118
126
public_key : & PublicKey ,
@@ -144,6 +152,8 @@ where
144
152
}
145
153
146
154
/// Decrypts content to a UTF-8 string
155
+ ///
156
+ /// <div class="warning"><strong>Unsecure!</strong> Deprecated in favor of NIP-17!</div>
147
157
#[ inline]
148
158
pub fn decrypt < T > (
149
159
secret_key : & SecretKey ,
You can’t perform that action at this time.
0 commit comments