piston-cli icon indicating copy to clipboard operation
piston-cli copied to clipboard

STM prefix instead of GLS, when import key from GOLOS

Open dacom-dark-sun opened this issue 8 years ago • 1 comments
trafficstars

Problem with keys prefix. After import private keys from Golos, they have a prefix "STM" instead of "GLS". Of course, any broadcasting does not works for Golos.

grapheneapi.graphenewsrpc.RPCError: 10 assert_exception: Assert Exception base58str.substr( 0, prefix_len ) == prefix: {"base58str":"STM77wx6Remi2hiG8zVaDAfJJGcWWkXCQjooYeqUXNqMcy3ceEWL5"} th_a types.cpp:27 public_key_type

dacom-dark-sun avatar Feb 16 '17 13:02 dacom-dark-sun

you need to switch the node to golos and reimport the private key:

piston set node wss://ws.golos.io
piston addkey

Then it will have the right prefix. The prefix is defined from the connection made to the api node.

xeroc avatar Feb 21 '17 12:02 xeroc