php - BlockCypher signing Bitcoin transaction incorrect private key format -


i trying sign bitcoin transaction using blockcypher api failing because don't have private key in correct format.

according documentation:

"one of common errors in signing process data format mismatch. return , expect hex-encoded data, oftentimes, standard signing libraries require byte arrays. remember convert data, , send hex-encoded signatures blockcypher."

the php code should follows:

$privatekeys = array("2c2cc015519b79782bd9c5af66f568e808f573714f3c4dc6df7d79c183783cff"); $txskeleton = $txclient->sign($txskeleton, $privatekeys); 

but private key in format xprv9s21zrqh143k4nejhhrcspqds2g7jgnsvwmt2dkxquszjaqqjyd3wdudsxyqmfetduz2ss25um7nafnuwndga75bfqyxkwyz8zddacv6mel, ie not in hex.

i have tried converting hex, bit overoptimistic of me transaction signing fails.

i have thoroughly web-searched , have been unable figure out how convert xprv prefix key correct format required blockcypher api.

i paying customer of theirs , have e-mailed them no reply after 2 weeks of waiting.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -