Documentation ¶
Overview ¶
Package cryptotest implements a Service which provides several commands for testing the e2e functionalities of other devices.
Index ¶
Constants ¶
View Source
const ServiceType = "cryptotest"
ServiceType of the Cryptotest service
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { types.DefaultService Rooms []id.RoomID `json:"rooms"` }
Service represents the Cryptotest service. It has no Config fields.
func (*Service) Commands ¶
func (s *Service) Commands(cli types.MatrixClient) []types.Command
Commands supported:
!crypto_help Displays a help string !crypto_challenge Sets a challenge for a room which clients should reply to with !crypto_response !crypto_response Used by the client to repeat the room challenge !crypto_new_session Invalidates the bot's current outgoing session !sas_verify_me Asks the bot to verify the sender !sas_decimal_code Sends the sender's SAS code to the bot for verification !request_my_room_key Asks the bot to request a room key from the sender !forward_me_room_key Asks the bot to forward a room key to the sender
This service can be used for testing other clients by writing the commands above in a room where this service is enabled.
Click to show internal directories.
Click to hide internal directories.