pub type Event = EventV3;Expand description
The main event type
Aliased Type§
struct Event {
pub id: Id,
pub pubkey: PublicKey,
pub created_at: Unixtime,
pub kind: EventKind,
pub sig: Signature,
pub content: String,
pub tags: Vec<TagV3>,
}Fields§
§id: IdThe Id of the event, generated as a SHA256 of the inner event data
pubkey: PublicKeyThe public key of the actor who created the event
created_at: UnixtimeThe (unverified) time at which the event was created
kind: EventKindThe kind of event
sig: SignatureThe signature of the event, which cryptographically verifies that the holder of the PrivateKey matching the event’s PublicKey generated (or authorized) this event. The signature is taken over the id field only, but the id field is taken over the rest of the event data.
content: StringThe content of the event
A set of tags that apply to the event