Create DID holding GHG Emissions
Use the package manager npm to install ghg-emission-did
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();
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.
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.
STROMDAO GmbHGerhard Weiser Ring 29
69256 Mauer
Germany
+49 6226 968 009 0
kontakt@stromdao.com
Handelsregister: HRB 728691 (Amtsgericht Mannheim)
Project Website: https://co2offset.io/