Expand description
Identifiers (specification §2).
Ids are opaque byte strings, base64url in JSON. CommunityId and HostId are derived from
public keys by the crypto module; the 16-byte ids are random and host-assigned (except
RequestId, which the client assigns).
Structs§
- Attachment
Id - An attachment.
- AuditId
- An audit-log entry.
- BanId
- A ban record.
- BotId
- An installed bot (specification §8.13).
- Challenge
- A host-issued challenge that a signed proof must echo.
- Channel
Id - A channel or category.
- Command
Id - An application command of a bot (specification §8.14).
- Community
Id SHA3-256("zaun/community-id/v1" ‖ 0x00 ‖ genesis root public key).- Descriptor
Hash SHA3-256of a signed descriptor’s bytes (§3.2). The descriptor names its delegation’s hash, so this identifies the descriptor/delegation pair.- HostId
SHA3-256("zaun/host-id/v1" ‖ 0x00 ‖ host public key).- Interaction
Id - An interaction: one use of a command, component or modal (specification §8.14).
- Invite
Id - An invitation (public handle; the secret is
InviteSecret). - Invite
Secret - An invitation secret: 32 random bytes, shown once. Never logged:
Debugis redacted and it has noDisplay. Zeroized on drop. - Lockdown
Id - An emergency lockdown.
- Member
Id - A community-scoped member identity, host-assigned.
- Message
Id - A message.
- Nonce
- A single-use value in signed objects.
- Publisher
Id SHA3-256("zaun/publisher-id/v1" ‖ 0x00 ‖ publisher public key)(specification §4.9).- Report
Id - A member report.
- Request
Id - Correlates a command with its response; client-assigned.
- RngError
- The operating system’s CSPRNG failed.
- RoleId
- A role.
RoleId::EVERYONEis the reserved all-zero id. - Voice
Session Id - One stay of a member in a voice channel, host-assigned at
voice.join.
Functions§
- fill_
random - Fills
buffrom the operating system CSPRNG.