Why Nostr? What is Njump?
2024-07-23 16:41:13

Yonle on Nostr: Writing my own AP server: 1 type struct type ActorPublicKey { Id string `json:"id"` ...

Writing my own AP server: 1

type struct

type ActorPublicKey {
Id string `json:"id"`
Owner string `json:"owner"`
PublicKeyPem string `json:"publicKeyPem"`
}

type Actor struct {
Context []string `json:"@context"`

Id string `json:"id"`
Type string `json:"type"`
PreferredUsername string `json:"preferredUsername"`
Inbox string `json:"inbox"`
}


While this code is here, I just take a look at honk's code. Instead of types, Honk use map[] to do it's thing.
Author Public Key
npub16sv2snl56r8vr4ys6njejxy8eae9r32mfz74wcruxx62ak8d63sqddwfgz