Bitcoin Forum
May 26, 2024, 11:24:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Coinomi Wallet Decrypt (bitcoinj)  (Read 79 times)
ctsccuo5we6h (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 1


View Profile
January 27, 2024, 04:51:36 AM
Merited by ABCbits (1)
 #1

Hello, I am trying to decrypt a Coinomi wallet. I found out that it uses bitcoinj library + AES-256-CBC with scrypt key + protobuf. When Protos.Wallet.parseFrom(new FileInputStream(walletFile)) I get the error protobuf - 'Protocol message end-group tag did not match expected tag'. What can be the problem?
I am new to using bitcoinj, I apologize for any mistakes
I need to get the data in the following form(i get this from btcrecover)

Code:
version: 20
seed {
  type: DETERMINISTIC_MNEMONIC
  encrypted_data {
    initialisation_vector: "data"
    encrypted_private_key: "data"
  }
}
master_key {
  type: DETERMINISTIC_KEY
  encrypted_data {
    initialisation_vector: "data"
    encrypted_private_key: "data"
  }
  public_key: "data"
  deterministic_key {
    chain_code: "data"
  }
}
encryption_type: ENCRYPTED_SCRYPT_AES
encryption_parameters {
  salt: "data"
  n: 16384
  r: 8
  p: 1
}
pockets {
  network_identifier: "bitcoin.main"
  id: "data"
}

I want to get it with this.

Code:
Protos.Wallet.parseFrom(new FileInputStream(walletFile))
ABCbits
Legendary
*
Offline Offline

Activity: 2884
Merit: 7522


Crypto Swap Exchange


View Profile
January 27, 2024, 11:11:39 AM
 #2

Bitcoinj was never popular in here and there's not much discussion about Coinomi since it's become soruce. So you might also want to ask question on Bitcoinj issue page[1] or one of Coinomi social media[2].

Hello, I am trying to decrypt a Coinomi wallet. I found out that it uses bitcoinj library + AES-256-CBC with scrypt key + protobuf. When Protos.Wallet.parseFrom(new FileInputStream(walletFile)) I get the error protobuf - 'Protocol message end-group tag did not match expected tag'. What can be the problem?

From quick search based on error message, the common problem is the file (in this case coinomi wallet file) is corrupted or the library used to read the file is bugged[3].

[1] https://github.com/bitcoinj/bitcoinj/issues
[2] https://www.coinomi.com/en/, scroll down to bottom of page.
[3] https://stackoverflow.com/a/22108170

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
ctsccuo5we6h (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 1


View Profile
January 28, 2024, 01:21:17 PM
 #3

Thank you
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!