Add initial RBS support with Steep and TypeProf

This commit is contained in:
Wilson Silva
2023-01-22 17:42:59 +07:00
parent 59e058d511
commit 8f6a7547f5
19 changed files with 290 additions and 1 deletions

24
sig/nostr/user.rbs Normal file
View 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