每个用户都有一个密钥对。根据 [Schnorr Signatures Standard for the Curve secp256k1](https://bips.xyz/340)完成签名、公钥和编码。
唯一存在的对象类型是 event,它在网络上具有以下格式:
{"id":<32-byteslowercasehex-encodedsha256oftheserializedeventdata>"pubkey":<32-byteslowercasehex-encodedpublickeyoftheeventcreator>,"created_at":<unixtimestampinseconds>,"kind":<integer>,"tags":[["e",<32-byteshexoftheidofanotherevent>,<recommendedrelayURL>],["p",<32-byteshexofapubkey>,<recommendedrelayURL>],...// other kinds of tags may be included later],"content":<arbitrarystring>,"sig":<64-byteshexofthesignatureofthesha256hashoftheserializedeventdata,whichisthesameasthe"id"field>}
[
0,
<pubkey, as a (lowercase) hex string>,
<created_at, as a number>,
<kind, as a number>,
<tags, as an array of arrays of non-null strings>,
<content, as a string>
]
{
"ids": <a list of event ids or prefixes>,
"authors": <a list of pubkeys or prefixes, the pubkey of an event must be one of these>,
"kinds": <a list of a kind numbers>,
"#e": <a list of event ids that are referenced in an "e" tag>,
"#p": <a list of pubkeys that are referenced in a "p" tag>,
"since": <an integer unix timestamp, events must be newer than this to pass>,
"until": <an integer unix timestamp, events must be older than this to pass>,
"limit": <maximum number of events to be returned in the initial query>
}