0

Background:

I've been looking to integrate smart contracts into my app and I came across this passage on the Marlowe site:

A Party is represented as either a public key hash or a role name.

data Party = PK PubKeyHash | Role TokenName

In order to progress a Marlowe contract, a party must provide an evidence. For PK party that would be a valid signature of a transaction signed by a private key of a public key that hashes to party’s PubKeyHash, similarly to Bitcoin’s Pay to Public Key Hash mechanism. For a Role party the evidence is spending a role token within the same transaction, usually to the same owner.

Question:

So to clarify, I need to get the wallet's public key and then turn that into a Pub KeyHash through sha-2 and then RIPEMD-160? Then I can use that in the Marlowe contracts?

Source

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.