Search content
Sort by

Showing 20 of 62 results by rabit
Post
Topic
Board Hardware wallets
Re: [ESHOP launched] Trezor: Bitcoin hardware wallet
by
rabit
on 21/05/2015, 09:03:06 UTC
Thanks, i guess i will finally update my firmware as i am still on the 1.2.1 version.

Also mytrezor started to work again in Firefox after i deactivated and reactivated the plugin 2-3 times, no idea why it works now but at least it works Smiley
It still says in the log that it failed to load "Chrome Extension transport" but this time it loaded the plugin transport after the failed loading of the "Chrome Extension transport".

Huh Trezor firmware is now at 1.3.3.

Have you ever done a "sudo apt-get update" followed by a "sudo apt-get upgrade" on your Linux machine?  

... and while you are at it do "sudo apt-get dist-upgrade"... nothing really related to Trezor, but you seem to be the type of guy that doesn't update his devices very often...



Lol, dont worry, i update my machines frequently, i just dont wanto to update something frequently which holds a significant amount of my wealth as new code can always introduce new problems and i did not noticed any huge security patches in the Trezor firmware updates.
Post
Topic
Board Hardware wallets
Re: [ESHOP launched] Trezor: Bitcoin hardware wallet
by
rabit
on 21/05/2015, 08:36:56 UTC
Thanks, i guess i will finally update my firmware as i am still on the 1.2.1 version.

Also mytrezor started to work again in Firefox after i deactivated and reactivated the plugin 2-3 times, no idea why it works now but at least it works Smiley
It still says in the log that it failed to load "Chrome Extension transport" but this time it loaded the plugin transport after the failed loading of the "Chrome Extension transport".
Post
Topic
Board Hardware wallets
Re: [ESHOP launched] Trezor: Bitcoin hardware wallet
by
rabit
on 21/05/2015, 07:32:47 UTC
I just noticed that mytrezor.com stopped working for me (Firefox on Lubuntu 14.04) as i get the message "Transport loading failed".
The log says "Failed to load Chrome Extension transport", does this mean that i cant use mytrezor with Firefox anymore?

Also i never updated my firmeware as i was afraid to loose my BTC because of some error, was there any reported problem caused by updating the firmeware in Trezors lifetime?
Post
Topic
Board Bitcoin Technical Support
Re: How can I automatically add all Bitcoin addresses ever used to a MySQL database?
by
rabit
on 13/12/2013, 16:44:28 UTC
I wrote some time ago a bash script which analyzes all transactions in a block. You could just go through all blocks with
bitcoind getblockhash and start the script with the blockhash as a parameter (you would need to add some stuff to the script like the SQL stuff but maybe its anyway helpful).
Here is the relevant part of the bash script:

#!/bin/bash
#Search for transactions in block
#INPUT:Blockhash

txlist=$(bitcoind getblock $1)
txlist="${txlist%]*}"
txlist="${txlist#*[}"
txlist2=""
while [ "$txlist" != "$txlist2" ]; do
   txlist2=$txlist
   tx="${txlist%%,*}"
   tx="${tx#*'"'}"
   tx="${tx%'"'*}"
   txlist="${txlist#*,}"
   test=$(bitcoind gettransaction $tx 2> /dev/null)
   if [ "$test" != "" ]; then
      #Here you need to add code to get the relevant data from the transaction like output addresses
                #and add it to the SQL DB
   fi
done


EDIT: I just realized that gettransaction only works with transaction which you made yourself so for analyzing all transactions you would need to use something like
a=$(bitcoind getrawtransaction $tx)
b=$(bitcoind decoderawtransaction $a)
Post
Topic
Board Bitcoin Discussion
Topic OP
Bitcoins mentioned on the Simpsons
by
rabit
on 13/12/2013, 16:09:32 UTC
On the last episode at ~5:30:

Lisa Simpson: Krusty are you broke?
Krusty the clown: Yeah all it takes is bad luck at the ponys, worst luck in the Bitcoin market...


Lol is this the proof that Bitcoin is already mainstream Cheesy
Post
Topic
Board Altcoin Discussion
Re: [New Bounty] 6BTC for PrimeCoin CUDA miner!
by
rabit
on 17/07/2013, 01:33:04 UTC
-What purpose the sieve serves

In mathematics, the sieve of Eratosthenes, one of a number of prime number sieves, is a simple, ancient algorithm for finding all prime numbers up to any given limit. It does so by iteratively marking as composite (i.e. not prime) the multiples of each prime, starting with the multiples of 2.

The multiples of a given prime are generated starting from that prime, as a sequence of numbers with the same difference, equal to that prime, between consecutive numbers. This is the sieve's key distinction from using trial division to sequentially test each candidate number for divisibility by each prime.

The sieve of Eratosthenes is one of the most efficient ways to find all of the smaller primes (below 10 million or so)

awesome bounty btw i hope someone gets it

Yeah, during my short digging I did find the sieve of Eratosthenes, though your explanation was better than what I found. My main question with the sieve is, since we are finding very huge primes, what purpose this 'table of primes' serves the finding of large prime chains?
the sieve works by getting increasing more likely 'primes' by altering a value to be more likely prime, and the table is used as seeds for that 'winnowing' process.
You want to have a big table because the more you have, the more likely one of them will work for a given block.

Could you explain this a little bit deeper?
So the sieve produces the set P:={p prime | p <= sieve size} and i have the block hash h. Now i need to find an integer k such that h*k is the origin of a chain of length difficulty. So how is P explicitly used to find a candidate for such an integer k?
Post
Topic
Board Altcoin Discussion
Re: [XPM] Primecoin Record Books
by
rabit
on 13/07/2013, 19:13:28 UTC

according to the trolls in the cryptsy chatbox, primechains are only pseudo mathematics and have no use in the real world, so don't get your hopes up i guess. me i think that prime numbers serve some type of purpose. what it is? i have no idea
Well you'd expect that coming from people who support other coins, as always.. when they don't understand or aren't invested in something they bash and troll it.
Anyways they are usefull for some mathematicians, I belive only a few use such huge primes, that's what I've found out a while ago..


The CC chains have even "real" world use as you can create "Auto-Recoverable and Auto-Certifiable Cryptosystems" with them. This are public key infrastructures with the capability of recovering the private key by authorities cooperating with the certification authority. In other words crypto-system which LE agencies are able to decrypt but not some other attacker. I´m sure every state would love if people would start using such systems Cheesy
From a more mathematical stand point this data has also value as there are still many open questions in this area like e.g. if there are infinitely many chains of a given length and the distribution of such chains in the set of all primes. This data could be used for verifying conjectures in this area.

By the way Sunny, how do you have choosen the difficulty algorithm, did you used the Hardy–Littlewood conjecture?
Post
Topic
Board Altcoin Discussion
Re: [XPM] Primecoin Record Books
by
rabit
on 12/07/2013, 09:56:49 UTC
The 9 numbers 1574643694870716234768119109262250640648052155467238286652911336545168633619161 6303820985251295842020684640523576306336183730859560 * 2^n + 1, 0 <= n <= 8 are all actually prime (according to GMP-ECPP).

Now onto the ones from block 5355...

I verified both chains using ECPP in MAGMA.
Post
Topic
Board Trading Discussion
Re: [Idea]Secure escrow service
by
rabit
on 29/06/2013, 11:12:24 UTC

OK thanks, i think mine is still a little bit different.
The scheme from casascius is a 2-of-3 scheme, mine is a little bit different as the escrow needs more than one data point to be able to claim the funds and here the escrow also doesnt have to generate any data.
Post
Topic
Board Trading Discussion
Re: [Idea]Secure escrow service
by
rabit
on 29/06/2013, 10:49:56 UTC

I guess this is the same scheme? Cheesy
Is there a thread about it here, i couldnt find one...
Post
Topic
Board Trading Discussion
Topic OP
[Idea]Secure escrow service
by
rabit
on 29/06/2013, 10:26:28 UTC
Situation: Person 1 and person 2 want to make a trade including a BTC transaction from person 1 to person 2 but they dont trust each other so they choose some person 3 to act as an escrow. Unfortunately they also dont trust person 3  to not steal the BTC. The following scheme based on Shamir´s Secret Sharing makes it impossible for the escrow to steal the BTC and also has the advantage that there is minimal work for the escrow if there is no dispute.

Scheme: Let G be the generator for the ECDSA group used in Bitcoin.
Person 1 and 2 create two public/private key pairs (ni,ni*G) and (ai,ai*G) (i=1,2) and then they make the public keys ni*G and ai*G public.
Then person 1 and person 2 sends xi=ai+ni to the escrow in private and yi=2*ai+ni to the other person also in private.

The funds are send to the address (n1+n2)*G.

Now if person 1 is happy with the trade, he sends n1 to person 2 and person 2 can claim the BTC by using the private key: n1+n2 .
If there is a dispute, the escrow can decide who gets the BTC. If the escrow decides that person 1 can have the funds, then he sends x2 to person 1 and person 1 can claim the BTC by using the private key n1 + (2*x2-y2). Similar if the escrow decides that person 2 should have the BTC, then he sends x1 to person 2 and person 2 can claim the BTC with the private key (2*x1-y1)+n2 .

Before the BTC are send to the address (n1+n2)*G, everyone should verify the data which he got by using the following equations ( ai*G and ni*G are both public so this can be used for verification):
xi*G=ai*G + ni*G
yi*G = 2*ai*G + ni*G

Post
Topic
Board Project Development
Re: [In-progress] P2P Crypt Logo
by
rabit
on 24/01/2013, 16:53:16 UTC
Are you aware of Jabber/XMPP ?

Its mainly an open source messaging protocol (but i think there are also extensions for video/audio too) like ICQ but its decentralized as anybody can run a server (eg some privacy/IT organizations run a server) and probably every software compatible with XMPP supports PGP and/or OTR encryption.
Post
Topic
Board Bitcoin Technical Support
Re: How to figure out from which addresses i received a transaction?
by
rabit
on 05/01/2013, 11:12:51 UTC
Ok, let me say this plain and clear, for the thousandth time:

There is no FROM address in the bitcoin system.  You are asking a question that is without meaning in the system.  The software you are writing will not do what you think it does, even if it appears to work more-or-less correctly most of the time.

Can you give me an example when this wont work if the transaction is sent from a client like bitcoin-qt?
Post
Topic
Board Bitcoin Technical Support
Re: How to figure out from which addresses i received a transaction?
by
rabit
on 05/01/2013, 00:01:51 UTC
Just if someone has the same problem in the future, this script should find one of the addresses:

#!/bin/bash

rawtx=$(bitcoind getrawtransaction $1 1)

vin="${rawtx#*'"'vin'"' : [}"
vin="${vin%'"'vout'"' : [*}"


rtx="${vin#*txid'"' : '"'}"
rtx="${rtx%%'"'*}"
ro="${vin#*vout'"' : }"
ro="${ro%%,*}"
rtx=$(bitcoind getrawtransaction $rtx 1)
rvout="${rtx#*vout'"' : [}"
rvout="${rvout%'"'blockhash*}"
rvout="${rvout#*value}"
n="${rvout#*'"'n'"' : }"
n="${n%%,*}"
while [ "$n" != "$ro" ]; do
   rvout="${rvout#*value}"
   n="${rvout#*'"'n'"' : }"
   n="${n%%,*}"
done
rad="${rvout#*addresses'"' : [}"
rad="${rad#*'"'}"
rad="${rad%%'"'*}"
echo $rad
Post
Topic
Board Bitcoin Technical Support
Re: How to figure out from which addresses i received a transaction?
by
rabit
on 04/01/2013, 22:58:32 UTC
Thanks, so there is no easier way than the one sketched in the first post (analyzing the txids of vin and trying to determine which outputs of the txids where used for the transaction)?

Edit: I just found out that the vout parameter in the vin txids is a reference to which output of the txid was used, so the above way works easy enough for me...
Post
Topic
Board Bitcoin Technical Support
Re: How to figure out from which addresses i received a transaction?
by
rabit
on 04/01/2013, 22:42:43 UTC
Are you exploring the concept out of curiosity, or do you actually have a need to identify a list of addresses associated with the previous outputs that were used as inputs in any given transaction?

I need it for a service i´m programming atm.
Post
Topic
Board Bitcoin Technical Support
Topic OP
How to figure out from which addresses i received a transaction?
by
rabit
on 04/01/2013, 21:52:36 UTC
I try to figure out the easiest way for identifyiung the addresses from which a transaction was sent with bitcoind and bash.

The only way i can think off is looking at getrawtransaction of the transaction and then analyzing the txids of vin. This solution is a little bit complicated and i want to know if there is a better way.
Post
Topic
Board Bitcoin Technical Support
Re: Running a Node off a VPS
by
rabit
on 18/12/2012, 19:55:23 UTC
You can start it with bitcoind --daemon .

To check if you have connections run bitcoind getconnectioncount .

If you have limited memory on your VPS, you could also add a cron job to restart bitcoind every time it crashes (this happens frequently on my VPS). I use this script for restarting (bitcoin runs through user bitcoin so you need to change the ps -u bitcoin...):

#!/bin/bash  

test=`ps -u bitcoin | grep -e bitcoind`

if [ "$test" = "" ];
then
~/bitcoin-0.7.1-linux/bin/64/bitcoind -daemon
fi
Post
Topic
Board Bitcoin Discussion
Re: Please test (if you dare): next-test 2012-11-25
by
rabit
on 28/11/2012, 21:14:08 UTC
At the beginning bitcoind worked for me without any issuses but now i get the following error at start:

Error: Failed to connect best block

debug.log:
...
ERROR: CheckProofOfWork() : nBits below minimum work
ERROR: CBlock::ReadFromDisk() : errors in block header
ERROR: SetBestBlock() : ReadFromDisk for connect failed
Loading addresses...
...
Done loading
: Failed to connect best block
...
socket send error 9
...
Error; StartDumpAddressTimer() failed
...
Post
Topic
Board Bitcoin Discussion
Re: Please test (if you dare): next-test 2012-11-25
by
rabit
on 27/11/2012, 22:41:15 UTC
Make on Linux (Xubuntu) does not work without libminiupnpc8-dev installed.
You mean with USE_UPNP=- (don't compile support)?

Its set to USE_UPNP=- in line 41 of makefile.unix .
No, it's set by default to USE_UPNP=0 (compile support, but disable by default) on line 5, and changed from (null) to - on line 41. So eg, USE_UPNP= will work also (but there is no way to support this syntax with -Qt)

The problem is that the README states that libminiupnpc is optional but make -f makefile.unix doesnt work without it, so maybe the default setting should be USE_UPNP=-. But probably its not that important.