ghg-emission-did
v0.0.1
Published
Create DID holding GHG Emissions
Downloads
5
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
Project Website: https://co2offset.io/