Re: Recover ECKey from Hex

2017-08-10 Thread vbarna
I think that I have answered my own question. I guess that it can be done like this: ECKey ecKeyFromHex = aWalletKitApp.wallet().findKeyFromPubKey(Utils.HEX.decode(hexPubKey)); However, I'm still wondering if the reason why there is not a method to do this directly (which to me, getting an EC

Re: Recover ECKey from Hex

2017-08-10 Thread vbarna
Actually, to compliment my last answer, I would like to add the way to recover they ECKey if it is a public only key: ECKey.fromPublicOnly(Utils.HEX.decode(hexPubKey) On Thursday, August 10, 2017 at 12:52:00 PM UTC+2, vba...@gmail.com wrote: > > I think that I have answered my own question. I

Re: BIP34, BIP65, BIP66 enforcement

2017-08-10 Thread Andreas Schildbach
On 08/03/2017 12:48 PM, 'Jean-Pierre Rupp' via bitcoinj wrote: > Perhaps I am missing some code, but I can't seem to find any code that > enforces the BIP34, BIP65 and BIP66 block versions at specific blockchain > heights. Am I right? Will bitcoinJ allow older block version numbers to be > used

Re: bitcoinj for BCH

2017-08-10 Thread Andreas Schildbach
On 08/08/2017 09:25 PM, Wei Hsu wrote: > Is anyone working on a bitcoin cash splitter, or a BCH version of bitcoinj? > What would a project like that entail, if I wanted to look into it? There is an open PR for signing BCH transactions: https://github.com/bitcoinj/bitcoinj/pull/1422 -- You rec

Re: Is it possible to create wallet without DAT file

2017-08-10 Thread Andreas Schildbach
On 08/07/2017 07:13 AM, Ajit Soman wrote: > I want to create wallet without saving it as .dat file. > You can use new Wallet(params) There is no need to save it to disk if you don't want to. -- You received this message because you are subscribed to the Google Groups "bitcoinj" group. To un

Re: Recover ECKey from Hex

2017-08-10 Thread Andreas Schildbach
There is ECKey.fromPublicOnly() and ECKey.fromPrivate(). Yes, you need to convert your hex to a byte array yourself, or by using Utils.HEX like you did. On 08/10/2017 01:27 PM, vba...@gmail.com wrote: > Actually, to compliment my last answer, I would like to add the way to > recover they ECKey if

Re: Why block header starts at block 421344

2017-08-10 Thread Andreas Schildbach
More specifically, there is a piece of code that fetches the last checkpoint from CheckpointManager and feeds it into the block store. Just remove that line. On 08/07/2017 11:06 PM, 'Jean-Pierre Rupp' via bitcoinj wrote: > Hello, > > Delete the checkpoints if you wish to sync from Genesis. > >

Re: How to get the PK's from a backup

2017-08-10 Thread Andreas Schildbach
On 08/04/2017 05:33 AM, Dennis Fantoni wrote: > > > On Thursday, 3 August 2017 04:10:13 UTC+2, Dennis Fantoni wrote: > > i tried to use wallet-tool dump --dumpprivkeys --password=spendingpin > > but the resulting text file does not seem to have anything that i > could identify as s

migrating bitcoinj to segwit

2017-08-10 Thread fdr636
Hello, I've been working on modifying bitcoinj to use segwit, I've seen that other people are also working on bitcoinj+SW, and would like to share where I am and ask a few questions: The changes so far are: - modify the protobuf definitions and serialization code to include witness data