Extract event signing into its own class

This commit is contained in:
Wilson Silva
2023-02-25 15:00:04 +07:00
parent 97037e6e30
commit 79567fcf22
8 changed files with 167 additions and 34 deletions

9
sig/nostr/crypto.rbs Normal file
View File

@@ -0,0 +1,9 @@
module Nostr
class Crypto
def sign_event: (Event, String) -> Event
private
def hash_event:(Event) -> String
end
end