0.0.1 • Published 2 years ago

ghg-emission-did v0.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

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

ParameterRequiredDescription
co2eqrequiredCO2 Emission in Grams
scoperecommendedGHG Protocol Scope
categoryrecommendedGHG Protocol Category in Scope
keypairrecommendedSigning public and private key
titlerecommendedDescription 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/

LICENSE

Apache-2.0