Add initial RBS support with Steep and TypeProf
This commit is contained in:
24
sig/nostr/user.rbs
Normal file
24
sig/nostr/user.rbs
Normal file
@@ -0,0 +1,24 @@
|
||||
# Classes
|
||||
module Nostr
|
||||
class User
|
||||
attr_reader keypair: KeyPair
|
||||
|
||||
def initialize: (?keypair: KeyPair | nil, ?keygen: Keygen) -> void
|
||||
def create_event: (
|
||||
{
|
||||
id: String,
|
||||
pubkey: String,
|
||||
created_at: Integer,
|
||||
kind: Integer,
|
||||
tags: Array[String],
|
||||
content: String,
|
||||
created_at: Integer,
|
||||
sig: String
|
||||
}
|
||||
) -> Event
|
||||
|
||||
private
|
||||
|
||||
def sign: (String event_sha256) -> String
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user