Coder Social home page Coder Social logo

wrap-signer's People

Contributors

bodysplash avatar couillardcharles avatar

Watchers

 avatar  avatar  avatar  avatar

wrap-signer's Issues

Better error messages

For now, when the signer fails, error messages are not very useful.
We should try to display diagnostics messages

Sign set payment address payload

Signers, if they want to use a different payment address than the implicit account associated with their key, must sign a message.
Signer should provide an endpoint to ease this process

Retry policy on polling

For now, we fail fast. For every single error, we shutdown the signer. This is good, but in the case of temporary network errors, not so much.
So the goal here would be to introduce a retry policy for polling tezos and ethereum

Only mint supported tokens

For now, signer node will accept to sign whatever erc20 transfer has been observed, wether or not it is supported.

We could read minter contract storage to create a supported tokens list

A bad tezos address as destination should not stuck the quorum forever

Signer does not cope well if a bad tezos address is specified as the owner of an unwrap.
Since we shutdown for every single error, that means that the quorum would be stuck forever.

Several options here:

  • ignore that kind of bad wrap requests
  • sign an unwrap transaction, so the locked assets can be claimed.

Hardware support

In addition of cloud hsm and in memory keys, signer should support some kind of hardware.

Several options here:

  • generic PKCS11 support
  • specific hardware:
  • SmartCard Hsm
  • YubiHSM

Enhance test coverage

Signer is not as unit tested as it should, mainly because it deals a lot with IO, which are not easy to unit test in the first place when you're not sure of the expected behaviour.

Production metrics

In addition to logs, signer node could provide some aggregated metrics, to ensure everything is fine.

Prometheus is an option, as it is very standard, but using structured logs could also do the trick.

Sign add token payload

Tokens, to be added, must be signed.
Signer should provide a way to handle this.

Maybe a simple endpoint, that would generate an event for the indexer to consume.

Wrong state

From times to times, the signer doesn't restart with its last polling level.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.