You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/jwt/jwa/eddsa.rb
+2-2
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,15 @@ def initialize(alg)
13
13
defsign(data:,signing_key:)
14
14
raise_sign_error!("Key given is a #{signing_key.class} but has to be an RbNaCl::Signatures::Ed25519::SigningKey")unlesssigning_key.is_a?(RbNaCl::Signatures::Ed25519::SigningKey)
15
15
16
-
Deprecations.warning('Using Ed25519 keys is deprecated and will be removed in a future version of ruby-jwt. Please use the ruby-eddsa gem instead.')
16
+
Deprecations.warning('Using the EdDSA algorithm is deprecated and will be removed in a future version of ruby-jwt. In the future the algorithm will be provided by the jwt-eddsa gem.')
17
17
18
18
signing_key.sign(data)
19
19
end
20
20
21
21
defverify(data:,signature:,verification_key:)
22
22
raise_verify_error!("key given is a #{verification_key.class} but has to be a RbNaCl::Signatures::Ed25519::VerifyKey")unlessverification_key.is_a?(RbNaCl::Signatures::Ed25519::VerifyKey)
23
23
24
-
Deprecations.warning('Using Ed25519 keys is deprecated and will be removed in a future version of ruby-jwt. Please use the ruby-eddsa gem instead.')
24
+
Deprecations.warning('Using the EdDSA algorithm is deprecated and will be removed in a future version of ruby-jwt. In the future the algorithm will be provided by the jwt-eddsa gem.')
0 commit comments