Skip to content

Commit

Permalink
add signWith impl for shelley witness
Browse files Browse the repository at this point in the history
  • Loading branch information
paweljakubas committed Aug 10, 2020
1 parent d5463b0 commit 3b1cc29
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Data/UTxO/Transaction/Cardano/Shelley.hs
Expand Up @@ -119,7 +119,13 @@ instance MkPayment Shelley where
neInps = NE.fromList $ reverse inps
neOuts = NE.fromList $ reverse outs

signWith = undefined
signWith :: SignKey Shelley -> Tx Shelley -> Tx Shelley
signWith _ (Left e) = Left e
signWith signingKey (Right (net, inps, outs, sigData, wits)) =
Right (net, inps, outs, sigData, shelleyWit : wits)
where
shelleyWit = Cardano.makeShelleyKeyWitness sigData signingKey

serialize = undefined

-- | Construct a payment 'Input' for /Shelley/ from primitive types.
Expand Down

0 comments on commit 3b1cc29

Please sign in to comment.