perun-credential-payment
This repository demonstrates how go-perun can be used to realize trustless credential payment.
The protocol guarantees that the credential issuer receives the payment if and only if the requested credential is correctly issued.
It is based on a smart contract deployed on a blockchain.
More details on the protocol can be found in PROTOCOL.
More details on plans to integrate this implementation with the Hyperledger Aries Framework can be found in INTEGRATION.
Development
Test
Ensure that go and ganache-cli are installed.
go test ./... -v
Compile smart contract
This step is only necessary if you want to make changes to the smart contract.
It requires abigen and solc.
abigen --pkg app --sol app/CredentialSwap.sol --out app/CredentialSwap.go --solc solc