We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [secp256k1]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

How to calculate v for signature?

I created Ethereum private network with chainID 10 (networkID in genesis.json). I have to create raw transaction and sign on it manually too. How to calculate v in signature ? According to this ...
1
vote
1answer
25 views

secp256k1 library does not create correct public key

I am trying to get public key from private key using secp256k1 library. https://github.com/bitcoin-core/secp256k1 I set same private key(sk) in here. https://github.com/ethereumbook/ethereumbook/blob/...
2
votes
1answer
344 views

How to generate public key from private key in Rust?

How to generate Ethereum public key from private key in Rust? I found rust-secp256k1 and it seems to be what I need, but there is no documentation at all, which makes this crate for me, Rust newbie, ...
1
vote
0answers
87 views

How to change Go Ethereum ECC Curve

In Geth\crypto I found the default implementation of ECC curve (secp256k1). I would like to change it to secp256r1 curve for my private network. In normal circumstances, all I need to change is the ...
0
votes
1answer
236 views

Can Ethereum Contracts Store Bitcoin?

I know that Ethereum and Bitcoin both you the same underlying elliptic curve, so I'm wondering, is it possible to store bitcoin in an Ethereum contract?
2
votes
1answer
652 views

Secp256k1 bindings are not compiled. Pure JS implementation will be used

I am trying to create a meteor dapp that can sign a piece of data and then recover the address it was signed with. When I run the dapp I get this error in the console: Secp256k1 bindings are not ...
6
votes
1answer
725 views

How to sign a message using secp256k1 in Ruby?

I'm trying to write a sign function in Ruby for Ethereum using secp256k1. I have access to this sign_compact function which seems to be for Bitcoin: https://github.com/lian/bitcoin-ruby/blob/master/...
4
votes
2answers
2k views

Deriving Ethereum address from Bitcoin address

As far as I know Ethereum private keys are compatible with Bitcoin private keys, as described in Can I use the same private key for Ethereum and Bitcoin? . HOWEVER Can I derive an Ethereum public ...
18
votes
1answer
4k views

Can I use the same private key for Ethereum and Bitcoin?

Both Bitcoin and Ethereum private keys are usually a 256-bit number, isn't it possible to use the same private key for both Bitcoin wallets and Ethereum accounts? For instance, the Bitcoin wiki ...