This package has been deprecated

Author message:

Project was renamed to aproof. baproof is no longer supported and does not conform to the specification.

baproof

0.0.7 • Public • Published

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?

Package Sidebar

Install

npm i baproof

Weekly Downloads

0

Version

0.0.7

License

MIT

Last publish

Collaborators

  • olalonde