input-output-hk / rust-byron-cardano

rust client libraries to deal with the current cardano mainnet (byron / cardano-sl)
MIT License
264 stars 75 forks source link

IOHKCRB-34 Sign transaction example #706

Closed ecioppettini closed 5 years ago

ecioppettini commented 5 years ago

Summary

Example

Add full example of creating a wallet, a transaction, signing it an serializing it. For the testnet. Add Makefile for building the example.

Add two functions

The first one is to be able to derive the private keys for signing. The second one is because it is needed for the witness and the only way of getting it right now is for a tx already signed.

Add to the header

Add cardano_xprv_derive to the header (it was implemented but not exported)