Skip to content

A multi-signature collaborative custody service protecting user bitcoins

License

Notifications You must be signed in to change notification settings

enigbe/bitcoin-cosign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin-Cosign

A collaborative custody service allowing users to protect their bitcoins by locking them to a 2-of-3 multisignature address. The address is created from two (2) user-supplied extended public keys and one provided by the service. This allows users to unlock their bitcoins independently by two valid signatures, or collaboratively, by providing one valid signature, and getting the second from the service.

MVP Status

  • Work in progess.

Features

This project is built with Rust and actix-web as a collection of API endpoints to:

  • Register new users.
  • Collect and persist extended public keys from users.
  • Generate multisignature destination addresses where users' bitcoins can be locked to
  • Collaborate in the signing of transaction inputs referencing the UTXOs locked to 2-of-3 multisignature address.

Required Dependencies

  • Rust v1.56+

Run

  1. Clone the repository and change to the cloned directory
$ git clone https://github.com/enigbe/bitcoin-cosign
$ cd bitcoin-cosign
  1. Start a docker container for the database
$ ./scripts/init_db.sh
  1. Run unit and integration tests. Ensure all tests are passing before moving to the next step
$ cargo test
  1. Start the server
$ cargo run

You should have the server running on port 33335 if all goes well.

About

A multi-signature collaborative custody service protecting user bitcoins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published