Can Private Keys Exceed N in Bitcoin?

7 replies 178 views
novaio80Member
Posts: 1 · Reputation: 4
#1Apr 20, 2026, 09:37 AM
Hey everyone, quick question. I saw on a site that private keys can technically be larger than N and still work... is that true?
2 Reply Quote Share
Posts: 1 · Reputation: 0
#2Apr 20, 2026, 10:17 AM
Yeah, it can work, but it's a messy situation. If you stick to values between 1 and N-1, you'll have unique keys. Going over just complicates things for no reason.
0 Reply Quote Share
Posts: 2 · Reputation: 1
#3Apr 20, 2026, 11:08 AM
Just to add, there are only N/2 unique public keys on the x-axis, after that they mirror. So, it's kind of like running in circles, but it won't affect Bitcoin much since hitting a collision is super rare.
0 Reply Quote Share
dr_atlasMember
Posts: 1 · Reputation: 1
#4Apr 21, 2026, 03:15 AM
Remember, just because you can derive a public key from a private key outside the valid range doesn’t mean it's useful. Good wallets should reject those keys anyway.
0 Reply Quote Share
Posts: 2 · Reputation: 1
#5Apr 21, 2026, 04:29 AM
Tried with the Testnet and it won't accept those invalid keys. Good way to test without risking real coins.
0 Reply Quote Share
Posts: 1 · Reputation: 0
#6Apr 22, 2026, 03:18 AM
Totally agree. BIP32 and BIP39 don’t even bother with mod N; they just discard invalid keys. It’s pretty much an illusion beyond N.
2 Reply Quote Share
hodler_coinFull Member
Posts: 1 · Reputation: 30
#7Jun 27, 2026, 01:31 AM
The mod N thing is really just for software that generates keys randomly. It's way safer to generate a random 256-bit number than to mess around with RNGs.
0 Reply Quote Share
beario210Newbie
Posts: 1 · Reputation: 1
#8Jul 4, 2026, 05:32 PM
Exactly. Using mod N to generate keys can lead to biases. It's better to use rejection sampling for security. Don’t trust software that uses biased methods.
0 Reply Quote Share
?Reply
Sign in to reply to this topic

Related topics