cryptotest

package
v0.0.0-...-3ba3d46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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.

func (*Service) Register

func (s *Service) Register(oldService types.Service, client types.MatrixClient) error

Register registers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL