ghg-emission-did

Create DID holding GHG Emissions

Usage no npm install needed!

<script type="module">
  import ghgEmissionDid from 'https://cdn.skypack.dev/ghg-emission-did';
</script>

README

ghg-emission-did

Create DID holding GHG Emissions

Installation

Use the package manager npm to install ghg-emission-did

Useage as a module

npm install --save ghg-emission-did
const ghgdid = require("ghg-emission-did");

const app = async function() {
  let did = new ghgdid({
    co2eq:10
  });
  console.log(await did.getJWT());
}
app();

Payload for DID

Parameter Required Description
co2eq required CO2 Emission in Grams
scope recommended GHG Protocol Scope
category recommended GHG Protocol Category in Scope
keypair recommended Signing public and private key
title recommended Description of emission event

All other fields provided as parameters will be added as Payload.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate. Details on contributing.

Maintainer / Imprint

STROMDAO GmbH
Gerhard Weiser Ring 29
69256 Mauer
Germany

+49 6226 968 009 0

kontakt@stromdao.com

Handelsregister: HRB 728691 (Amtsgericht Mannheim)

Project Website: https://co2offset.io/

LICENSE

Apache-2.0