input-output-hk / js-cardano-wasm

various cardano javascript using wasm bindings
MIT License
31 stars 21 forks source link

Generate input-tx and address by redemption public key #46

Closed vsubhuman closed 5 years ago

vsubhuman commented 5 years ago

This feature is required to convert all avvm keys from the genesis block into transaction outputs.

  1. Implemented redemption_public_to_avvm_tx_out in Rust
  2. Implemented redemptionPubKeyToAvvmTxOut connector in JS
  3. Implemented new test and fixed previous tests

For new test used actual publicly known IOHK redemption public key from the genesis and compared with the actual known address: Ae2tdPwUPEZKQuZh2UndEoTKEakMYHGNjJVYmNZgJk2qqgHouxDsA5oT83n.

Also fixed line in Rust where Coin were dereferences, since latest rust-cardano doesn't do it anymore.

vsubhuman commented 5 years ago

Makes sense! Fixed in both cases.