U
    •uÄcÐ  ã                   @   sh   d dl mZmZmZmZmZ d dlmZ d dlm	Z	 eeee
ef e
f  eeee	f  dœdd„ZdS )é    )ÚListÚTupleÚDictÚAnyÚUnion)ÚEIP712DelegateCertificate)ÚEIP712AuthorityCertificate)ÚcertificatesÚreturnc                 C   s^   g }| D ]P\}}}|d dkr*t  |¡}n$|d dkrBt |¡}ndsNtdƒ‚| |¡ q|S )z,

    :param certificates:
    :return:
    ZprimaryTyper   r   Fzshould not arrive here)r   Úparser   ÚAssertionErrorÚappend)r	   Z
cert_chainZ	cert_hashZ	cert_dataZcert_sigÚcert© r   úoc:\users\psant\downloads\hotstarbackend\school\venv\Lib\site-packages\autobahn\xbr\_eip712_certificate_chain.pyÚparse_certificate_chain!   s    Dr   N)Útypingr   r   r   r   r   Z)autobahn.xbr._eip712_delegate_certificater   Z*autobahn.xbr._eip712_authority_certificater   Ústrr   r   r   r   r   Ú<module>   s
   ÿ