Skip to content

replace key worker with elixir-wallet #132

Description

@thepiwo

Activity

  1. thepiwo commented on Dec 4, 2017

    @thepiwo
    ContributorAuthor

    I guess @gspasov would be ideal to do this task

  2. gspasov commented on Jan 5, 2018

    @gspasov
    Contributor

    @thepiwo Should I add the elixir-wallet as a separate app, or just change the functionality of the Keys module?

  3. thepiwo commented on Jan 5, 2018

    @thepiwo
    ContributorAuthor

    The elixir wallet should be included as hex dependency and the Key Manager should be removed. Wherever the Key Manager is called functions from the wallet should be called now

  4. gspasov commented on Jan 5, 2018

    @gspasov
    Contributor

    @thepiwo Looking at the Keys module, it seems that I won't be able just to remove it and use the functionality from the elixir-wallet, because in this module there are some things that I cannot do simply with the elixir-wallet functions. Maybe I can alter the module to such extend that I use the functions from the elixir-wallet, but leave the other stuff.

    Edit: Maybe if I move the sign_tx() function inside the SignedTx module it could work, and I could remove the whole Keys module

  5. thepiwo commented on Jan 5, 2018

    @thepiwo
    ContributorAuthor

    signing should work with the wallet as well, what other issues are there?

  6. gspasov commented on Jan 5, 2018

    @gspasov
    Contributor

    There is a signing functionality in the wallet, but the signing function in the core is different in the way that it actually creates the Tx itself:

    def sign_tx(to_acc, value, nonce, fee, lock_time_block \\ 0) do
        {:ok, from_acc} = pubkey()
        {:ok, tx_data} = TxData.create(from_acc, to_acc, value, nonce, fee, lock_time_block)
        {:ok, signature} = sign(tx_data)
        signed_tx = %SignedTx{data: tx_data, signature: signature}
        {:ok, signed_tx}
      end
  7. thepiwo commented on Jan 5, 2018

    @thepiwo
    ContributorAuthor

    yeah you can put this function in the SignedTx and call the wallet code from there

  8. gspasov commented on Jan 5, 2018

    @gspasov
    Contributor

    @thepiwo
    @meivantodorov
    Edited: Blockers: This pull request should be accepted before we continue our work. I have fixed the namings of the modules.

  9. added 4 commits that reference this issue on Jan 9, 2018
  10. 24 remaining items

  11. added 11 commits that reference this issue on Feb 19, 2018
  12. added a commit that references this issue on Mar 1, 2018
  13. added 2 commits that reference this issue on Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions