Skip to content

Commit

Permalink
Release 2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nodh committed Jan 29, 2025
1 parent d36ab9e commit 18e565e
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 6 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@
Data classes representing certificate of residences, as a SD JWT Credential, with the help
of [VC-K](https://github.com/a-sit-plus/vck).

Be sure to call `at.asitplus.wallet.cor.Initializer.initWithVCK` first thing in your application.
Be sure to call `at.asitplus.wallet.cor.Initializer.initWithVCK()` first thing in your application.

## Changelog

Release 2.1.2
- Update to VC-K 5.3.0
- Add attribute names in dot-notation, e.g. `residence_address.po_box`, see `CertificateOfResidenceDataElements`

Release 2.1.1
- Update to VC-K 5.2.1
- Kotlin 2.1.0
Expand Down
2 changes: 1 addition & 1 deletion certificateofresidence/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ kotlin {
sourceSets {
commonMain {
dependencies {
api("at.asitplus.wallet:vck:5.2.1")
api("at.asitplus.wallet:vck:5.3.0")
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ object CertificateOfResidenceDataElements {
/** Day, month, and year on which the User was born. If unknown, approximate date of birth. */
const val BIRTH_DATE = "birth_date"

/** The address of residence of the User. */
/** The address of residence of the User, see [Address]. */
const val RESIDENCE_ADDRESS = "residence_address"

/** User’s gender, using a value as defined in ISO/IEC 5218. */
Expand Down Expand Up @@ -50,6 +50,40 @@ object CertificateOfResidenceDataElements {
* Clause 8. The first part of the code SHALL be the same as the value for issuing_country. */
const val ISSUING_JURISDICTION = "issuing_jurisdiction"

/** A location designator for a postal delivery point at a post office, usually a number (ex: “9383”). */
const val RESIDENCE_ADDRESS_PO_BOX = "$RESIDENCE_ADDRESS.po_box"

/** The name of a passage or way through from one location to another. A thoroughfare is usually a street. */
const val RESIDENCE_ADDRESS_THOROUGHFARE = "$RESIDENCE_ADDRESS.thoroughfare"

/** Number or sequence of characters that uniquely identifies the locator within the relevant scope
* (building number, apartment number, etc). For an address such as "Flat 3, 17 Bridge Street",
* the locator is "flat 3, 17". */
const val RESIDENCE_ADDRESS_LOCATOR_DESIGNATOR = "$RESIDENCE_ADDRESS.locator_designator"

/** Proper noun(s) applied to the real world entity identified by the locator (ex: name of the property
* or complex). */
const val RESIDENCE_ADDRESS_LOCATOR_NAME = "$RESIDENCE_ADDRESS.locator_name"

/** Code created and maintained for postal purposes to identify a subdivision of addresses and postal
* delivery points (ex: “7500”). */
const val RESIDENCE_ADDRESS_POST_CODE = "$RESIDENCE_ADDRESS.post_code"

/** Name created and maintained for postal purposes to identify a subdivision of addresses and postal delivery
* points (ex: “Paris”). */
const val RESIDENCE_ADDRESS_POST_NAME = "$RESIDENCE_ADDRESS.post_name"

/** Name of the uppermost level of the address. Almost always this is a country, which then must be the
* Aplha-2 country code as specified in ISO 3166-1. */
const val RESIDENCE_ADDRESS_ADMIN_UNIT_L_1 = "$RESIDENCE_ADDRESS.admin_unit_L1"

/** Name of a secondary level/region of the address. This is usually a county, state, region, province or
* other such area that typically encompasses several localities */
const val RESIDENCE_ADDRESS_ADMIN_UNIT_L_2 = "$RESIDENCE_ADDRESS.admin_unit_L2"

/** Complete address written as a string */
const val RESIDENCE_ADDRESS_FULL_ADDRESS = "$RESIDENCE_ADDRESS.full_address"

object Address {
/** A location designator for a postal delivery point at a post office, usually a number (ex: “9383”). */
const val PO_BOX = "po_box"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ package at.asitplus.wallet.cor
import at.asitplus.wallet.lib.data.ConstantIndex.CredentialRepresentation
import at.asitplus.wallet.lib.data.ConstantIndex.CredentialRepresentation.SD_JWT
import at.asitplus.wallet.lib.data.ConstantIndex.CredentialScheme
import at.asitplus.wallet.lib.data.SchemaIndex

object CertificateOfResidenceScheme : CredentialScheme {

override val schemaUri: String = "${SchemaIndex.BASE}/schemas/1.0.0/cor.json"
override val schemaUri: String = "https://wallet.a-sit.at/schemas/1.0.0/cor.json"
override val sdJwtType: String = "eu.europa.ec.eudi.cor.1"
override val supportedRepresentations: Collection<CredentialRepresentation> =
listOf(SD_JWT)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ kotlin.mpp.enableCInteropCommonization=true
kotlin.mpp.stability.nowarn=true
kotlin.native.ignoreDisabledTargets=true

artifactVersion = 2.1.1
artifactVersion = 2.1.2
jdk.version=17

0 comments on commit 18e565e

Please sign in to comment.