15 lines
317 B
Plaintext
15 lines
317 B
Plaintext
# Classes
|
|
module Nostr
|
|
class KeyPair
|
|
attr_reader private_key: PrivateKey
|
|
attr_reader public_key: PublicKey
|
|
|
|
def initialize: (private_key: PrivateKey, public_key: PublicKey) -> void
|
|
def to_ary: -> [PrivateKey, PublicKey]
|
|
|
|
private
|
|
|
|
def validate_keys: (PrivateKey, PublicKey) -> void
|
|
end
|
|
end
|