🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

baproof

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baproof

Tool to prove how many bitcoins someone controls. Intended for use as part of the blind-solvency-proof scheme.

latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

baproof - Bitcoin asset proof

Intended for use as part of olalonde/blind-solvency-proof scheme.

Scheme and companion tool to prove how many bitcoins an entity controls.

Beer fund: 1ECyyu39RtDNAuk3HRCRWwD4syBF2ZGzdx

Install

npm install -g baproof

Usage

Generate bitcoin asset proof

$ baproof signall -h "localhost" -p 8332 --user "rpcuser" --pass "rpcpass" "MtGox.com BTC assets" > btc-asset-proof.out.json

Verify signatures

$ baproof verifysignatures btc-asset-proof.out.json

Verify signatures and show total balance of all addresses

$ baproof balance -h "localhost" -p 8332 --user "rpcuser" --pass "rpcpass" btc-asset-proof.out.json

Browser build:

$ browserify ./lib/index.js --standalone baproof > build/baproof.js

Assets proof

The assets proof is done by signing an identifier with all private keys in a Bitcoin wallet.

Embedded

<meta name='x-assets-proof' data='/btc-assets.json'>

File format (draft)

btc-assets.json

{
  "id": "MtGox.com BTC assets"
  "signatures": [
    { "address": "", "signature": "" }
  ],
  "type": "BTC" (optional - defaults to bitcoin)
}

Limitations

TODO... (you could convince someone else to signmessage for you?) There could be an online wallet which allows you to signmessage without revealing the private key, etc. etc. Might be interesting to explore the "make transaction"/"far future lock time" solution. Maybe combine multiple solutions together?

Keywords

bitcoin

FAQs

Package last updated on 13 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts