Skip to content

Instantly share code, notes, and snippets.

@da-blog
Created August 1, 2023 15:58
Show Gist options
  • Save da-blog/bdab53b9300487f84e39414566059ca9 to your computer and use it in GitHub Desktop.
Save da-blog/bdab53b9300487f84e39414566059ca9 to your computer and use it in GitHub Desktop.
data VerifiableCredentials = VerifiableCredentials
with
connectionid : Text
holder_did : Text
issuer_did : Text
deriving (Eq, Show)
controller healthClinic can
nonconsuming SetVerifiableCredentials : ContractId CitizenCredentialsProposal
with
newverifiablecredentials : VerifiableCredentials
citizen: Party
do
create CitizenCredentialsProposal with citizen, verifiablecredentials = newverifiablecredentials
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment