Bitcoin Forum
November 06, 2024, 11:30:37 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: X.509 certificate w. secp256k1?  (Read 1250 times)
Peter R (OP)
Legendary
*
Offline Offline

Activity: 1162
Merit: 1007



View Profile
June 21, 2014, 12:15:55 AM
 #1

Quick question that Google doesn't seem to know the answer to: do X.509 certificates (the kind used in the new bitcoin payment protocol) support signatures using bitcoin's secp256k1 elliptic curve?  It seems that RSA is the most commonly used.  

Run Bitcoin Unlimited (www.bitcoinunlimited.info)
12648430
Full Member
***
Offline Offline

Activity: 144
Merit: 100


View Profile
June 21, 2014, 01:01:05 AM
 #2

Yes, you can do it with openssl. Command line example:

Code:
openssl ecparam -out ec_key.pem -name secp256k1 -genkey
openssl req -new -key ec_key.pem -x509 -nodes -days 365 -out cert.pem
Peter R (OP)
Legendary
*
Offline Offline

Activity: 1162
Merit: 1007



View Profile
June 21, 2014, 05:22:03 AM
 #3

Perfect.  Thanks for the information 12648430.

Run Bitcoin Unlimited (www.bitcoinunlimited.info)
Mike Hearn
Legendary
*
expert
Offline Offline

Activity: 1526
Merit: 1134


View Profile
June 24, 2014, 01:25:30 PM
 #4

It should work but such a certificate would be very unusual.
MiWCryptoCurrencyMA
Newbie
*
Offline Offline

Activity: 21
Merit: 0


View Profile
July 28, 2014, 07:43:50 AM
 #5

This is a fantastic idea. Thanks for the concept; I wrote this paper to discuss what you could do with this:
 https://github.com/MiWCryptoCurrency/UTXOC/blob/master/UTXOCv1.pdf?raw=true

The git repository also has scripts:
https://github.com/MiWCryptoCurrency/UTXOC/

 * eckey2coin.py (to easily generate the address + QR code, based on pycoin key utils (ku).
 * utxocsr.py (to generate a certificate signing request from a raw EC key; and embed the transaction hash in the x509v3 Subject Alternative Name.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!