Fix the @raise documentation of Nostr::Key#initialize
This commit is contained in:
parent
df51354d3e
commit
c8d633dbea
@ -18,14 +18,14 @@ module Nostr
|
|||||||
#
|
#
|
||||||
LENGTH = 64
|
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::PrivateKey
|
||||||
# @see Nostr::PublicKey
|
# @see Nostr::PublicKey
|
||||||
#
|
#
|
||||||
# @param [String] hex_value Hex-encoded value of the key
|
# @param [String] hex_value Hex-encoded value of the key
|
||||||
#
|
#
|
||||||
# @raise [ValidationError]
|
# @raise [KeyValidationError]
|
||||||
#
|
#
|
||||||
def initialize(hex_value)
|
def initialize(hex_value)
|
||||||
validate_hex_value(hex_value)
|
validate_hex_value(hex_value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user