Class: Nostr::PrivateKey

Inherits:
Key
  • Object
show all
Defined in:
lib/nostr/private_key.rb

Overview

32-bytes lowercase hex-encoded private key

Constant Summary

Constants inherited from Key

Key::FORMAT, Key::LENGTH

Class Method Summary collapse

Methods inherited from Key

from_bech32, #initialize, #to_bech32

Constructor Details

This class inherits a constructor from Nostr::Key

Class Method Details

.hrpString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Human-readable part of the Bech32 encoded address

Returns:

  • (String)

    The human-readable part of the Bech32 encoded address



12
13
14
# File 'lib/nostr/private_key.rb', line 12

def self.hrp
  'nsec'
end