Skip to content

Commit

Permalink
getting-started-java.md: fix a preposition
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterSeven144 authored and schildbach committed Feb 25, 2024
1 parent a897ec2 commit 48e83f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getting-started-java.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ In regtest mode there's no public infrastructure, but you can get a new block wh

## Keys and addresses

Bitcoin transactions typically send money to a public elliptic curve key. The sender creates a transaction containing the address of the recipient, where the address is an encoded form of a hash of their public key. The recipient then signs a transaction claiming the coins with their own private key. A key is represented with the `ECKey` class. `ECKey` can contain private keys, or just public keys that are missing the private part. Note that in elliptic curve cryptography public keys are derived from private keys, so knowing a private key inherently means knowing the public key as well. This is different to some other crypto systems you may be familiar with, like RSA.
Bitcoin transactions typically send money to a public elliptic curve key. The sender creates a transaction containing the address of the recipient, where the address is an encoded form of a hash of their public key. The recipient then signs a transaction claiming the coins with their own private key. A key is represented with the `ECKey` class. `ECKey` can contain private keys, or just public keys that are missing the private part. Note that in elliptic curve cryptography public keys are derived from private keys, so knowing a private key inherently means knowing the public key as well. This is different from some other crypto systems you may be familiar with, like RSA.

An address is a textual encoding of a public key. Actually, it is a 160-bit hash of a public key, with a version byte and some checksum bytes, encoded into text using a Bitcoin-specific encoding called base58. Base58 is designed to avoid letters and numbers that could be confused with each other when written down, such as 1 and uppercase i.

Expand Down

0 comments on commit 48e83f7

Please sign in to comment.