Added the methods: - Event#verify_signature - Crypto#check_sig! - Crypto#valid_sig? - Crypto#sign_message Fixed a primitive obsession by introducing a Signature class to ensure that signatures are valid Nostr signatures.
7 lines
341 B
Plaintext
7 lines
341 B
Plaintext
# Added only to satisfy the Steep requirements. Not 100% reliable.
|
|
module Schnorr
|
|
def self.sign: (String message, String private_key, ?String aux_rand) -> Signature
|
|
def self.valid_sig?: (String message, String public_key, String signature) -> bool
|
|
def self.check_sig!: (String message, String public_key, String signature) -> bool
|
|
end
|