Skip to content

Commit

Permalink
Add ref to rust impl for WitnessUtxoData
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Jun 19, 2019
1 parent 1c11d5a commit 86f81c4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ newTransactionLayer block0Hash = TransactionLayer
withEither :: e -> Maybe a -> Either e a
withEither e = maybe (Left e) Right


newtype WitnessData = WitnessData ByteString

-- Rust implementation:
--
-- https://github.com/input-output-hk/rust-cardano/blob/13af7aa08cdac8efc9dc8b0f7ff9162d28b2d479/chain-impl-mockchain/src/transaction/witness.rs#L60-L61
witnessUtxoData :: Hash "Block0Hash" -> Hash "Tx" -> WitnessData
witnessUtxoData (Hash block0) (Hash tx) = WitnessData (block0 <> tx)

Expand Down

0 comments on commit 86f81c4

Please sign in to comment.