Post
Topic
Board Bitcoin Technical Support
Merits 3 from 3 users
Re: Get private_key.pem from WIF format
by
BrewMaster
on 09/03/2020, 04:53:24 UTC
⭐ Merited by Heisenberg_Hunter (1) ,ETFbitcoin (1) ,barno (1)
Amazing dex1, it works!
Can you explain
Code:
PRE_STRING=302e0201010420
secp256k1_ID=a00706052b8104000a
I searched more details but I don't find good resources

it is all the "stuff" you want to give OpenSSL in one place encoded using ASN.1 DER encoding.
Code:
302e02010104202d7238106df87d7b70f9d7cc4ff833ff9fad86aa5e50f8cf42689c238d70f723a00706052b8104000a
which is:
Code:
30 : sequence tag
2e : length = 46
02 : int tag
01 : length = 1
01 : int value = 1
04 : octet string tag
20 : length = 32
2d7238106df87d7b70f9d7cc4ff833ff9fad86aa5e50f8cf42689c238d70f723 : the string (key hex)
a0 : context specific tag
07 : length = 7
06 : object identifier tag
05 : length = 5
2b8104000a : sekp256k1 identifier