Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
Welcome to the Developer Q&A for the
MultiChain
blockchain platform.
Please feel free to ask questions about the platform to receive answers from the MultiChain developers or other members of the community.
Related questions
the asymmetric cryptography algorithm used
How to create a MultiChain private key?
Is there any command to convert file data into hex format??
How to convert GnuPG Key to MultiChain Priv & Pub Key
what method we need to call from multichain java api to convert json object to hex format string
4,156
questions
4,369
answers
5,718
comments
Most popular tags
multichain
streams
assets
stream
transactions
json-rpc
blockchain
wallet
permissions
error
address
raw-transactions
asset
mining
node
api
issue
multichain-explorer
nodes
connect
multichaind
multisig
transaction
smart-filters
metadata
private-key
atomic-exchange
multichain-cli
multichain-web-demo
data
connection
performance
blocks
demo
web
json
database
storage
native-currency
bitcoin
private-blockchain
network
fee
smart-contracts
wallets
signrawtransaction
off-chain
exchange
multiple-nodes
getnewaddress
How to convert multichain private key to ECDSA pem format?
+1
vote
Is there a way to take a multichain private key (from the output of dumpprivkey) and convert it into an EDCSA pem format? The intent is to use the private key for x509 certificate signing
multichain
cryptography
asked
Jul 5, 2018
by
anonymous
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
0
votes
I'm afraid we don't have an easy answer for you, but if you Google how to convert a bitcoin private key to PEM format you'll find quite a lot of discussion and suggestions. That will work the same for a MultiChain private key, with the exception of possibly different version bytes in the base58 representation, described here:
https://www.multichain.com/developers/address-key-format/
answered
Jul 8, 2018
by
MultiChain
Thank you for your response. I guess I will have to do further research on the topic. However, would you be able to confirm if what I plan to do is even possible? Reading the private key description, it seems there are some irreversible steps taken when converting a raw EDCSA private key to a multichain private key, such as the double SHA-256 hashing. I imagine that in order to generate a pem file I would need to be able to get the raw EDCSA private key from the results of `dumpprivkey`, would this be possible?
The hashing is only applied to build the checksum part which is added to the end of the MultiChain private key. The ECDSA private key itself is still preserved in full within the MultiChain private key.
Please
log in
or
register
to add a comment.
...