Is it possible to extract the ECDSA public key from Multichain's public key?

+2 votes
The documentation at only describes how the private key is derived from ECDSA private key. But we have a scenario where we would like to use the ECDSA public key of the user (for either signing or encryption). Assuming we are able to retrieve the public key, is it possible to derive the ECDSA public key?
asked Aug 9, 2018 by anonymous

2 Answers

0 votes
A MultiChain-formatted private key is just a way of representing the ECDSA private key in text form, and it's derived from it in any cryptographic sense. So I'm not sure what you mean by deriving an ECDSA public key from a MultiChain public key.

But perhaps you mean from a MultiChain address? If so I'm afraid the public key cannot be derived from this, since the address is the text form of a (one-way) hash of the public key.
answered Aug 9, 2018 by MultiChain
+1 vote
If the user/address has only incoming transactions there is no information of his public key on the chain. However if there is an outgoing transaction from that address you may find it in the vin scriptSig. See here for an example how we collect public keys from transaction inputs:
answered Aug 10, 2018 by titusz