Class: Nostr::Signature
- Inherits:
-
String
- Object
- String
- Nostr::Signature
- Defined in:
- lib/nostr/signature.rb
Overview
64-bytes lowercase hex of the signature of the sha256 hash of the serialized event data, which is the same as the “id” field
Constant Summary collapse
- FORMAT =
The regular expression for hexadecimal lowercase characters
/^[a-f0-9]+$/
- LENGTH =
The length of the signature in hex format
128
Instance Method Summary collapse
-
#initialize(hex_value) ⇒ Signature
constructor
Instantiates a new Signature.
Constructor Details
#initialize(hex_value) ⇒ Signature
Instantiates a new Signature
33 34 35 36 37 |
# File 'lib/nostr/signature.rb', line 33 def initialize(hex_value) validate(hex_value) super(hex_value) end |