Questions tagged [openssl]

33 questions
8
votes
1 answer

Is libsecp256k1 faster than OpenSSL?

Bitcoin Core is eventually going to replace OpenSSL with libsecp256k1 for all ECDSA operations. As I understand it, this is motivated by wanting consensus-critical rules to not depend on OpenSSL. Is libsecp256k1 signature verification also faster…
Nick ODell
  • 29,184
  • 11
  • 69
  • 129
6
votes
1 answer

Building on Ubuntu 16, missing SSL during ./configure

I am trying to build bitcoind on Ubuntu 16 64-bit. I have installed the dependencies and have built it fine many times on other machines. During ./configure, I am getting checking whether the Boost::Unit_Test_Framework library is available...…
Matthew Darnell
  • 508
  • 1
  • 4
  • 12
5
votes
4 answers

How do these OpenSSL commands create a Bitcoin private/key from a ECDSA keypair

I found the following code online and apparently it works. But I don't understand the lines which extract the Bitcoin compatible private/public key from the created ECDSA…
soupdiver
  • 175
  • 2
  • 8
5
votes
1 answer

OpenSSL generate Bitcoin address

I am building a script to generate secp256k1 using OpenSSL in MacOS. Seems to work fine. My question: is this SECURE enough? #!/bin/bash if [ $# -eq 0 ]; then echo "Missing name, for example generate_key.sh bob" exit…
4
votes
1 answer

OpenSSL and Secp256k1 differing in implementation of ECDSA signatures?

OpenSSL (from ssl in Mac OS X Version 10.11.6) and Secp256k1 (from the bitcoin-core repository) seem to differ in their implementations of ECDSA. I'm having issues with these differences and want to make sure they actually exist, and if they do, how…
Cisplatin
  • 143
  • 4
4
votes
1 answer

Transaction signature algorithm

As I know, standard ECDSA digital signature algorithm returns two values (according to this article or Wikipedia), but transaction push services or APIs, like this one, require one string as a signature. Can anyone explain, what is that string, and…
Guest_User
  • 63
  • 1
  • 4
3
votes
1 answer

Signing tx with OpenSSL, but fails when sending with bitcoin qt. How to debug?

I try to create a tx with 4 inputs, and sign it via cmdline and openssl on a cold storage machine. Then I want to send it via bitcoin qt (or blockchain.info). Signing with a single input and a single output already works for me (via unix cmd line…
3
votes
1 answer

Verifying a bitcoin trx on the Unix cmd line with OpenSSL?

I want to use openssl on unixoide systems to verify a transaction. I step on errors, when trying to verify a bitcoin trx’s hash. Here I am working on Mac OSX and OpenSSL (1.0.2a 19 Mar 2015). I know I can use the QT client, or the several…
pebwindkraft
  • 5,086
  • 2
  • 13
  • 34
3
votes
2 answers

How to Compress Public Key with OpenSSL / Bash

I generate the private and the public keys in Shell like that: openssl ecparam -name secp256k1 -rand /dev/random -genkey -noout -out private-key.pem openssl ec -in private-key.pem -outform DER | tail -c +8 | head -c 32 | xxd -p -c 32 >…
2
votes
2 answers

Openssl magic values? Secp256k1 and ECDSA similarities? What makes secp256k1 special?

Part 1: Running this command seems to be a reliable way to produce a pubkey from a valid private key that for Bitcoin. Is this a correct assumption? openssl ec -inform DER -text -noout -in <(cat <(echo -n "302e0201010420") <(echo -n…
Michael Tidwell
  • 472
  • 2
  • 11
2
votes
3 answers

Generate public/private key for bitcoin with openssl

I want to understand how bitcoin works and I do not trust tools or bitcoin platforms. I have read this on Internet. Can you confirm me this lines are generating a bitcoin public/private key safely ? openssl ecparam -genkey -name secp256k1 -rand…
Bob5421
  • 217
  • 1
  • 5
2
votes
1 answer

How can you generate a bitcoin Public Key from an existing Private Key using openssl?

I know that you can generate a new key pair with a command like. openssl ecparam -genkey -name secp256k1 And the resulting output will contain a new private key with the encoded public key. Is it possible for openssl to generate the public key…
Sydwell
  • 276
  • 2
  • 3
  • 14
2
votes
3 answers

Bitcoind does not like ECDSA (r, s) pair produced by OpenSSL

I am writing transactions manually and have stumbled across a rather bizarre situation. Only one in a few of the transactions I broadcast to bitcoind is accepted, otherwise I get a REJECT_NONSTANDARD (Non-canonical DER signature). So I got my hands…
Tedy S.
  • 87
  • 3
2
votes
1 answer

How to properly decrypt Android Bitcoin wallet backup from 2014?

I have a wallet backup that's encrypted and I have the password, but when I run this: openssl enc -d -aes-256-cbc -md md5 -a -in bm2 > bitcoin-wallet-decrypted and enter my password, I get this: *** WARNING : deprecated key derivation used. Using…
2
votes
1 answer

Were uncompressed public keys always supported by Bitcoin?

I was wondering when compressed public keys were introduced to bitcoin, then I saw this quote from this answer: The original Bitcoin software didn't use compressed keys only because their use was poorly documented in OpenSSL. I hadn't heard about…
Darius
  • 779
  • 4
  • 16
1
2 3