hashgraph / guardian

The Guardian is an innovative open-source platform that streamlines the creation, management, and verification of digital environmental assets. It leverages a customizable Policy Workflow Engine and Web3 technology to ensure transparent and fraud-proof operations, making it a key tool for transforming sustainability practices and carbon markets.
Apache License 2.0
105 stars 133 forks source link

HBAR transfer block #2705

Open AlexIvanHoward opened 1 year ago

AlexIvanHoward commented 1 year ago

Problem description

There is currently no easy way to pay validators and verifiers (or any other policy participants) for their services directly from within a Guardian policy. Adding a simple HBAR transfer block could be highly valuable, because: (a) Currently policy participants have to handle payments for services outside of the policy, which is a hassle - you have to use two platforms (the Guardian + some payment system) to perform one task (e.g., getting a report reviewed). Having an HBAR transfer block will allow you to handle both aspects of a task from within the Guardian. (b) One of the big problems with institutionalised/traditional VVBs is that they are very expensive and usually require large up-front payments. Having an HBAR transfer block available to policies will make micropayments (or "pay-as-you-go" payments) possible, opening up the way for the develpment of validation and verification paradigms that accommodate project developers who cannot afford traditional VVBs but who still want to produce high-quality credits.

Requirements

At least the following scenario should be possible: The HBAR transfer block is preceded by a requestVcDocumentBlock. The HBAR transfer block uses the fields in the received VC to determine how much HBAR to transfer and to whom, e.g., send document.credentialSubject.0.field0 HBAR to the account specified by document.credentialSubject.0.field1. If the recipient field is left unspecified during policy creation, the block should default to the issuer of the VC document.

Definition of done

An HBAR transfer block has been added to the list of available policy blocks. The HBAR transfer block works for the scenario presented under 'Requirements' above.

mattsmithies commented 1 year ago

I would expand this to be a payment transfer block, to allow for any token or stable coin. As HBAR or any non-stable coin could go down in value.

AlexIvanHoward commented 1 year ago

Notes from our discussion of this ticket during the weekly Guardian Tech Meet-up on 27 September 2023:

  1. This ticket hints at a much broader topic, namely the reality of economic relations between policy participants.
  2. Given (1), the first question we should ask ourselves is probably whether or not this is something that the Guardian should concern itself with.
  3. If the answer to (2) is "no", then it's up to the Guardian community / Hedera ecosystem to develop mechanisms, outside of the Guardian, for handling the economic relations between policy actors.
  4. If the answer to (2) is "yes", we can start discussing the issue in greater detail.