<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>MultiChain Developer Q&amp;A - Recent questions tagged public-key</title>
<link>https://www.multichain.com/qa/tag/public-key</link>
<description>Powered by Question2Answer</description>
<item>
<title>Cant save public key string on a stream</title>
<link>https://www.multichain.com/qa/47627/cant-save-public-key-string-on-a-stream</link>
<description>&lt;p&gt;I'm trying to save a public key string to stream named 'publicKeys', but after the transaction receives any confirmations it turns to null.and txid changes&lt;/p&gt;&lt;p&gt;Inside the stream key it is stored as JSON before it turns &quot;json&quot;: null (items quantity remains the same)&amp;nbsp;-&amp;gt;&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p&gt;&quot;data&quot;: {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&quot;json&quot;: {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;publicKey&quot;: &quot;-----BEGIN PUBLIC KEY-----\\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLZSCeZqOuZ4cwLEaOgsZa5CJC\\ndjer1xpthZITnAJvXeu1SlFwev0/W182ZqOMHXqHxFYtw4OPGMSUebKoRMqDAa//\\nddm2SfzeEtP4bloYNhQT0KVGUJqgRclt5u0wPik/Sm1eia11ZPnF8j3geXIu42yd\\n1jBO0u2QOuZ2aj3d9QIDAQAB\\n-----END PUBLIC KEY-----\\n&quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://i.imgur.com/D5NwpXC.png&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://i.imgur.com/vr5p4gS.png&quot;&gt;&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/47627/cant-save-public-key-string-on-a-stream</guid>
<pubDate>Thu, 03 Feb 2022 09:16:44 +0000</pubDate>
</item>
<item>
<title>Chain connection to html wallet</title>
<link>https://www.multichain.com/qa/12776/chain-connection-to-html-wallet</link>
<description>I've had relative success setting up multichain on several nodes.. the cli working wonderfully. &amp;nbsp;Can someone point me in the right direction to building a online wallet similar to what sonm/waves which utilizes multichain... I'm guessing it's to do with rpc-json&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://market.sonm.com/&quot; rel=&quot;nofollow&quot;&gt;https://market.sonm.com/&lt;/a&gt; &amp;nbsp;&lt;a href=&quot;https://client.wavesplatform.com&quot; rel=&quot;nofollow&quot;&gt;https://client.wavesplatform.com&lt;/a&gt; (as examples)</description>
<guid isPermaLink="true">https://www.multichain.com/qa/12776/chain-connection-to-html-wallet</guid>
<pubDate>Tue, 05 Feb 2019 22:59:13 +0000</pubDate>
</item>
<item>
<title>I can't the this process How to create a MultiChain private key</title>
<link>https://www.multichain.com/qa/12241/cant-the-this-process-how-to-create-a-multichain-private-key</link>
<description>&lt;p&gt;&lt;a href=&quot;https://www.multichain.com/developers/address-key-format/&quot; rel=&quot;nofollow&quot;&gt;https://www.multichain.com/developers/address-key-format/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;----------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;&lt;strong&gt;3. Different from bitcoin:&lt;/strong&gt;&amp;nbsp;Add the first version byte from the&amp;nbsp;private-key-version&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;https://www.multichain.com/developers/blockchain-parameters/&quot;&gt;blockchain parameter&lt;/a&gt;&amp;nbsp;to the start of the private key. If it is more than one byte long, insert each subsequent byte of it after every&amp;nbsp;floor(33/len(private-key-version))&amp;nbsp;bytes of the key. For example with&amp;nbsp;8025B89E:&lt;br&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;80&lt;/span&gt;B69CA8FFAE36F11A&lt;span style=&quot;text-decoration: underline;&quot;&gt;25&lt;/span&gt;D445625E35BF6AC5&lt;span style=&quot;text-decoration: underline;&quot;&gt;B8&lt;/span&gt;7D6642DDBE470DD3&lt;span style=&quot;text-decoration: underline;&quot;&gt;9E&lt;/span&gt;E7934291B2000D7801&lt;/p&gt;&lt;p&gt;4. Calculate the SHA-256 of the extended private key:&lt;br&gt;742D5B3C59BB25F077AACB33D5770AAE22FD5639E8F9A7742BADEF84BCDFB4CC&lt;/p&gt;&lt;p&gt;5. Calculate the SHA-256 hash of the previous SHA-256 hash:&lt;br&gt;4FBB9708A0B5F2F5AC384CAC22C69CCE3F7DCE6166DE63B5AFE35E5D59767F18&lt;/p&gt;&lt;p&gt;----------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;first, I change the 3 value (&lt;span style=&quot;text-decoration: underline;&quot;&gt;80&lt;/span&gt;B69CA8FFAE36F11A&lt;span style=&quot;text-decoration: underline;&quot;&gt;25&lt;/span&gt;D445625E35BF6AC5&lt;span style=&quot;text-decoration: underline;&quot;&gt;B8&lt;/span&gt;7D6642DDBE470DD3&lt;span style=&quot;text-decoration: underline;&quot;&gt;9E&lt;/span&gt;E7934291B2000D7801) to binary.&lt;/p&gt;&lt;p&gt;the binary value is&amp;nbsp;10000000101101101001110010101000111111111010111000110110111100010001101000100101110101000100010101100010010111100011010110111111011010101100010110111000011111010110011001000010110111011011111001000111000011011101001110011110111001111001001101000010100100011011001000000000000011010111100000000001&lt;/p&gt;&lt;p&gt;second, I change the binary value to SHA256 hash&lt;/p&gt;&lt;p&gt;the result is&amp;nbsp;3E14E86F9E3895DD169ECA62444564D2E82CA25B7AEA0E0D650045967D49B9A6&lt;/p&gt;&lt;p&gt;I can't get the value&amp;nbsp;742D5B3C59BB25F077AACB33D5770AAE22FD5639E8F9A7742BADEF84BCDFB4CC&lt;/p&gt;&lt;p&gt;Can you tell me that how to I get the value&amp;nbsp;742D5B3C59BB25F077AACB33D5770AAE22FD5639E8F9A7742BADEF84BCDFB4CC. ?&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/12241/cant-the-this-process-how-to-create-a-multichain-private-key</guid>
<pubDate>Thu, 10 Jan 2019 06:37:20 +0000</pubDate>
</item>
<item>
<title>I want the process changed from private key to public key.</title>
<link>https://www.multichain.com/qa/11926/i-want-the-process-changed-from-private-key-to-public-key</link>
<description>&lt;p&gt;&lt;span style=&quot;color:rgb(33, 33, 33); font-family:apple sd gothic neo,arial,sans-serif; font-size:16px; white-space:pre-wrap&quot;&gt;I refer to &lt;a href=&quot;https://www.multichain.com/developers/address-key-format/&quot; rel=&quot;nofollow&quot;&gt;https://www.multichain.com/developers/address-key-format/&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:rgb(33, 33, 33); font-family:apple sd gothic neo,arial,sans-serif; font-size:16px; white-space:pre-wrap&quot;&gt;but i don't understand this step&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; margin-bottom: 4px;&quot;&gt;Start with a raw private&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(66, 139, 202); text-decoration-line: none;&quot;&gt;ECDSA&lt;/a&gt;&amp;nbsp;key:&lt;br style=&quot;box-sizing: border-box;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12.6px; padding: 0px; color: rgb(199, 37, 78); background: none; white-space: nowrap; border-radius: 4px;&quot;&gt;283D01856115B7970B622EAA6DAFF2B9ECE30F1B66927592F6EA70325929102B&lt;/code&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; margin-bottom: 4px;&quot;&gt;Take the corresponding public key generated with it, which can be in compressed or uncompressed format. The uncompressed version contains 65 bytes, consisting of&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12.6px; padding: 0px; color: rgb(199, 37, 78); background: none; white-space: nowrap; border-radius: 4px;&quot;&gt;0x04&lt;/code&gt;, 32 bytes for the X coordinate and 32 bytes for the Y coordinate. The compressed version contains 33 bytes, consisting of&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12.6px; padding: 0px; color: rgb(199, 37, 78); background: none; white-space: nowrap; border-radius: 4px;&quot;&gt;0x02&lt;/code&gt;&amp;nbsp;(Y is even) or&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12.6px; padding: 0px; color: rgb(199, 37, 78); background: none; white-space: nowrap; border-radius: 4px;&quot;&gt;0x03&lt;/code&gt;&amp;nbsp;(Y is odd), followed by 32 bytes for the X coordinate. Below is a compressed example:&lt;br style=&quot;box-sizing: border-box;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 12.6px; padding: 0px; color: rgb(199, 37, 78); background: none; white-space: nowrap; border-radius: 4px;&quot;&gt;0284E5235E299AF81EBE1653AC5F06B60E13A3A81F918018CBD10CE695095B3E24&lt;/code&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family:helvetica neue,helvetica,arial,sans-serif; font-size:14px&quot;&gt;and i have a three step but i get the different value&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Take the corresponding public key generated with it, which can be in compressed or uncompressed format. The uncompressed version contains 65 bytes, consisting of&amp;nbsp;0x04, 32 bytes for the X coordinate and 32 bytes for the Y coordinate. The compressed version contains 33 bytes, consisting of&amp;nbsp;0x02&amp;nbsp;(Y is even) or&amp;nbsp;0x03&amp;nbsp;(Y is odd), followed by 32 bytes for the X coordinate. Below is a compressed example:&lt;br&gt;0284E5235E299AF81EBE1653AC5F06B60E13A3A81F918018CBD10CE695095B3E24&lt;/li&gt;&lt;li&gt;Calculate the SHA-256 hash of the public key:&lt;br&gt;1C72D90868DBCD0252A54EFFB25FB535B4C89B67D57B75FD88465C5F173DCAB5&lt;/li&gt;&lt;/ol&gt;i get the&amp;nbsp;48ED57E20708C7392AE5DBA73776D0F91A42F87CD82FE4411ED4BA37260402ED not&amp;nbsp;1C72D90868DBCD0252A54EFFB25FB535B4C89B67D57B75FD88465C5F173DCAB5&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11926/i-want-the-process-changed-from-private-key-to-public-key</guid>
<pubDate>Fri, 14 Dec 2018 06:52:39 +0000</pubDate>
</item>
<item>
<title>How are public keys stored in a wallet?</title>
<link>https://www.multichain.com/qa/11870/how-are-public-keys-stored-in-a-wallet</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
I have a multiple questions about how MC stores addresses in the wallet:&lt;br /&gt;
&lt;br /&gt;
1. Are public address are encrypted before being save in a wallet? or does anyone with physical access to the node can view the addresses.&lt;br /&gt;
&lt;br /&gt;
2. If the wallet folder is cleared inside the node, would the node's wallet be emptied and would continue to work? or would it crash and stop working? because in other blockchain, you can just clear your wallet if necessary by just deleting the keystores.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance, and keep up the good work!</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11870/how-are-public-keys-stored-in-a-wallet</guid>
<pubDate>Wed, 12 Dec 2018 07:54:37 +0000</pubDate>
</item>
<item>
<title>encryption using multichain public key</title>
<link>https://www.multichain.com/qa/11293/encryption-using-multichain-public-key</link>
<description>I want to encrypt files (.pdf, .jpeg, .txt etc) using my multichain wattet address public key. &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
While retrieving those files (which are encrypted), I want to decrypt using my multichain wallet address private key.&lt;br /&gt;
&lt;br /&gt;
HOW CAN I DO It??</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11293/encryption-using-multichain-public-key</guid>
<pubDate>Thu, 11 Oct 2018 10:54:41 +0000</pubDate>
</item>
<item>
<title>Can you grab the wallet address of the second server without first having to connect to a chain?</title>
<link>https://www.multichain.com/qa/11180/wallet-address-second-server-without-having-connect-chain</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;In the 'Getting Started' guide,&amp;nbsp;&lt;strong&gt;2. Connecting to a blockchain&lt;/strong&gt;&amp;nbsp;states that after the second server runs&amp;nbsp;&lt;span style=&quot;color:rgb(199, 37, 78); font-family:menlo,monaco,consolas,courier new,monospace; font-size:12.600000381469727px&quot;&gt;multichaind&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:rgb(199, 37, 78); font-family:menlo,monaco,consolas,courier new,monospace; font-size:12.600000381469727px&quot;&gt;chain1@[ip-address]:[port]&lt;/span&gt;, you'll be shown a message containing an address in the node's wallet.&amp;nbsp;&lt;/p&gt;&lt;p&gt;1. Is there anywhere else we can get the node's wallet address, without having to try to connect to a chain? The api commands I see all require something like &lt;span style=&quot;color:rgb(199, 37, 78); font-family:menlo,monaco,consolas,courier new,monospace; font-size:12.600000381469727px&quot;&gt;multichain-cli [chain name] getaddresses&lt;/span&gt;&lt;/p&gt;&lt;p&gt;2. Out of curiosity, is the node's wallet address the server's public key?&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you!&lt;/p&gt;</description>
<guid isPermaLink="true">https://www.multichain.com/qa/11180/wallet-address-second-server-without-having-connect-chain</guid>
<pubDate>Mon, 24 Sep 2018 20:41:46 +0000</pubDate>
</item>
<item>
<title>Is it possible to extract the ECDSA public key from Multichain's public key?</title>
<link>https://www.multichain.com/qa/10616/possible-extract-ecdsa-public-from-multichains-public-key</link>
<description>The documentation at &lt;a href=&quot;https://www.multichain.com/developers/address-key-format/&quot; rel=&quot;nofollow&quot;&gt;https://www.multichain.com/developers/address-key-format/&lt;/a&gt; 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?</description>
<guid isPermaLink="true">https://www.multichain.com/qa/10616/possible-extract-ecdsa-public-from-multichains-public-key</guid>
<pubDate>Thu, 09 Aug 2018 12:27:17 +0000</pubDate>
</item>
<item>
<title>How to derive public key of wallet address?</title>
<link>https://www.multichain.com/qa/9950/how-to-derive-public-key-of-wallet-address</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
How can I get the public key for a wallet address? The purpose is I want to encrypt something using the recipient's public key which he can presumably decrypt since he has his private key.&lt;br /&gt;
&lt;br /&gt;
I can see that getaddresses api call with verbose=true shows the pubkey for each address, but this is only for addresses stored in the current node's wallet. What if the address is from another node?&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
<guid isPermaLink="true">https://www.multichain.com/qa/9950/how-to-derive-public-key-of-wallet-address</guid>
<pubDate>Thu, 14 Jun 2018 12:42:13 +0000</pubDate>
</item>
</channel>
</rss>