Bitcoin Forum
June 21, 2024, 11:04:05 PM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 3 4 5 »
1  Bitcoin / Project Development / Re: [ANN] pyspv 0.0.1-alpha - Python 3 Bitcoin SPV library on: December 17, 2014, 02:37:21 AM
That's very interesting... Will you keep it exclusive to Python 3? No 2.X port?
I'm asking, because most software out there is still Python 2.X only.

I'll try it out tomorrow. Smiley I have a 32-bit VM (Arch Linux server) which i can fool around with.

I personally won't be porting it to 2.x.  I really don't have an interest in maintaining that backwards compatability, tbh.  If someone wants to submit a patch (and possibly maintain a 2.x-focused branch), I'll likely merge it.
2  Bitcoin / Project Development / Re: [ANN] pyspv 0.0.1-alpha - Python 3 Bitcoin SPV library on: December 16, 2014, 05:16:53 AM
I can't do the same with the PrivateKey: passing both .secret_exponential() or .serialize() objects as PrivateKey secret doesn't return the expected values (a privkey' wif match). What the PrivateKey class is expecting as 'secret' ?  Huh

Code:
pyspv.keys.PrivateKey(secret_exp_as_long.to_bytes(32, "big"))

Right, the private key class takes an array of bytes (= the private key in big endian format).

Thanks for checking out pyspv, I haven't put much work into it since because its announcement went quite unnoticed Sad
3  Bitcoin / Project Development / Re: [ANN] ms-brainwallet.org - Multisignature P2SH in the browser on: December 16, 2014, 05:14:58 AM
Thanks. I look forward to the feedback.

Hey,

you have done something great! I will have a look at the code within the next 10-12 days and get back to you with some feedback!

cheers.

Small update - I've added a few new features.

  • Allow any m-of-n (not just m-of-3) transactions
  • Support for partially signing transactions
  • Support for adding signatures to raw transactions


With the above, ms-brainwallet should work well for doing things like escrow and without to share private keys or have all the private keys in one place.

Hope people find it useful!

4  Bitcoin / Project Development / Re: [ANN] ms-brainwallet.org - Multisignature P2SH in the browser on: September 08, 2014, 06:00:00 AM
Small update - I've added a few new features.

  • Allow any m-of-n (not just m-of-3) transactions
  • Support for partially signing transactions
  • Support for adding signatures to raw transactions


With the above, ms-brainwallet should work well for doing things like escrow and without to share private keys or have all the private keys in one place.

Hope people find it useful!
5  Bitcoin / Project Development / Re: [ANN] ms-brainwallet.org - Multisignature P2SH in the browser on: March 19, 2014, 12:15:32 PM
This is awesome!!

Are you still maintaining this? (i.e., should I be donating to you Wink )

Yes, although I haven't written new code for the site in a while, I still consider myself responsible for its operation.

If you want to contribute, write some code Smiley
6  Economy / Service Announcements / Re: [ANN] Addie - http://addie.cc - Easily share your cryptocurrency addresses on: March 18, 2014, 12:50:58 PM
I wouldn't trust this service (yet!).  How can we be guaranteed that you aren't giving people bad addresses?

My suggestion: allow the owner of the account to sign using their GPG key a message that says "1xxx... is my Bitcoin address."  Anyone can verify the address belongs to the user by checking their public GPG key from a gpg key server.

Also, consider implementing Stealth addresses to improve privacy in the Blockchain.
7  Bitcoin / Project Development / Re: [ANN] pyspv - Python 3 Bitcoin SPV client (ALPHA release) on: February 26, 2014, 10:51:06 AM
Reserved
8  Bitcoin / Project Development / [ANN] pyspv 0.0.1-alpha - Python 3 Bitcoin SPV library on: February 26, 2014, 10:49:14 AM
pyspv - An extensible Python 3 Bitcoin SPV library

WARNING: This is ALPHA software. USE AT YOUR OWN RISK.

I've been working on this project for the past month and I finally feel that it's time to tell the community about it and ask for some constructive feedback.  I'm also more than happy to accept code contributions Smiley

The goal of this project is to create a library that can be used with Bitcoin (and eventually altcoins) that makes it easy for you to develop applications, both client and server, without doing any of the tedious Blockchain/Network/Transaction programming.  Integrating Bitcoin into your application is now literally a two line change to your code.

Features:
  • SPV implementation, so relatively lightweight
  • Written in Python, so useful for both server and user applications
  • Multisignature support, can create, send to and spend multisignature payments
  • Stealth address support, can create, send to and spend stealth address payments
  • Tor/SOCKS support
  • Testnet support
  • Extensible payment monitor and transaction building system
  • Completely modular, so you can initiate multiple SPV instances in the same application (This would allow for multiple alt-coin wallets)

The source comes with a sample RPC wallet called simple-wallet.py, you can launch it simply:

Code:
$ python3 examples/simple-wallet.py --testnet -v

The README describes the full set of RPC commands available, but here is a small demonstration:

Code:
$ python3 examples/simple-wallet.py getnewstealthaddress
7orJaJ2A3iRh6NAwbCZt8GoKHWUzoiPdwwvsZPpoFX7mreLRAQYXzP1
...
$ python3 examples/simple-wallet.py sendtoaddress 7orJaJ2A3iRh6NAwbCZt8GoKHWUzoiPdwwvsZPpoFX7mreLRAQYXzP1 1.0
(The stealth address implementation was based on sx, so they should be fully compatible)

Code:
$ python3 examples/simple-wallet.py genmultisig 1 2 0378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c71
{"address": "2MvM4RveSBwk3jwZV2Pe6avBFCYxUKgnDKi", "nreq": 1,
"redemption_script": "51210368b036cc3a4cc6187cb8d51ab25c71e9e98cd830df7f322174a8524f96d772b3210378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c7152ae",
"pubkeys": ["0368b036cc3a4cc6187cb8d51ab25c71e9e98cd830df7f322174a8524f96d772b3", "0378d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c71"]}
...
$ python3 examples/simple-wallet.py sendtoaddress 2MvM4RveSBwk3jwZV2Pe6avBFCYxUKgnDKi 0.05
(simple-wallet will generate new keys if not enough are provided on the command-line)

So, anyways.  If you have time, try it out and let me know.  Also, let me know if you end up using it in a project, I'd love to link to it from here.

TODO

* Namecoin support (I actually have this mostly working, but I need to implement AuxPOW for the new blocks)
* Once Namecoin works, I should be able to finish my P2P alt-chain trading code and help automate trades (see https://en.bitcoin.it/wiki/Contracts#Example_5:_Trading_across_chains)
* BIP32 (HDW) and BIP38 (Encryption) support
* BIP70 (Payment protocol) support
* More altcoins? More payment monitors?
* CPU mining support (To aid in the creation of new alt-coins)
* Bug fixes

NOTE: Looks like there's a crash that happens between OpenSSL and Python when using 64-Bit Python build, so refrain from using 64-bit python for now.  I'm looking into it.

9  Bitcoin / Development & Technical Discussion / Re: Transaction malleability is actually a big problem? on: February 25, 2014, 10:47:21 AM
Well, I just find a way to save it.

Let's have a new SIGHASH type called SIGHASH_ANYUTXO. Signing with this tag means that the signer would allow the redemption of any UTXO of the same address. So the signer don't need to specify the hash of the UTXO. The signature is valid no matter how the txid is changed. As long as the signer is not reusing the address, that would be safe.

Any comment?

That's what I've been saying for ages... though it'll have to be implemented as a new CHECKSIG operator due to Satoshi screwing up upgrade possibilities in CHECKSIG.

I've had a few thoughts along this line, as well.. Perhaps instead of ANYUTXO, which is quite specific (don't hash the prevout field), why not build CHECKSIG2, which takes a flags word indicating each of the pieces of the transaction to sign (nLockTime, Outputs (Single, All, None), Inputs (With/Without prevouts, Anyonecanpay, sequence #s), etc.)?

I would actually consider writing the patch myself, if there was at all a decent chance of it being accepted into the reference client within the next several months.
10  Bitcoin / Development & Technical Discussion / Transaction malleability is actually a big problem? on: February 25, 2014, 06:09:24 AM
Forgive me if this has been discussed to death and back, but lately I've been working on some Contracts transactions.  The realization that malleability prevents some of these contracts from working (trustlessly and securely) is starting to sink in.  

Dependent transactions just can't be built until they're included in the blockchain...

Does tx malleability basically mean that a number of advanced contracts are essentially broken?

1. Providing a deposit - Tx2 can't depend on Tx1 txid not changing. Step 2 sends the hash of Tx1 to the "website" to sign a refund tx.
2. P2P alt-chain trading - Tx2 can't refund Tx1 until it's in the blockchain, but you shouldn't fund Tx1 until Tx2 is signed.
3. Rapidly adjusted micropayments - (Does this hurt bitcoinj's security too?) Can't create refund T2 based on hash of T1.

I'm not interested in MtGox and their usage of transaction hashes, as that's just something they can fix.  These advanced contracts, on the other hand, heavily depend on a transaction hash not changing.

11  Economy / Service Discussion / Re: Annihilation Market: Trustless, P2P, distributed, Zero Sum, No deposit, No fees. on: February 19, 2014, 08:59:40 AM
What happens if you hold 400$ worth of anti-credit and the price falls to 1$?  You would owe 400 bitcoins to close that anti-credit.

And on the flipside, I'm owed 400$ worth of bitcoins and I want to use my credit to purchase 400 bitcoins. Where do they come from?

And the problem exponentially increases as the price nears 0$.

BTW this feels like an options market, where obligations are paid with the equivalent USD amount in BTC.
12  Bitcoin / Project Development / Re: [ANN] bip32.org - JavaScript BIP32 deterministic wallet generator on: February 11, 2014, 02:15:19 PM
There isn't a spec for the alt coins as far as I'm aware. It'd be nice if there was.

TBH, I was hoping that my version bytes would become the standard. Hypothetically, if my implementation were actually used by alt-coiners then when drafting the spec it'd be more of an issue that the spec has to deal with (that people have already adopted a standard to use).  Unfortunately, there's just no BIP-style development for any of the other coins, so I was forced to improvise if I wanted to support altcoins.

I was indeed going with XXpv/XXub for the public/private keypair prefixes.  For testnet, I was a little less concerned about consistency but it seems you have gotten the general gist of things.

The code isn't set in stone. If you guys want the version bytes changed, let me know:)

I like the mainnet convention you're using. It's probably the most human-readable to be done in 4 characters. Would you consider changing the testnet prefix to XXtv, XXtb for private and public extended keys, respectively?
It would be nice to keep 't' at the beginning of the string to be consistent with Bitcoin testnet.  tpXX and tuXX ?

13  Bitcoin / Project Development / Re: [ANN] bip32.org - JavaScript BIP32 deterministic wallet generator on: February 11, 2014, 02:13:56 PM

How do I use it?

Simple. Type in a passphrase into the "Passphrase" box and tweak the value in "Keypair index".  The generated keys are shown at the bottom of the page, along with a Bitcoin address you can send coins to.  

In order to spend, copy the "Derived private key", change the button at the top of the page to "BIP32 Key" and paste in the key you just copied.  Now copy the "Key" in the Key Info section.  This is the Bitcoin private key, and it can be used to spend by using the transaction generator at http://brainwallet.org/

Where is the "Keypair index"? 

Ah, you're right.  I'll update the text.  The keypair index is only available if you pick a derivation method that includes "i".

Quote
You wrote: "...paste in the key you just copied."  Paste it where?  Most of the fields cannot be pasted into.

When you change the button at the top to BIP32 key, you can paste extended private keys into the "BIP32 Extended Key" field.

Quote
More advanced users can use the site to do the following things:

It seems that this is already for more advanced users.

Perhaps there's layers of advanced-ness Wink

Quote
I just want to enable my users to send and withdraw bitcoin.  I  Do I need to understand cryptography, Depth, Parent Fingerprint, Child Index, Chain Code, Derivation Path, Derived Private Key, Private Key (WIF), Derived Public Key, Public Key (Hex), XXpv/XXub, base58_decode, magic bytes, encode, DOGE, Ltpv, Ltub, dgpv, dgub, etc. in order to do so?

You don't really need to understand these things if you're just a user of wallet software.  If you're going to be writing wallet software, it helps to know what these things are.  Some of them are critical pieces of knowledge.
14  Bitcoin / Project Development / Re: [ANN] bip32.org - JavaScript BIP32 deterministic wallet generator on: February 09, 2014, 08:10:26 AM
There isn't a spec for the alt coins as far as I'm aware. It'd be nice if there was.

TBH, I was hoping that my version bytes would become the standard. Hypothetically, if my implementation were actually used by alt-coiners then when drafting the spec it'd be more of an issue that the spec has to deal with (that people have already adopted a standard to use).  Unfortunately, there's just no BIP-style development for any of the other coins, so I was forced to improvise if I wanted to support altcoins.

I was indeed going with XXpv/XXub for the public/private keypair prefixes.  For testnet, I was a little less concerned about consistency but it seems you have gotten the general gist of things.

The code isn't set in stone. If you guys want the version bytes changed, let me know:)
15  Bitcoin / Project Development / Re: Small bounty - android widget that displays current blockchain height on: January 19, 2014, 07:37:56 AM
Can you upload .apk ? Would love to test it.

Maybe rbonestell can put up an apk?
16  Bitcoin / Project Development / Re: Small bounty - android widget that displays current blockchain height on: January 19, 2014, 07:28:44 AM

Cool. I'm going to build it today and if it works I'll send you the bounty!

Awesome! Bounty paid: https://blockchain.info/tx/8f0eb76c038e1744d136f6f74ae23d9577bd1add0b759c61dc8ef221976c9f36
17  Bitcoin / Project Development / Re: Small bounty - android widget that displays current blockchain height on: January 19, 2014, 06:56:50 AM

Cool. I'm going to build it today and if it works I'll send you the bounty!
18  Bitcoin / Project Development / Re: Small bounty - android widget that displays current blockchain height on: January 17, 2014, 10:08:25 AM
I might give it a shot, Although, If I ask, Can the UI be simple?

I'd like it to actually look nice Smiley  The functionality is easy, and if that were all I'd want then I would just make it myself...Smiley
19  Bitcoin / Project Development / Re: Small bounty - android widget that displays current blockchain height on: January 17, 2014, 10:07:44 AM
I am the author of Litecoin Widget: bitcointalk.org/index.php?topic=158777.new;topicseen#new

I could probably adapt the code pretty quickly to get what you're looking for. Where's the best API to get the information? blockchain.info?

Seems like blockchain.info would be fine for this. 
20  Bitcoin / Project Development / Re: Small bounty - android widget that displays current blockchain height on: January 15, 2014, 01:36:13 PM

I'm offering a small bounty - I'm not sure how much yet, perhaps 0.5 - 1 BTC - for an Android app widget that displays the following info:

* The current blockchain height
* Minute count since last block
* Total outstanding BTC mined (current formula is easy: 210,000*50 + (nHeight-210,000)*25)

It should look pretty and be open source / public domain.  There are plenty of app widgets that show btc/usd price, but I'm more interested in seeing some real time stats about the network at a glance.

Is anyone interested in taking the offer?

answered in pm

I don't understand what you are asking in the PM. All the details are here in the above post:)
Pages: [1] 2 3 4 5 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!