Skip to main content
17 events
when toggle format what by license comment
Feb 4, 2019 at 14:17 comment added Philipp Ponomarev Angelo, your port is the correct answer in case of converting memo string to public_key inside the smart contract. You can post it is as an answer =)
S Jul 5, 2018 at 9:12 history bounty ended CommunityBot
S Jul 5, 2018 at 9:12 history notice removed CommunityBot
Jun 29, 2018 at 21:31 vote accept Angelo Laub
Jun 29, 2018 at 21:31 history edited Angelo Laub CC BY-SA 4.0
added 342 characters in body
Jun 29, 2018 at 10:00 answer added Jimmy Guo timeline score: 3
Jun 28, 2018 at 16:57 history edited Angelo Laub CC BY-SA 4.0
added 400 characters in body
Jun 28, 2018 at 16:31 answer added smarteasy timeline score: 7
Jun 28, 2018 at 14:29 comment added Angelo Laub The github.com/EOSIO/fc that is included in EOS for example. But it is huge and depends on OpenSSL.
Jun 28, 2018 at 6:40 comment added Ami Heines Can you please give a link to a library that does this outside of the contract? I found this explanation as a reference, bitcointalk.org/index.php?topic=205490.0 should be similar in EOS with minor modifications for header bytes. split the public key (less the leading 04) in half and look at the last digit of the second half. If that digit is even, prepend the first half with 02; if odd, prepend the first half with 03. Push the result through the same hash and base58-encoding process to get the compressed address
Jun 28, 2018 at 5:51 comment added Angelo Laub No. The other way around. I'm looking to convert a public key string, which is 53 characters long, into a struct public_key from "types.h".
Jun 27, 2018 at 21:36 comment added John Haager Are you then looking for a way to convert the compressed representation into its uncompressed representation?
Jun 27, 2018 at 19:07 comment added Angelo Laub I wish it were that simple. But a public key string has 53 characters, while the native, compressed, data structure has 33 characters (plus null terminator).
Jun 27, 2018 at 17:31 comment added John Haager If the public key is coming in as a string, can't string.c_str() be used to convert it?
S Jun 27, 2018 at 8:10 history bounty started Angelo Laub
S Jun 27, 2018 at 8:10 history notice added Angelo Laub Draw attention
Jun 25, 2018 at 8:02 history asked Angelo Laub CC BY-SA 4.0