KeyVerification class
Methods
acceptQRScanConfirmation ()
→ Future <void >
call this to confirm that your other device has shown a shield and is in
done
state.
acceptSas ()
→ Future <void >
acceptVerification ()
→ Future <void >
called when the user accepts an incoming verification
cancel ([String code = 'm.unknown' , bool quiet = false ])
→ Future <void >
continueVerification (String type , {Uint8List ? qrDataRawBytes })
→ Future <void >
Once you get a ready event, i.e both sides are in a askChoice
state,
send either m.reciprocate.v1
or m.sas.v1
here. If you continue with
qr, send the qrData you just scanned
dispose ()
→ void
generateQrCode ()
→ Future <QRCode ? >
getKeys (QRMode mode )
→ Future <(String , String )? >
getOurQRMode ()
→ QRMode
handlePayload (String type , Map <String , dynamic > payload , [String ? eventId ])
→ Future <void >
makePayload (Map <String , dynamic > payload )
→ void
maybeRequestSSSSSecrets ([int i = 0 ])
→ Future <void >
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openSSSS ({String ? passphrase , String ? recoveryKey , String ? keyOrPassphrase , bool skip = false })
→ Future <void >
otherDeviceAccepted ()
→ void
rejectSas ()
→ Future <void >
rejectVerification ()
→ Future <void >
called when the user rejects an incoming verification
send (String type , Map <String , dynamic > payload )
→ Future <void >
sendRequest ()
→ Future <void >
setState (KeyVerificationState newState )
→ void
start ()
→ Future <void >
toString ()
→ String
A string representation of this object.
inherited
verifyActivity ()
→ Future <bool >
verifyKeysQR (SignableKey key , {bool shower = true })
→ Future <void >
shower is true only for reciprocated verifications (shower side)
verifyKeysSAS (Map <String , String > keys , Future <bool > verifier (String , SignableKey ) )
→ Future <void >
verifyLastStep (List <String ? > checkLastStep )
→ Future <bool >
verifyQrData (Uint8List qrDataRawBytes )
→ Future <bool >
sendingnetwork_dart_sdk 0.0.9