Skip to content

Commit beafbba

Browse files
committed
Fix deprecation messages
1 parent bb76a4f commit beafbba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jwt/jwa/eddsa.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ def initialize(alg)
1313
def sign(data:, signing_key:)
1414
raise_sign_error!("Key given is a #{signing_key.class} but has to be an RbNaCl::Signatures::Ed25519::SigningKey") unless signing_key.is_a?(RbNaCl::Signatures::Ed25519::SigningKey)
1515

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.')
1717

1818
signing_key.sign(data)
1919
end
2020

2121
def verify(data:, signature:, verification_key:)
2222
raise_verify_error!("key given is a #{verification_key.class} but has to be a RbNaCl::Signatures::Ed25519::VerifyKey") unless verification_key.is_a?(RbNaCl::Signatures::Ed25519::VerifyKey)
2323

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.')
2525

2626
verification_key.verify(signature, data)
2727
rescue RbNaCl::CryptoError

0 commit comments

Comments
 (0)