Make code compatible with Ruby 2.7

Not including specs etc.
This commit is contained in:
Râu Cao
2023-03-08 10:28:46 +07:00
committed by Râu Cao
parent 5497930dd5
commit 03bd5203ca
5 changed files with 21 additions and 17 deletions

View File

@@ -33,7 +33,7 @@ module Nostr
private_key = generate_private_key
public_key = extract_public_key(private_key)
KeyPair.new(private_key:, public_key:)
KeyPair.new(private_key: private_key, public_key: public_key)
end
# Generates a private key