Allow key pairs to be destructured

This commit is contained in:
Wilson Silva
2024-03-14 22:04:14 +00:00
parent 7c571d3b12
commit 838a2db834
3 changed files with 38 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ module Nostr
attr_reader public_key: PublicKey
def initialize: (private_key: PrivateKey, public_key: PublicKey) -> void
def to_ary: -> [PrivateKey, PublicKey]
private