Sample of an CBEFF XML file for manual adjudication?

Hi there,
We don’t have a MOSIP instance running just yet but while waiting for that we do development in parallel.

For manual adjudication the documentation explain the “biometrics” field as such:

biometrics - base64encoded string of CBEFF XML bytes (this contains all the biometrics captured for the resident in a CBEFF file - data will be shared based on policy)

My question is: can we get a sample of that CBEFF xml file to use it for development while waiting for our MOSIP instance to be deployed?

Thanks in advance

Hi @rama

You can explore this particular link for mosip-cbeff.xsd - https://github.com/mosip/mosip-config/blob/master/mosip-cbeff.xsd

<?xml version="1.0" encoding="utf-8"?>

<xs:schema xmlns:xs=“XML Schema
xmlns=“http://standards.iso.org/iso-iec/19785/-3/ed-2/” targetNamespace=“http://standards.iso.org/iso-iec/19785/-3/ed-2/” elementFormDefault=“qualified” attributeFormDefault=“unqualified”>
<xs:element name=“BIR” type=“BIRType”/>
<xs:complexType name=“BIRType”>
xs:sequence
<xs:element name=“Version” type=“VersionType” minOccurs=“0”/>
<xs:element name=“CBEFFVersion” type=“VersionType” minOccurs=“0”/>

<xs:element name=“BIRInfo” type=“BIRInfoType”/>
<xs:element name=“BDBInfo” type=“BDBInfoType” minOccurs=“0”/>
<xs:element name=“SBInfo” type=“SBInfoType” minOccurs=“0”/>
<xs:element name=“BIR” type=“BIRType” minOccurs=“0” maxOccurs=“unbounded”/>
<xs:element name=“BDB” type=“xs:base64Binary” minOccurs=“0” />
<xs:element name=“SB” type=“xs:base64Binary” minOccurs=“0” />
<xs:element name=“others” type=“OthersListType” minOccurs=“0” maxOccurs=“unbounded” nillable=“true”/>
</xs:sequence>
</xs:complexType>
<xs:complexType name=“VersionType”>
xs:sequence
<xs:element name=“Major” type=“xs:unsignedInt”/>
<xs:element name=“Minor” type=“xs:unsignedInt”/>
</xs:sequence>
</xs:complexType>
<xs:complexType name=“BIRInfoType”>
xs:sequence
<xs:element name=“Creator” type=“xs:string” minOccurs=“0”/>
<xs:element name=“Index” type=“UUIDType” minOccurs=“0”/>
<xs:element name=“Payload” type=“xs:base64Binary” minOccurs=“0”/>
<xs:element name=“Integrity” type=“xs:boolean”/>
<xs:element name=“CreationDate” type=“xs:dateTime” minOccurs=“0”/>
<xs:element name=“NotValidBefore” type=“xs:dateTime” minOccurs=“0”/>
<xs:element name=“NotValidAfter” type=“xs:dateTime” minOccurs=“0”/>
</xs:sequence>
</xs:complexType>
<xs:complexType name=“BDBInfoType”>
xs:sequence
<xs:element name=“ChallengeResponse” type=“xs:base64Binary” minOccurs=“0”/>
<xs:element name=“Index” type=“UUIDType” minOccurs=“0”/>
<xs:element name=“Format” type=“RegistryIDType” minOccurs=“0”/>
<xs:element name=“Encryption” type=“xs:boolean” minOccurs=“0”/>
<xs:element name=“CreationDate” type=“xs:dateTime” minOccurs=“0”/>
<xs:element name=“NotValidBefore” type=“xs:dateTime” minOccurs=“0”/>
<xs:element name=“NotValidAfter” type=“xs:dateTime” minOccurs=“0”/>
<xs:element name=“Type” type=“MultipleTypesType” minOccurs=“0”/>
<xs:element name=“Subtype” type=“SubtypeType” minOccurs=“0”/>
<xs:element name=“Level” type=“ProcessedLevelType” minOccurs=“0”/>
<xs:element name=“Product” type=“RegistryIDType” minOccurs=“0”/>
<xs:element name=“CaptureDevice” type=“RegistryIDType” minOccurs=“0”/>
<xs:element name=“FeatureExtractionAlgorithm” type=“RegistryIDType” minOccurs=“0”/>
<xs:element name=“ComparisonAlgorithm” type=“RegistryIDType” minOccurs=“0”/>
<xs:element name=“CompressionAlgorithm” type=“RegistryIDType” minOccurs=“0”/>
<xs:element name=“Purpose” type=“PurposeType” minOccurs=“0”/>
<xs:element name=“Quality” type=“QualityType” minOccurs=“0”/>
</xs:sequence>
</xs:complexType>
<xs:complexType name=“RegistryIDType”>
xs:sequence
<xs:element name=“Organization” type=“xs:string”/>
<xs:element name=“Type” type=“xs:string”/>
</xs:sequence>
</xs:complexType>
<xs:complexType name=“SBInfoType”>
xs:sequence
<xs:element name=“Format” type=“RegistryIDType” minOccurs=“0”/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name=“QualityScoreType”>
<xs:restriction base=“xs:unsignedInt”>
<xs:maxInclusive value=“100”/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name=“QualityType”>
xs:sequence
<xs:element name=“Algorithm” type=“RegistryIDType”/>
xs:choice
<xs:element name=“Score” type=“QualityScoreType”/>
<xs:element name=“QualityCalculationFailed” type=“xs:string”/>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:simpleType name=“SingleTypeType”>
<xs:restriction base=“xs:string”>
<xs:enumeration value=“Scent”/>
<xs:enumeration value=“DNA”/>
<xs:enumeration value=“Ear “/>
<xs:enumeration value=“Face”/>
<xs:enumeration value=“Finger”/>
<xs:enumeration value=“Foot”/>
<xs:enumeration value=“HandGeometry”/>
<xs:enumeration value=“Vein”/>
<xs:enumeration value=“Iris”/>
<xs:enumeration value=“Retina”/>
<xs:enumeration value=“Voice”/>
<xs:enumeration value=“Gait”/>
<xs:enumeration value=“Keystroke”/>
<xs:enumeration value=“LipMovement”/>
<xs:enumeration value=“SignatureSign”/>
<xs:enumeration value=“Palm”/>
<xs:enumeration value=“BackOfHand”/>
<xs:enumeration value=“Wrist”/>
<xs:enumeration value=“ExceptionPhoto”/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name=“MultipleTypesType”>
<xs:list itemType=“SingleTypeType”/>
</xs:simpleType>
<xs:simpleType name=“SingleAnySubtypeType”>
<xs:restriction base=“xs:string”>
<xs:enumeration value=“Left”/>
<xs:enumeration value=“Right”/>
<xs:enumeration value=“Thumb”/>
<xs:enumeration value=“IndexFinger”/>
<xs:enumeration value=“MiddleFinger”/>
<xs:enumeration value=“RingFinger”/>
<xs:enumeration value=“LittleFinger”/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name=“SingleVeinOnlySubtypeType”>
<xs:restriction base=“xs:string”>
<xs:enumeration value=“LeftVein”/>
<xs:enumeration value=“RightVein”/>
<xs:enumeration value=“Palm”/>
<xs:enumeration value=“BackOfHand”/>
<xs:enumeration value=“Wrist”/>
<xs:enumeration value=“Reserved1”/>
<xs:enumeration value=“Reserved2”/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name=“MultipleAnySubtypesType”>
<xs:list itemType=“SingleAnySubtypeType”/>
</xs:simpleType>
<xs:simpleType name=“MultipleVeinOnlySubtypesType”>
<xs:list itemType=“SingleVeinOnlySubtypeType”/>
</xs:simpleType>
<xs:simpleType name=“SubtypeType”>
<xs:union memberTypes=“MultipleAnySubtypesType MultipleVeinOnlySubtypesType”/>
</xs:simpleType>
<xs:simpleType name=“ProcessedLevelType”>
<xs:restriction base=“xs:string”>
<xs:enumeration value=“Raw”/>
<xs:enumeration value=“Intermediate”/>
<xs:enumeration value=“Processed”/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name=“PurposeType”>
<xs:restriction base=“xs:string”>
<xs:enumeration value=“Verify”/>
<xs:enumeration value=“Identify”/>
<xs:enumeration value=“Enroll”/>
<xs:enumeration value=“EnrollVerify”/>
<xs:enumeration value=“EnrollIdentify”/>
<xs:enumeration value=“Audit”/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name=“UUIDType”>
<xs:restriction base=“xs:string”>
<xs:pattern value=”[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}”/>
</xs:restriction>
</xs:simpleType>

<xs:complexType name="OthersListType">
	<xs:sequence>
		<xs:element name="entry" type="Entry"
					nillable="true" maxOccurs="unbounded"
					minOccurs="0"/>
	</xs:sequence>
</xs:complexType>
<xs:complexType name="Entry">
	<xs:simpleContent>
		<xs:extension base="xs:string">
			<xs:attribute name="key" type="xs:string"
						  use="required"/>
		</xs:extension>
	</xs:simpleContent>
</xs:complexType>

</xs:schema>

I hope this solves your issue. In case of any other queries, feel free to reach out to us.

Regards,
Team MOSIP

Hi Sanchi,
Thanks a lot for your quick response.

This file seems to be XML definition (i.e what tags / attributes will be there) which helps but I am looking for an actual sample xml file not the definition of it.

Hi @rama

As I can see you are looking for an actual XML file sample, let me check with my team if we can provide you with that or any alternate solution to it.

Best Regards,
Team MOSIP.

Thanks a lot Sanchi,
Appreciate your help

1 Like

Hi @rama

Sample xml file - CBEFF - MOSIP Docs 1.2.0

> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <BIR xmlns="http://standards.iso.org/iso-iec/19785/-3/ed-2/">
>     <BIRInfo>
>         <Integrity>false</Integrity>
>     </BIRInfo>
>     <BIR>
>         <Version>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </Version>
>         <CBEFFVersion>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </CBEFFVersion>
>         <BIRInfo>
>             <Integrity>false</Integrity>
>         </BIRInfo>
>         <BDBInfo>
>             <Index>98293c98-7b64-4f9a-a209-9cadfd8e4a1e</Index>
>             <Format>
>                 <Organization>Mosip</Organization>
>                 <Type>7</Type>
>             </Format>
>             <CreationDate>2022-07-27T15:29:22.987808900Z</CreationDate>
>             <Type>Finger</Type>
>             <Subtype>Left RingFinger</Subtype>
>             <Level>Raw</Level>
>             <Purpose>Enroll</Purpose>
>             <Quality>
>                 <Algorithm>
>                     <Organization>HMAC</Organization>
>                     <Type>SHA-256</Type>
>                 </Algorithm>
>                 <Score>94</Score>
>             </Quality>
>         </BDBInfo>
>         <BDB>RklSADAyMA\.....</BDB>
>         <SB>ZXlKNE5XTWlP.....</SB>
>         <others>
>             <entry key="SPEC_VERSION">0.9.5</entry>
>             <entry key="RETRIES">1</entry>
>             <entry key="FORCE_CAPTURED">false</entry>
>             <entry key="EXCEPTION">false</entry>
>             <entry key="PAYLOAD">{"digitalId":"eyJ4NWMiOlsiTUlJR.....</entry>
>             <entry key="SDK_SCORE">0.0</entry>
>         </others>
>     </BIR>
>     <BIR>
>         <Version>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </Version>
>         <CBEFFVersion>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </CBEFFVersion>
>         <BIRInfo>
>             <Integrity>false</Integrity>
>         </BIRInfo>
>         <BDBInfo>
>             <Index>511e3f9c-e6f4-46b3-bc6d-193a01c6ad67</Index>
>             <Format>
>                 <Organization>Mosip</Organization>
>                 <Type>7</Type>
>             </Format>
>             <CreationDate>2022-07-27T15:29:22.987808900Z</CreationDate>
>             <Type>Finger</Type>
>             <Subtype>Left LittleFinger</Subtype>
>             <Level>Raw</Level>
>             <Purpose>Enroll</Purpose>
>             <Quality>
>                 <Algorithm>
>                     <Organization>HMAC</Organization>
>                     <Type>SHA-256</Type>
>                 </Algorithm>
>                 <Score>94</Score>
>             </Quality>
>         </BDBInfo>
>         <BDB>RklSADAyMA\.....</BDB>
>         <SB>ZXlKNE5XTWlP.....</SB>
>         <others>
>             <entry key="SPEC_VERSION">0.9.5</entry>
>             <entry key="RETRIES">1</entry>
>             <entry key="FORCE_CAPTURED">false</entry>
>             <entry key="EXCEPTION">false</entry>
>             <entry key="PAYLOAD">{"digitalId":"eyJ4NWMiOlsiTUlJ.....</entry>
>             <entry key="SDK_SCORE">0.0</entry>
>         </others>
>     </BIR>
>     <BIR>
>         <Version>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </Version>
>         <CBEFFVersion>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </CBEFFVersion>
>         <BIRInfo>
>             <Integrity>false</Integrity>
>         </BIRInfo>
>         <BDBInfo>
>             <Index>f9c11267-9018-44c2-a4d7-5bb1f1cf2555</Index>
>             <Format>
>                 <Organization>Mosip</Organization>
>                 <Type>8</Type>
>             </Format>
>             <CreationDate>2022-07-27T15:29:22.988805100Z</CreationDate>
>             <Type>Face</Type>
>             <Subtype></Subtype>
>             <Level>Raw</Level>
>             <Purpose>Enroll</Purpose>
>             <Quality>
>                 <Algorithm>
>                     <Organization>HMAC</Organization>
>                     <Type>SHA-256</Type>
>                 </Algorithm>
>                 <Score>94</Score>
>             </Quality>
>         </BDBInfo>
>         <BDB>RklSADAyMA\.....</BDB>
>         <SB>ZXlKNE5XTWlP.....</SB>
>         <others>
>             <entry key="SPEC_VERSION">0.9.5</entry>
>             <entry key="RETRIES">1</entry>
>             <entry key="FORCE_CAPTURED">false</entry>
>             <entry key="EXCEPTION">false</entry>
>             <entry key="PAYLOAD">{"digitalId":"eyJ4NWMiOlsiTUlJR.....</entry>
>             <entry key="SDK_SCORE">0.0</entry>
>         </others>
>     </BIR>
>     <BIR>
>         <Version>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </Version>
>         <CBEFFVersion>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </CBEFFVersion>
>         <BIRInfo>
>             <Integrity>false</Integrity>
>         </BIRInfo>
>         <BDBInfo>
>             <Index>5d7669c1-1f7d-4810-9cd5-5521a38be151</Index>
>             <Format>
>                 <Organization>Mosip</Organization>
>                 <Type>7</Type>
>             </Format>
>             <CreationDate>2022-07-27T15:29:22.988805100Z</CreationDate>
>             <Type>Finger</Type>
>             <Subtype>Right RingFinger</Subtype>
>             <Level>Raw</Level>
>             <Purpose>Enroll</Purpose>
>             <Quality>
>                 <Algorithm>
>                     <Organization>HMAC</Organization>
>                     <Type>SHA-256</Type>
>                 </Algorithm>
>                 <Score>94</Score>
>             </Quality>
>         </BDBInfo>
>         <BDB>RklSADAyMA\.....</BDB>
>         <SB>ZXlKNE5XTWlP.....</SB>
>         <others>
>             <entry key="SPEC_VERSION">0.9.5</entry>
>             <entry key="RETRIES">1</entry>
>             <entry key="FORCE_CAPTURED">false</entry>
>             <entry key="EXCEPTION">false</entry>
>             <entry key="PAYLOAD">{"digitalId":"eyJ4NWMiOlsiTUlJR.....</entry>
>             <entry key="SDK_SCORE">0.0</entry>
>         </others>
>     </BIR>
>     <BIR>
>         <Version>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </Version>
>         <CBEFFVersion>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </CBEFFVersion>
>         <BIRInfo>
>             <Integrity>false</Integrity>
>         </BIRInfo>
>         <BDBInfo>
>             <Index>db6f289e-fb86-4c0d-818e-2fa709660caf</Index>
>             <Format>
>                 <Organization>Mosip</Organization>
>                 <Type>9</Type>
>             </Format>
>             <CreationDate>2022-07-27T15:29:22.988805100Z</CreationDate>
>             <Type>Iris</Type>
>             <Subtype>Left</Subtype>
>             <Level>Raw</Level>
>             <Purpose>Enroll</Purpose>
>             <Quality>
>                 <Algorithm>
>                     <Organization>HMAC</Organization>
>                     <Type>SHA-256</Type>
>                 </Algorithm>
>                 <Score>94</Score>
>             </Quality>
>         </BDBInfo>
>         <BDB>RklSADAyMA\.....</BDB>
>         <SB>ZXlKNE5XTWlP.....</SB>
>         <others>
>             <entry key="SPEC_VERSION">0.9.5</entry>
>             <entry key="RETRIES">1</entry>
>             <entry key="FORCE_CAPTURED">false</entry>
>             <entry key="EXCEPTION">false</entry>
>             <entry key="PAYLOAD">{"digitalId":"eyJ4NWMiOlsiTUlJRjlqQ.....</entry>
>             <entry key="SDK_SCORE">0.0</entry>
>         </others>
>     </BIR>
>     <BIR>
>         <Version>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </Version>
>         <CBEFFVersion>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </CBEFFVersion>
>         <BIRInfo>
>             <Integrity>false</Integrity>
>         </BIRInfo>
>         <BDBInfo>
>             <Index>a60f8367-0818-40de-b935-405bc6d0f810</Index>
>             <Format>
>                 <Organization>Mosip</Organization>
>                 <Type>7</Type>
>             </Format>
>             <CreationDate>2022-07-27T15:29:22.988805100Z</CreationDate>
>             <Type>Finger</Type>
>             <Subtype>Left IndexFinger</Subtype>
>             <Level>Raw</Level>
>             <Purpose>Enroll</Purpose>
>             <Quality>
>                 <Algorithm>
>                     <Organization>HMAC</Organization>
>                     <Type>SHA-256</Type>
>                 </Algorithm>
>                 <Score>94</Score>
>             </Quality>
>         </BDBInfo>
>         <BDB>RklSADAyMA\.....</BDB>
>         <SB>ZXlKNE5XTWlP.....</SB>
>         <others>
>             <entry key="SPEC_VERSION">0.9.5</entry>
>             <entry key="RETRIES">1</entry>
>             <entry key="FORCE_CAPTURED">false</entry>
>             <entry key="EXCEPTION">false</entry>
>             <entry key="PAYLOAD">{"digitalId":"eyJ4NWMiOlsiTUlJR\.....</entry>
>             <entry key="SDK_SCORE">0.0</entry>
>         </others>
>     </BIR>
>     <BIR>
>         <Version>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </Version>
>         <CBEFFVersion>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </CBEFFVersion>
>         <BIRInfo>
>             <Integrity>false</Integrity>
>         </BIRInfo>
>         <BDBInfo>
>             <Index>b1dd9bef-0e19-42e3-b0ba-0ded02ef429b</Index>
>             <Format>
>                 <Organization>Mosip</Organization>
>                 <Type>7</Type>
>             </Format>
>             <CreationDate>2022-07-27T15:29:22.988805100Z</CreationDate>
>             <Type>Finger</Type>
>             <Subtype>Right IndexFinger</Subtype>
>             <Level>Raw</Level>
>             <Purpose>Enroll</Purpose>
>             <Quality>
>                 <Algorithm>
>                     <Organization>HMAC</Organization>
>                     <Type>SHA-256</Type>
>                 </Algorithm>
>                 <Score>94</Score>
>             </Quality>
>         </BDBInfo>
>         <BDB>RklSADAyMA\.....</BDB>
>         <SB>ZXlKNE5XTWlP.....</SB>
>         <others>
>             <entry key="SPEC_VERSION">0.9.5</entry>
>             <entry key="RETRIES">1</entry>
>             <entry key="FORCE_CAPTURED">false</entry>
>             <entry key="EXCEPTION">false</entry>
>             <entry key="PAYLOAD">{"digitalId":"eyJ4NWMiOlsiTUlJR.....</entry>
>             <entry key="SDK_SCORE">0.0</entry>
>         </others>
>     </BIR>
>     <BIR>
>         <Version>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </Version>
>         <CBEFFVersion>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </CBEFFVersion>
>         <BIRInfo>
>             <Integrity>false</Integrity>
>         </BIRInfo>
>         <BDBInfo>
>             <Index>ee0508b6-f42b-4a88-887b-10d71bc10ea0</Index>
>             <Format>
>                 <Organization>Mosip</Organization>
>                 <Type>7</Type>
>             </Format>
>             <CreationDate>2022-07-27T15:29:22.988805100Z</CreationDate>
>             <Type>Finger</Type>
>             <Subtype>Right LittleFinger</Subtype>
>             <Level>Raw</Level>
>             <Purpose>Enroll</Purpose>
>             <Quality>
>                 <Algorithm>
>                     <Organization>HMAC</Organization>
>                     <Type>SHA-256</Type>
>                 </Algorithm>
>                 <Score>94</Score>
>             </Quality>
>         </BDBInfo>
>         <BDB>RklSADAyMA\.....</BDB>
>         <SB>ZXlKNE5XTWlP.....</SB>
>         <others>
>             <entry key="SPEC_VERSION">0.9.5</entry>
>             <entry key="RETRIES">1</entry>
>             <entry key="FORCE_CAPTURED">false</entry>
>             <entry key="EXCEPTION">false</entry>
>             <entry key="PAYLOAD">{"digitalId":"eyJ4NWMiOlsiTUlJR.....</entry>
>             <entry key="SDK_SCORE">0.0</entry>
>         </others>
>     </BIR>
>     <BIR>
>         <Version>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </Version>
>         <CBEFFVersion>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </CBEFFVersion>
>         <BIRInfo>
>             <Integrity>false</Integrity>
>         </BIRInfo>
>         <BDBInfo>
>             <Index>614fb188-81c1-4190-af52-050a54fc31b5</Index>
>             <Format>
>                 <Organization>Mosip</Organization>
>                 <Type>9</Type>
>             </Format>
>             <CreationDate>2022-07-27T15:29:22.988805100Z</CreationDate>
>             <Type>Iris</Type>
>             <Subtype>Right</Subtype>
>             <Level>Raw</Level>
>             <Purpose>Enroll</Purpose>
>             <Quality>
>                 <Algorithm>
>                     <Organization>HMAC</Organization>
>                     <Type>SHA-256</Type>
>                 </Algorithm>
>                 <Score>94</Score>
>             </Quality>
>         </BDBInfo>
>         <BDB>RklSADAyMA\.....</BDB>
>         <SB>ZXlKNE5XTWlP.....</SB>
>         <others>
>             <entry key="SPEC_VERSION">0.9.5</entry>
>             <entry key="RETRIES">1</entry>
>             <entry key="FORCE_CAPTURED">false</entry>
>             <entry key="EXCEPTION">false</entry>
>             <entry key="PAYLOAD">{"digitalId":"eyJ4NWMiOlsiTUlJR.....</entry>
>             <entry key="SDK_SCORE">0.0</entry>
>         </others>
>     </BIR>
>     <BIR>
>         <Version>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </Version>
>         <CBEFFVersion>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </CBEFFVersion>
>         <BIRInfo>
>             <Integrity>false</Integrity>
>         </BIRInfo>
>         <BDBInfo>
>             <Index>971a3c27-aa02-4041-b8d8-52b402d30cd9</Index>
>             <Format>
>                 <Organization>Mosip</Organization>
>                 <Type>8</Type>
>             </Format>
>             <CreationDate>2022-07-27T15:29:22.988805100Z</CreationDate>
>             <Type>ExceptionPhoto</Type>
>             <Subtype></Subtype>
>             <Level>Raw</Level>
>             <Purpose>Enroll</Purpose>
>             <Quality>
>                 <Algorithm>
>                     <Organization>HMAC</Organization>
>                     <Type>SHA-256</Type>
>                 </Algorithm>
>                 <Score>94</Score>
>             </Quality>
>         </BDBInfo>
>         <BDB>RklSADAyMA\.....</BDB>
>         <SB>ZXlKNE5XTWlP.....</SB>
>         <others>
>             <entry key="SPEC_VERSION">0.9.5</entry>
>             <entry key="RETRIES">1</entry>
>             <entry key="FORCE_CAPTURED">false</entry>
>             <entry key="EXCEPTION">false</entry>
>             <entry key="PAYLOAD">{"digitalId":"eyJ4NWMiOlsiTUlJR.....</entry>
>             <entry key="SDK_SCORE">0.0</entry>
>         </others>
>     </BIR>
>     <BIR>
>         <Version>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </Version>
>         <CBEFFVersion>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </CBEFFVersion>
>         <BIRInfo>
>             <Integrity>false</Integrity>
>         </BIRInfo>
>         <BDBInfo>
>             <Index>7ad51076-4d10-4f83-92a4-3954e6797355</Index>
>             <Format>
>                 <Organization>Mosip</Organization>
>                 <Type>7</Type>
>             </Format>
>             <CreationDate>2022-07-27T15:29:22.988805100Z</CreationDate>
>             <Type>Finger</Type>
>             <Subtype>Right MiddleFinger</Subtype>
>             <Level>Raw</Level>
>             <Purpose>Enroll</Purpose>
>             <Quality>
>                 <Algorithm>
>                     <Organization>HMAC</Organization>
>                     <Type>SHA-256</Type>
>                 </Algorithm>
>                 <Score>94</Score>
>             </Quality>
>         </BDBInfo>
>         <BDB>RklSADAyMA\.....</BDB>
>         <SB>ZXlKNE5XTWlP.....</SB>
>         <others>
>             <entry key="SPEC_VERSION">0.9.5</entry>
>             <entry key="RETRIES">1</entry>
>             <entry key="FORCE_CAPTURED">false</entry>
>             <entry key="EXCEPTION">false</entry>
>             <entry key="PAYLOAD">{"digitalId":"eyJ4NWMiOlsiTUlJR.....</entry>
>             <entry key="SDK_SCORE">0.0</entry>
>         </others>
>     </BIR>
>     <BIR>
>         <Version>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </Version>
>         <CBEFFVersion>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </CBEFFVersion>
>         <BIRInfo>
>             <Integrity>false</Integrity>
>         </BIRInfo>
>         <BDBInfo>
>             <Index>b055cbde-925b-47b3-bab6-070a57c1a916</Index>
>             <Format>
>                 <Organization>Mosip</Organization>
>                 <Type>7</Type>
>             </Format>
>             <CreationDate>2022-07-27T15:29:22.988805100Z</CreationDate>
>             <Type>Finger</Type>
>             <Subtype>Left MiddleFinger</Subtype>
>             <Level>Raw</Level>
>             <Purpose>Enroll</Purpose>
>             <Quality>
>                 <Algorithm>
>                     <Organization>HMAC</Organization>
>                     <Type>SHA-256</Type>
>                 </Algorithm>
>                 <Score>94</Score>
>             </Quality>
>         </BDBInfo>
>         <BDB>RklSADAyMA\.....</BDB>
>         <SB>ZXlKNE5XTWlP.....</SB>
>         <others>
>             <entry key="SPEC_VERSION">0.9.5</entry>
>             <entry key="RETRIES">1</entry>
>             <entry key="FORCE_CAPTURED">false</entry>
>             <entry key="EXCEPTION">false</entry>
>             <entry key="PAYLOAD">{"digitalId":"eyJ4NWMiOlsiTUlJR.....</entry>
>             <entry key="SDK_SCORE">0.0</entry>
>         </others>
>     </BIR>
>     <BIR>
>         <Version>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </Version>
>         <CBEFFVersion>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </CBEFFVersion>
>         <BIRInfo>
>             <Integrity>false</Integrity>
>         </BIRInfo>
>         <BDBInfo>
>             <Index>02c43091-fe1e-4b6f-acae-e2cb59c1ed9b</Index>
>             <Format>
>                 <Organization>Mosip</Organization>
>                 <Type>7</Type>
>             </Format>
>             <CreationDate>2022-07-27T15:29:22.988805100Z</CreationDate>
>             <Type>Finger</Type>
>             <Subtype>Right Thumb</Subtype>
>             <Level>Raw</Level>
>             <Purpose>Enroll</Purpose>
>             <Quality>
>                 <Algorithm>
>                     <Organization>HMAC</Organization>
>                     <Type>SHA-256</Type>
>                 </Algorithm>
>                 <Score>0</Score>
>             </Quality>
>         </BDBInfo>
>         <SB></SB>
>         <others>
>             <entry key="SPEC_VERSION"></entry>
>             <entry key="RETRIES">0</entry>
>             <entry key="FORCE_CAPTURED">false</entry>
>             <entry key="EXCEPTION">true</entry>
>             <entry key="PAYLOAD"></entry>
>             <entry key="SDK_SCORE">0.0</entry>
>         </others>
>     </BIR>
>     <BIR>
>         <Version>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </Version>
>         <CBEFFVersion>
>             <Major>1</Major>
>             <Minor>1</Minor>
>         </CBEFFVersion>
>         <BIRInfo>
>             <Integrity>false</Integrity>
>         </BIRInfo>
>         <BDBInfo>
>             <Index>5b6e49c6-3a18-4ced-a931-d905860343fd</Index>
>             <Format>
>                 <Organization>Mosip</Organization>
>                 <Type>7</Type>
>             </Format>
>             <CreationDate>2022-07-27T15:29:22.988805100Z</CreationDate>
>             <Type>Finger</Type>
>             <Subtype>Left Thumb</Subtype>
>             <Level>Raw</Level>
>             <Purpose>Enroll</Purpose>
>             <Quality>
>                 <Algorithm>
>                     <Organization>HMAC</Organization>
>                     <Type>SHA-256</Type>
>                 </Algorithm>
>                 <Score>0</Score>
>             </Quality>
>         </BDBInfo>
>         <SB></SB>
>         <others>
>             <entry key="SPEC_VERSION"></entry>
>             <entry key="RETRIES">0</entry>
>             <entry key="FORCE_CAPTURED">false</entry>
>             <entry key="EXCEPTION">true</entry>
>             <entry key="PAYLOAD"></entry>
>             <entry key="SDK_SCORE">0.0</entry>
>         </others>
>     </BIR>
> </BIR>

Best Regards,
Team MOSIP

1 Like

Thank you so much Sanchi!

About the binary tags (BDB and SB), I understand they are omitted because they’d make the xml file huge so I just need to confirm with you:

Which of these fields contains an image of the bio-metric in question (finger/iris/face) and do I just need to do base64 decoding to obtain the image or its more complicated than that?

Appreciate your help.

Hi @rama

The value in BDB is actually Base64URL encoded ISO image. You need to simply decode it. Once decoded, you will have an ISO, which can be converted to a JPEG2000 image.

You can use our bio-utils library to convert the ISO to JPEG2000 image.

Thanks,
Sanchi

1 Like

Any chance you could provide us with any ISO image to test if we are able to successfully convert it to JPG or not?

PS: I don’t know Java so I can not use bio-utils library unfortunately, I’ll need to find something for python.

Thanks

Hi @rama

You can refer this for ISO image test - https://github.com/mosip/mosip-mock-services/tree/v1.2.0.1-B2/MockMDS/Profile/Default/Registration

Best Regards,
Team MOSIP

Thank you so much Sanchi, You were super helpful :pray:

Hi @rama

Do let us know if you have any queries in the future we will be happy to guide you through the process.

Best Regards,
Team MOSIP