Code Monkey home page Code Monkey logo

brave-payments-tools's People

Contributors

evq avatar mrose17 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

brave-payments-tools's Issues

Collective/threshold signatures

Right now, the usage model of the brave-payments-tools cli is that there is an offline machine with a keychain that can sign transactions, and an online machine that talks to the Uphold service and sends the transactions to them to execute. That means that the offline machine has unilateral power to cryptographically authorize transactions for Uphold.

(The keychain is also encrypted with a passphrase, and for recovery purposes, we also use Shamir's secret-sharing scheme to save a copy of the passphrase for the keychain split k-of-n ways. The point remains that whoever has the offline machine and the passphrase has unilateral power to authorize transactions.)

It would be nice if we could arrange that there were never a single machine with unilateral power to authorize transactions for Uphold, so that it always takes at least two parties to authorize a transaction for high-value wallets. The signatures in question are standard Ed25519 signatures, and it turns out there is a relatively easy way to distribute key generation and signing for Ed25519 into an n-of-n collective signature scheme with no changes to the verifier.

(k-of-n for thresholds k < n is harder and probably requires changes to the verifier; there's an I-D in progress on that subject, though of course if we could change the verifier a concatenation of k signatures from keys the verifier confirms distinct would work without fancy math.)

Although there's probably no implementation of this readily available, it is not far off from a standard Ed25519 signer either -- just requires a few extra additions on the curve. Obviously I would want to consult a Real Cryptographer first before implementing and deploying this, but here's a description of the scheme with references: https://crypto.stackexchange.com/a/50450

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.