+
    ÆÚj’8  ã            
      ó6  € ^ RI Ht ^ RIHt ^ RIt^ RIt^ RIt^ RIHt	 ^ RI
Ht ^ RIHtHtHtHtHtHtHtHtHtHtHtHtHtHt ^ RIHt ^ RIHt ^R	IH t  ^R
I!H"t" ^RI#H$t$ ^RI%H&t& ^RI'H(t( ^RI)H*t* ^RI+H,t- ^RI.H/t/H0t0 ^RI1H2t2  ! R R]&]$]2]*](]"4      t3R# )é    )Úannotations)ÚOptionalN)Úclient)ÚGroupSessionWithheldError)ÚASToDeviceEventÚDecryptedOlmEventÚDeviceIDÚDeviceListsÚDeviceOTKCountÚEncryptionAlgorithmÚEncryptionKeyAlgorithmÚ	EventTypeÚMemberÚ
MembershipÚ
StateEventÚToDeviceEventÚ
TrustStateÚUserID)Úbackground_task)ÚTraceLogger)Ú
OlmAccount)ÚCrossSigningMachine)ÚMegolmDecryptionMachine)ÚMegolmEncryptionMachine)ÚKeyRequestingMachine)ÚKeySharingMachine)ÚMachine)ÚCryptoStoreÚ
StateStore)ÚOlmUnwedgingMachinec                  ó  a € ] tR t^-t$ RtR]R&   R]R&   R]R&   R]R	&   R
]R&   R]R&   R)R V 3R llltR R ltR R ltR R lt	R R lt
R R ltR R ltR R ltR R ltR  R! ltR" R# ltR)R$ R% lltR& R' ltR(tV ;t# )*Ú
OlmMachineaL  
OlmMachine is the main class for handling things related to Matrix end-to-end encryption with
Olm and Megolm. Users primarily need :meth:`encrypt_megolm_event`, :meth:`share_group_session`,
and :meth:`decrypt_megolm_event`. Tracking device lists, establishing Olm sessions and handling
Megolm group sessions is handled internally.
ú
cli.Clientr   r   Úlogr   Úcrypto_storer   Ústate_storeÚSSSSMachineÚsssszOptional[OlmAccount]Úaccountc          
     ó,   € V ^8„  d   QhRRRRRRRRR	R
/# )é   r   r#   r%   r   r&   r   r$   zOptional[TraceLogger]ÚreturnÚNone© )Úformats   "Ú�/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/mautrix/crypto/machine.pyÚ__annotate__ÚOlmMachine.__annotate__D   sC   € ÷ 2Wñ 2Wàð2Wð "ð2Wð  ð	2Wð
 #ð2Wð 
ñ2Wó    c                	ó„  <€ \         SV `  4        Wn        \        V4      V n        T;'       g    \
        P                  ! R 4      V n        W n        W0n	        RV n
        \        P                  V n        \        P                  V n        V P                   V n        RV n        RV n        RV n        RV n        RV n        RV n        RV n        \2        P4                  ! 4       V n        \2        P4                  ! 4       V n        \2        P4                  ! 4       V n        \<        P>                  ! 4       ^<,
          V n         / V n!        / V n"        / V n#        \I        4       V n%        RV n&        RV n'        RV n(        V P                  PS                  \T        PV                  PX                  V PZ                  RR7       V P                  PS                  \T        PV                  P\                  V P^                  4       V P                  PS                  \`        Pb                  V Pd                  4       V P                  PS                  \`        Pf                  V Ph                  4       V P                  PS                  \`        Pj                  V Pl                  4       V P                  PS                  \`        Pn                  V Pp                  4       R# )z
mau.cryptoNFT)Ú	wait_sync)9ÚsuperÚ__init__r   r'   r(   ÚloggingÚ	getLoggerr$   r%   r&   r)   r   Ú
UNVERIFIEDÚsend_keys_min_trustÚCROSS_SIGNED_TOFUÚshare_keys_min_trustÚdefault_allow_key_shareÚallow_key_shareÚdelete_outbound_keys_on_ackÚdont_store_outbound_keysÚdelete_previous_keys_on_receiveÚratchet_keys_on_decryptÚ!delete_fully_used_keys_on_decryptÚdelete_keys_on_device_deleteÚ"disable_device_change_key_rotationÚasyncioÚLockÚ_fetch_keys_lockÚ_megolm_decrypt_lockÚ_share_keys_lockÚtimeÚ	monotonicÚ_last_key_shareÚ_key_request_waitersÚ_inbound_session_waitersÚ_prev_unwedgeÚsetÚ_cs_fetch_attemptedÚ_cross_signing_public_keysÚ"_cross_signing_public_keys_fetchedÚ_cross_signing_private_keysÚadd_event_handlerÚcliÚInternalEventTypeÚDEVICE_OTK_COUNTÚhandle_otk_countÚDEVICE_LISTSÚhandle_device_listsr   ÚTO_DEVICE_ENCRYPTEDÚhandle_to_device_eventÚROOM_KEY_REQUESTÚhandle_room_key_requestÚBEEPER_ROOM_KEY_ACKÚhandle_beep_room_key_ackÚROOM_MEMBERÚhandle_member_event)Úselfr   r%   r&   r$   Ú	__class__s   &&&&&€r0   r7   ÚOlmMachine.__init__D   s  ø€ ô 	‰ÑÔØŒÜ Ó'ˆŒ	Ø×9Ð9œ'×+Ò+¨LÓ9ˆŒØ(ÔØ&ÔØˆŒä#-×#8Ñ#8ˆÔ Ü$.×$@Ñ$@ˆÔ!Ø#×;Ñ;ˆÔà+0ˆÔ(Ø(-ˆÔ%Ø/4ˆÔ,Ø',ˆÔ$Ø16ˆÔ.Ø,1ˆÔ)Ø27ˆÔ/ä '§¢£ˆÔÜ$+§L¢L£NˆÔ!Ü '§¢£ˆÔÜ#Ÿ~š~Ó/°"Õ4ˆÔØ$&ˆÔ!Ø(*ˆÔ%ØˆÔÜ#&£5ˆÔ à*.ˆÔ'Ø27ˆÔ/Ø+/ˆÔ(à�‰×%Ñ%Ü×!Ñ!×2Ñ2°D×4IÑ4IÐUYð 	&ô 	
ð 	�‰×%Ñ%¤c×&;Ñ&;×&HÑ&HÈ$×JbÑJbÔcØ�‰×%Ñ%¤i×&CÑ&CÀT×E`ÑE`ÔaØ�‰×%Ñ%¤i×&@Ñ&@À$×B^ÑB^Ô_Ø�‰×%Ñ%¤i×&CÑ&CÀT×EbÑEbÔcð 	�‰×%Ñ%¤i×&;Ñ&;¸T×=UÑ=UÖVr3   c               ó   € V ^8„  d   QhRR/# )r+   r,   r-   r.   )r/   s   "r0   r1   r2   x   s   € ÷ >ñ >˜Dñ >r3   c              ƒ  óü   "  € V P                   P                  4       G Rj  x€L
 V n        V P                  f?   \        4       V n        V P                   P	                  V P                  4      G Rj  x€L
  R# R#  LW L
5i)zULoad the Olm account into memory, or create one if the store doesn't have one stored.N)r%   Úget_accountr)   r   Úput_account)rf   s   &r0   ÚloadÚOlmMachine.loadx   s^   é € à!×.Ñ.×:Ñ:Ó<×<ˆŒØ�<‰<ÒÜ%›<ˆDŒLØ×#Ñ#×/Ñ/°·±Ó=×=Ò=ñ  ñ =ñ >ùs"   ‚A< A8¡AA<Á/A:Á0	A<Á:A<c               ó    € V ^8„  d   QhRRRR/# )r+   Ú
otk_countsz,dict[UserID, dict[DeviceID, DeviceOTKCount]]r,   r-   r.   )r/   s   "r0   r1   r2      s    € ÷ `ñ `ØFð`à	ñ`r3   c              ƒ  	óV  "  € VP                  4        FŽ  w  r#VP                  4        Fu  w  rEW P                  P                  8X  d6   W@P                  P                  8X  d   V P	                  V4      G R j  x€L
  KT  V P
                  P                  RV RV 24       Kw  	  K�  	  R #  L15i)Nz!Got OTK count for unknown device Ú/)Úitemsr   ÚmxidÚ	device_idr[   r$   Úwarning)rf   rp   Úuser_idÚdevicesru   Úcounts   &&    r0   Úhandle_as_otk_countsÚOlmMachine.handle_as_otk_counts   s‹   é € ð !+× 0Ñ 0Ö 2ÑˆGØ$+§M¡M¦OÑ �	ØŸk™k×.Ñ.Ô.°9ÇÁ×@UÑ@UÔ3UØ×/Ñ/°Ó6×6Ò6à—H‘H×$Ñ$Ð'HÈÈ	ÐQRÐS\ÐR]Ð%^Ö_ó	 %4ó !3ñ 7ùs   ‚A3B)Á5B'Á62B)c               ó    € V ^8„  d   QhRRRR/# ©r+   Údevice_listsr
   r,   r-   r.   )r/   s   "r0   r1   r2   ‰   s   € ÷ Gñ G¸ð GÈñ Gr3   c              ƒ  	óX   "  € \         P                  ! V P                  V4      4       R # 5i©N)r   Úcreater]   ©rf   r~   s   &&r0   Úhandle_as_device_listsÚ!OlmMachine.handle_as_device_lists‰   s   é € Ü×Ò˜t×7Ñ7¸ÓEÖFùs   ‚(*c               ó    € V ^8„  d   QhRRRR/# )r+   Úevtr   r,   r-   r.   )r/   s   "r0   r1   r2   Œ   s   € ÷ Xñ X°?ð XÀtñ Xr3   c              ƒ  	óâ  "  € VP                   V P                  P                  8w  g&   VP                  V P                  P                  8w  d8   V P
                  P                  R VP                    RVP                   24       R# VP                  \        P                  8X  d   V P                  V4      G Rj  x€L
  R# VP                  \        P                  8X  d   V P                  V4      G Rj  x€L
  R# VP                  \        P                  8X  d   V P                  V4      G Rj  x€L
  R# V P
                  P                  RVP                   RVP                    24       R#  L± Ly LA5i)z'Got to-device event for unknown device rr   NzGot unknown to-device event ú from )Ú
to_user_idr   rt   Úto_device_idru   r$   rv   Útyper   r^   r_   r`   ra   rb   rc   ÚdebugÚsender)rf   r†   s   &&r0   Úhandle_as_to_device_eventÚ$OlmMachine.handle_as_to_device_eventŒ   s  é € Ø�>‰>˜TŸ[™[×-Ñ-Ô-°×1AÑ1AÀTÇ[Á[×EZÑEZÔ1ZØ�H‰H×ÑØ9¸#¿.¹.Ð9IÈÈ3×K[ÑK[ÐJ\Ð]ôñ Ø�8‰8”y×4Ñ4Ô4Ø×-Ñ-¨cÓ2×2Ò2Ø�X‰Xœ×3Ñ3Ô3Ø×.Ñ.¨sÓ3×3Ò3Ø�X‰Xœ×6Ñ6Ô6Ø×/Ñ/°Ó4×4Ò4à�H‰H�N‰NÐ9¸#¿(¹(¸À6È#Ï*É*ÈÐVÖWñ 3á3á4ùs6   ‚B5E/Â7E)Â89E/Ã1E+Ã29E/Ä+E-Ä,>E/Å+E/Å-E/c               ó    € V ^8„  d   QhRRRR/# )r+   Ú	otk_countr   r,   r-   r.   )r/   s   "r0   r1   r2   ›   s   € ÷ ?ñ ?°ð ?À4ñ ?r3   c              ƒ  ó  "  € VP                   V P                  P                  ^,          8  dO   V P                  P	                  RVP                    R24       V P                  VP                   4      G Rj  x€L
  R# R#  L5i)a  
Handle the ``device_one_time_keys_count`` data in a sync response.

This is automatically registered as an event handler and therefore called if the client you
passed to the OlmMachine is syncing. You shouldn't need to call this yourself unless you
do syncing in some manual way.
zSync response said we have z1 signed curve25519 keys left, sharing new ones...N)Úsigned_curve25519r)   Úmax_one_time_keysr$   rŒ   Ú
share_keys)rf   r‘   s   &&r0   r[   ÚOlmMachine.handle_otk_count›   sr   é € ð ×&Ñ&¨¯©×)GÑ)GÈ1Õ)LÔLØ�H‰H�N‰NØ-¨i×.IÑ.IÐ-Jð K=ð =ôð —/‘/ )×"=Ñ"=Ó>×>Ò>ñ Mñ
 ?ùs   ‚A4BÁ6A?Á7	Bc               ó    € V ^8„  d   QhRRRR/# r}   r.   )r/   s   "r0   r1   r2   ª   s   € ÷ 
Vñ 
V°kð 
VÀdñ 
Vr3   c              ƒ  ó0  "  € \        VP                  4      ^ 8”  dU   V P                  ;_uu_4       GRj  x€L
  V P                  VP                  RR7      G Rj  x€L
  RRR4      GRj  x€L
  R# R#  L= L L  + GRj  x€L 
 '       g   i     R# ; i5i)a  
Handle the ``device_lists`` data in a sync response.

This is automatically registered as an event handler and therefore called if the client you
passed to the OlmMachine is syncing. You shouldn't need to call this yourself unless you
do syncing in some manual way.
NF)Úinclude_untracked)ÚlenÚchangedrI   Ú_fetch_keysr‚   s   &&r0   r]   ÚOlmMachine.handle_device_listsª   sl   é € ô ˆ|×#Ñ#Ó$ qÔ(Ø×,×,×,Ó,Ø×&Ñ& |×';Ñ';ÈuÐ&ÓU×UÐU÷ -×,Ñ,ñ )Ù,ÙU÷ -×,×,Ó,üs\   ‚3BµA3¶B¹!A9ÁA5ÁA9ÁBÁ*A7Á+	BÁ5A9Á7BÁ9B	Á?BÂ 
B	ÂB	Â	Bc               ó    € V ^8„  d   QhRRRR/# )r+   r†   r   r,   r-   r.   )r/   s   "r0   r1   r2   ¶   s   € ÷ !Kñ !K¨Zð !K¸Dñ !Kr3   c              ƒ  ó.  "  € V P                   P                  VP                  4      G Rj  x€L
 '       g   R# VP                  P                  pVP
                  P                  p\        P                  \        P                  \        P                  \        P                  \        P                  \        P                  /pW#8X  g   VP                  V4      V8X  d   R# \        VRR4      pVP                  P                  R4      p\        V\        4      '       dc   VP                  V8X  dR   V P                   P#                  RVP                   RVP$                   RV RV RV R	VP&                   R
V R24       R# V P                   P#                  RVP                   RVP$                   RT RT R	VP&                   R
T RV'       d   VP                  MR R24       V P(                  P+                  VP                  4      G Rj  x€L
  R#  ELå L	5i)a  
Handle a new member event.

This is automatically registered as an event handler and therefore called if the client you
passed to the OlmMachine is syncing. You shouldn't need to call this yourself unless you
receive events in some manual way (e.g. through appservice transactions)
NÚsourceÚmautrix_prev_membershipz(Got duplicate membership state event in z
 changing rˆ   z to z, cached state was z (event ID: z, sync source: Ú)zGot membership state event in z
, cached: z), invalidating group session)r&   Úis_encryptedÚroom_idÚprev_contentÚ
membershipÚcontentr   ÚINVITEÚJOINÚBANÚLEAVEÚgetÚgetattrÚunsignedÚ
isinstancer   r$   rŒ   Ú	state_keyÚevent_idr%   Úremove_outbound_group_session)rf   r†   ÚprevÚcurÚignored_changesÚsrcÚ
prev_caches   &&     r0   re   ÚOlmMachine.handle_member_event¶   sÉ  é € ð ×%Ñ%×2Ñ2°3·;±;Ó?×?Ö?ÙØ×Ñ×*Ñ*ˆØ�k‰k×$Ñ$ˆä×ÑœzŸ™Ü�N‰NœJ×,Ñ,Ü×ÑœjŸn™nð
ˆð
 Œ;˜/×-Ñ-¨dÓ3°sÔ:ÙÜ�c˜8 TÓ*ˆØ—\‘\×%Ñ%Ð&?Ó@ˆ
Ü�j¤&×)Ò)¨j×.CÑ.CÀsÔ.JØ�H‰H�N‰NØ:¸3¿;¹;¸-ÀzÐRU×R_ÑR_ÐQ`ð aØ�v˜T # Ð&9¸*¸À\ÐRU×R^ÑR^ÐQ_ð ` Ø #˜u Að'ôñ
 Ø�‰�‰Ø,¨S¯[©[¨M¸ÀCÇMÁMÀ?ÐRXØˆf�D˜˜˜\¨#¯,©,¨°ÀsÀeð Lß0:�z×,Ò,ÀÐEÐEbðdô	
ð
 ×Ñ×=Ñ=¸c¿k¹kÓJ×JÒJò3 @ñ2 	Kùs-   ‚)H«H¬	H¶FHÇ=HÈ	HÈ
HÈHc               ó    € V ^8„  d   QhRRRR/# ©r+   r†   r   r,   r-   r.   )r/   s   "r0   r1   r2   Ù   s   € ÷ Iñ I°ð IÀ$ñ Ir3   c              ƒ  ó€  "  € \        V\        4      '       d+   V P                  P                  RVP                   24       R# V P                  P                  RVP                  P                   RVP                   R24       V P                  V4      G Rj  x€L
 pVP                  \        P                  8X  d   V P                  V4      G Rj  x€L
  R# VP                  \        P                  8X  d   V P                  V4      G Rj  x€L
  R# V P                  P!                  W!P"                  R7       R#  L  Lj L25i)zû
Handle an encrypted to-device event.

This is automatically registered as an event handler and therefore called if the client you
passed to the OlmMachine is syncing. You shouldn't need to call this yourself unless you
do syncing in some manual way.
z:Dropping unexpected nested encrypted to-device event from Nz(Handling encrypted to-device event from z (r¢   )r    )r¯   r   r$   rv   r�   Útracer§   Ú
sender_keyÚ_decrypt_olm_eventr‹   r   ÚROOM_KEYÚ_receive_room_keyÚFORWARDED_ROOM_KEYÚ_receive_forwarded_room_keyr   Údispatch_eventr    )rf   r†   Údecrypted_evts   && r0   r_   Ú!OlmMachine.handle_to_device_eventÙ   sù   é € ô �cÔ,×-Ò-Ø�H‰H×ÑØLÈSÏZÉZÈLÐYôñ Ø�‰�‰Ø6°s·{±{×7MÑ7MÐ6NÈbÐQT×Q[ÑQ[ÐP\Ð\]Ð^ô	
ð #×5Ñ5°cÓ:×:ˆØ×Ñ¤×!3Ñ!3Ô3Ø×(Ñ(¨Ó7×7Ò7Ø×Ñ¤9×#?Ñ#?Ô?Ø×2Ñ2°=ÓA×AÒAà�K‰K×&Ñ& }¿Z¹ZÐ&ÖHñ ;á7áAùs6   ‚BD>ÂD8Â7D>ÃD:Ã9D>Ä	D<Ä
/D>Ä:D>Ä<D>c               ó    € V ^8„  d   QhRRRR/# )r+   r†   r   r,   r-   r.   )r/   s   "r0   r1   r2   ñ   s   € ÷ 
ñ 
Ð+<ð 
Àñ 
r3   c              ƒ  	óî  "  € VP                   P                  \        P                  8w  g   VP                  P
                  '       g   R # VP                   P                  '       d   VP                   P                  '       g$   V P                  VP                   4      G R j  x€L
  V P                  '       d   VP                   P                  '       gc   V P                  P                  VP                   P                  VP                  RR7      G R j  x€L
 pV P                  P!                  RV 24       V P#                  VP                  VP                  P
                  VP                   P                  VP                   P$                  VP                   P&                  VP                   P                  VP                   P                  VP                   P                  R7      G R j  x€L
  R #  ELN LÞ L5i)Nzreceived new key from device©Úreasonz#Redacted previous megolm sessions: )Úmax_ageÚmax_messagesÚis_scheduled)r§   Ú	algorithmr   Ú	MEGOLM_V1ÚkeysÚed25519Úbeeper_max_messagesÚbeeper_max_age_msÚ_fill_encryption_inforB   Úbeeper_is_scheduledr%   Úredact_group_sessionsr¤   r½   r$   ÚinfoÚ_create_group_sessionÚ
session_idÚsession_key)rf   r†   Úremoved_idss   && r0   rÀ   ÚOlmMachine._receive_room_keyñ   sc  é € ð �;‰;× Ñ Ô$7×$AÑ$AÔAÈÏÉ×IY×IYÐIYÙØ�{‰{×.×.Ð.°c·k±k×6S×6SÐ6SØ×,Ñ,¨S¯[©[Ó9×9Ð9Ø×/×/Ð/¸¿¹×8W×8WÐ8WØ $× 1Ñ 1× GÑ GØ—‘×#Ñ# S§^¡^Ð<Zð !Hó !÷ ˆKð �H‰H�M‰MÐ?À¸}ÐMÔNØ×(Ñ(Ø�N‰NØ�H‰H×ÑØ�K‰K×ÑØ�K‰K×"Ñ"Ø�K‰K×#Ñ#Ø—K‘K×1Ñ1ØŸ™×8Ñ8ØŸ™×8Ñ8ð )ó 	
÷ 		
ò 		
ò :ññ		
ùsU   ‚AG5ÁG5Á&G5ÂG5Â G.Â!G5Â7G5Ã?G5ÄG1ÄCG5Ç'G3Ç(G5Ç1G5Ç3G5c               ó    € V ^8„  d   QhRRRR/# rº   r.   )r/   s   "r0   r1   r2     s   € ÷ Cñ C°-ð CÀDñ Cr3   c              ƒ  	ó~  "  €  V P                   P                  VP                  P                  VP                  P                  4      G R j  x€L
 pT'       g5   T P                  P                  RTP                  P                   24       R # TP                  T P                  P                  8X  d™   T P                  '       d‡   TP                  P                  ^ 8X  dl   T P                  P                  R4       T P                   P                  TP                  P                  TP                  P                  RR7      G R j  x€L
  R # T P                  P                  RTP                   24       R #  EL(  \
         d8    T P                  P                  RTP                  P                   R24        R # i ; i Lx5i)Nz"Ignoring room key ack for session z that was already redactedz*Ignoring room key ack for unknown session z:Redacting inbound copy of outbound group session after ackzoutbound session ackedrÈ   zReceived room key ack for )r%   Úget_group_sessionr§   r¤   rØ   r   r$   rŒ   r½   r)   Úidentity_keyr@   Úfirst_message_indexÚredact_group_sessionÚid)rf   r†   Úsesss   && r0   rc   Ú#OlmMachine.handle_beep_room_key_ack  sU  é € ð		Ø×*Ñ*×<Ñ<Ø—‘×#Ñ# S§[¡[×%;Ñ%;ó÷ ˆD÷ Ø�H‰H�N‰NÐGÈÏÉ×H^ÑH^ÐG_Ð`ÔaÙà�O‰O˜tŸ|™|×8Ñ8Ô8Ø×0×0Ð0Ø—‘×/Ñ/°1Ô4à�H‰H�N‰NÐWÔXØ×#Ñ#×8Ñ8Ø—‘×#Ñ# S§[¡[×%;Ñ%;ÐD\ð 9ó ÷ ò ð �H‰H�N‰NÐ7¸¿¹°yÐAÖBò-øô )ô 	Ø�H‰H�N‰NØ4°S·[±[×5KÑ5KÐ4LØ,ð-ôò ð	úñùsU   ‚F=„AE6 ÁE3ÁE6 ÁF=ÁA*F=ÃA?F=ÅF;Å0F=Å3E6 Å6>F8Æ4F=Æ7F8Æ8F=c               ó    € V ^8„  d   QhRRRR/# ©r+   Úcurrent_otk_countz
int | Noner,   r-   r.   )r/   s   "r0   r1   r2   "  s   € ÷ 
6ñ 
6°*ð 
6Èñ 
6r3   c              ƒ  óà   "  € V P                   ;_uu_4       GRj  x€L
  V P                  V4      G Rj  x€L
  RRR4      GRj  x€L
  R#  L/ L L
  + GRj  x€L 
 '       g   i     R# ; i5i)a3  
Share any keys that need to be shared. This is automatically called from
:meth:`handle_otk_count`, so you should not need to call this yourself.

Args:
    current_otk_count: The current number of signed curve25519 keys present on the server.
        If omitted, the count will be fetched from the server.
N)rK   Ú_share_keys)rf   rç   s   &&r0   r•   ÚOlmMachine.share_keys"  sG   é € ð ×(×(×(Ó(Ø×"Ñ"Ð#4Ó5×5Ð5÷ )×(Ó(Ù5÷ )×(×(Ó(üsY   ‚A.›AœA.ŸA´AµA¹A.ÁAÁA.ÁAÁA.ÁA+	ÁAÁ
A+	Á#A+	Á%	A.c               ó    € V ^8„  d   QhRRRR/# ræ   r.   )r/   s   "r0   r1   r2   .  s   € ÷ Kñ K°:ð KÀ$ñ Kr3   c              ƒ  	óä  "  € Ve3   V P                   ^<,           \        P                  ! 4       8”  dc   V^
8  d\   V P                  P	                  R4       V P
                  P                  4       G R j  x€L
 P                  \        P                  ^ 4      pV P                  P                  '       gE   V P                  P                  V P
                  P                  V P
                  P                  4      MR pV P                  P                  V P
                  P                  V P
                  P                  V4      pV'       g&   V'       g   V P                  P!                  R4       R # V'       d   V P                  P	                  R4       V P                  P	                  R\#        V4       R24       V P
                  P                  W2R7      G R j  x€L
 pRV P                  n        V P                  P%                  4        \        P                  ! 4       V n         V P&                  P)                  V P                  4      G R j  x€L
  V P                  P	                  RV 24       R #  ELø L™ L)5i)	NzChecking OTK count on serverz>No one-time keys nor device keys got when trying to share keysz$Going to upload initial account keysz
Uploading z one-time keys)Úone_time_keysÚdevice_keysTz)Shared keys and saved account, new keys: )rN   rL   rM   r$   rŒ   r   Úupload_keysr¬   r   ÚSIGNED_CURVE25519r)   ÚsharedÚget_device_keysrt   ru   Úget_one_time_keysrv   rš   Úmark_keys_as_publishedr%   rl   )rf   rç   rî   rí   Úresps   &&   r0   ré   ÚOlmMachine._share_keys.  s¾  é € ØÒ$ð × Ñ  2Õ%¬¯ªÓ(8Ô8Ø! BÔ&à�H‰H�N‰NÐ9Ô:Ø'+§{¡{×'>Ñ'>Ó'@×!@× EÑ EÜ&×8Ñ8¸!ó!Ðð
 —<‘<×&×&Ð&ð �L‰L×(Ñ(¨¯©×)9Ñ)9¸4¿;¹;×;PÑ;PÔQàð 	ð
 Ÿ™×6Ñ6Ø�K‰K×Ñ˜dŸk™k×3Ñ3Ð5Fó
ˆ÷ §=Ø�H‰H×ÑÐ]Ô^ÙßØ�H‰H�N‰NÐAÔBØ�‰�‰˜¤C¨Ó$6Ð#7°~ÐFÔGØ—[‘[×,Ñ,¸=Ð,Ób×bˆØ"ˆ�‰ÔØ�‰×+Ñ+Ô-Ü#Ÿ~š~Ó/ˆÔØ×Ñ×+Ñ+¨D¯L©LÓ9×9Ð9Ø�‰�‰ÐBÀ4À&ÐIÖJò- "Añ" cñ 	:ùsQ   ‚A/I0Á1I)Á2=I0Â0BI0ÅI0Å$I0Å0A"I0ÇI,ÇA1I0ÉI.É%I0É,I0É.I0)rV   rT   rU   rS   rI   rP   rO   rN   rJ   rQ   rK   r)   r?   r   r%   rD   rE   r@   rB   rF   rA   r$   rC   r;   r=   r(   r&   r€   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__annotations__r7   rm   rz   rƒ   rŽ   r[   r]   re   r_   rÀ   rc   r•   ré   Ú__static_attributes__Ú__classcell__)rg   s   @r0   r"   r"   -   s†   ø‡ ñð ÓØ	ÓØÓØÓØ
Óà!Ó!÷2Wò 2Wõh>õ`õGõXõ?õ
Võ!KõFIõ0
õ.C÷4
6÷Kó Kr3   r"   )4Ú
__future__r   Útypingr   rG   r8   rL   Úmautrixr   rX   Úmautrix.errorsr   Úmautrix.typesr   r   r	   r
   r   r   r   r   r   r   r   r   r   r   Úmautrix.utilr   Úmautrix.util.loggingr   r)   r   Úcross_signingr   Údecrypt_megolmr   Úencrypt_megolmr   Úkey_requestr   Ú	key_sharer   r(   r   r'   Ústorer   r   Úunwedger    r"   r.   r3   r0   Ú<module>r     ss   ðõ #å Û Û Û å !Ý 4÷÷ ÷ ÷ õ  )Ý ,å Ý .Ý 3Ý 3Ý -Ý (Ý (ß *Ý (ô_KØØØØØØö_Kr3   