Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vehicle infromations should be stored in a ledger #24

Open
obermeier opened this issue Nov 23, 2023 · 1 comment
Open

Vehicle infromations should be stored in a ledger #24

obermeier opened this issue Nov 23, 2023 · 1 comment
Labels
chaincode enhancement New feature or request

Comments

@obermeier
Copy link
Member

Storing the characteristics of the used vehicle on the blockchain makes it easier to reproduce the calculated PCF.
A chain code function should be able to write the characteristic and another function be able to read the data based on the ID.

The id should be used as key.

Example payload:

{
    "id": "0cafe6b0-8a14-11ee-b9d1-0242ac120002",
    "name": "My lovely DB5",
    "emissionPerKm": 40
}
@obermeier obermeier added enhancement New feature or request chaincode labels Nov 23, 2023
@obermeier
Copy link
Member Author

Add reference values for example vehicles

{
    "id": "d7180626-bf12-4bd7-96b9-fd5ff4b51a3d",
    "name": "My Citybike",
    "emissionPerKm": 0
}

{
    "id": "3307a49f-d1d1-4ae8-80d9-b467936a939e",
    "name": "My MTB",
    "emissionPerKm": 0
}

{
    "id": "0cafe6b0-8a14-11ee-b9d1-0242ac120002",
    "name": "My lovely DB5",
    "emissionPerKm": 250
}

{
    "id": "b6eb42e9-2f55-4a99-8e2d-2812b337431f",
    "name": "My allday Golf",
    "emissionPerKm": 115
}

{
    "id": "e09c2259-994e-40f1-8b1d-c66a55ca0bb7",
    "name": "Always late train",
    "emissionPerKm": 93
}

Refs to id
[b6eb42e9-2f55-4a99-8e2d-2812b337431f] https://www.volkswagen.de/idhub/content/dam/onehub_pkw/importers/de/besitzer-und-nutzer/wissenswertes/wltp/WLTP_Emissionswerte_Emissionsnormen_DE_10-19.pdf (27.12.2023)
[e09c2259-994e-40f1-8b1d-c66a55ca0bb7] https://www.umweltbundesamt.de/bild/vergleich-der-durchschnittlichen-emissionen-0 (27.12.2023)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chaincode enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant