nostr-gem/sig/nostr/crypto.rbs
2023-11-18 16:28:31 +07:00

17 lines
387 B
Plaintext

module Nostr
class Crypto
BN_BASE: 0 | 2 | 10 | 16
CIPHER_CURVE: String
CIPHER_ALGORITHM: String
def encrypt_text: (String, String, String) -> String
def decrypt_text: (String, String, String) -> String
def sign_event: (Event, String) -> Event
private
def compute_shared_key: (String, String) -> String
def hash_event:(Event) -> String
end
end