Fix the @raise documentation of Nostr::Key#initialize

This commit is contained in:
Wilson Silva 2023-12-22 15:47:42 +00:00
parent df51354d3e
commit c8d633dbea
No known key found for this signature in database
GPG Key ID: 65135F94E23F82C8

View File

@ -18,14 +18,14 @@ module Nostr
#
LENGTH = 64
# Instantiates a new key. Can't be used directly because this is an abstract class. Raises a +ValidationError+
# Instantiates a new key. Can't be used directly because this is an abstract class. Raises a +KeyValidationError+
#
# @see Nostr::PrivateKey
# @see Nostr::PublicKey
#
# @param [String] hex_value Hex-encoded value of the key
#
# @raise [ValidationError]
# @raise [KeyValidationError]
#
def initialize(hex_value)
validate_hex_value(hex_value)