IntersectMBO / cardano-transactions

Library utilities for constructing and signing Cardano transactions.
Apache License 2.0
25 stars 7 forks source link

Add CBOR encoder / decoder for internal MkPayment representation #2

Closed KtorZ closed 4 years ago

KtorZ commented 4 years ago

The goal is to then enable the command-line interface, using this underlying representation. With this, we can have a command-line printing on stdout an intermediate encoded representation that can be easily piped between commands (very much like jcli):

$  cardano-tx empty --mainnet \
    | cardano-tx add-input 14 3b40265111d8bb3c3c608d95b3a0bf83461ace32d79336579a1939b3aad1c0b7 \
    | cardano-tx add-output 42 Ae2tdPwUPEZETXfbQxKMkMJQY1MoHCBS7bkw6TmhLjRvi9LZh1uDnXy319f \
    | cardano-tx lock \
    | cardano-tx signWith e0860dab46f13e74ab834142e8877b80bf22044cae8ebab7a21ed1b8dc00c155 \
    | cardano-tx serialize