Skip to content

Commit

Permalink
Merge pull request input-output-hk#82 from neville-freeman/sign-tx-to…
Browse files Browse the repository at this point in the history
…_bytes

output signed tx in binary format
  • Loading branch information
vincenthz authored Jan 30, 2020
2 parents 6582eae + 4e3608d commit fed3758
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cardano-wallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,10 @@ impl SignedTransaction {
let bytes = cbor!(&self.0).map_err(|e| JsValue::from_str(&format! {"{:?}", e}))?;
Ok(util::hex::encode(&bytes))
}
pub fn to_bytes(&self) -> Result<String, JsValue> {
let bytes = cbor!(&self.0).map_err(|e| JsValue::from_str(&format! {"{:?}", e}))?;
Ok(bytes)
}
}

/// This is the linear fee algorithm used buy the current cardano blockchain.
Expand Down

0 comments on commit fed3758

Please sign in to comment.