Skip to content

Commit

Permalink
doc: Provided examples
Browse files Browse the repository at this point in the history
  • Loading branch information
orlowskilp committed Jun 25, 2024
1 parent 1af236e commit b024973
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
24 changes: 24 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Sample PEM and expected values

The example public key in PEM format has the following SHA1 checksum:

```text
cb64c6243efbbdd170f2cba269775fa20ccd0531
```

## Public key

The public key in hexadecimal, without the `0x04` prefix derived from the PEM
file is:

```text
3b4ca9876d1c4ca39838fd8ef1bc4b138a1edf73ad8e29b9f6338f39e4a6f64c7d83df86b01deb689c6d14536413fce6752f4df7240d7180b53f27f5611d06a3
```

## EVM address

The account address derived from the hexadecimal public key:

```text
0x128a20ebdcb434e41ee8e5e94292ce76eddfc8ea
```
4 changes: 4 additions & 0 deletions examples/ex-pub-key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-----BEGIN PUBLIC KEY-----
MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEO0yph20cTKOYOP2O8bxLE4oe33Otjim5
9jOPOeSm9kx9g9+GsB3raJxtFFNkE/zmdS9N9yQNcYC1Pyf1YR0Gow==
-----END PUBLIC KEY-----
1 change: 1 addition & 0 deletions examples/pub-key.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3b4ca9876d1c4ca39838fd8ef1bc4b138a1edf73ad8e29b9f6338f39e4a6f64c7d83df86b01deb689c6d14536413fce6752f4df7240d7180b53f27f5611d06a3
1 change: 1 addition & 0 deletions examples/wallet-addr.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x128a20ebdcb434e41ee8e5e94292ce76eddfc8ea

0 comments on commit b024973

Please sign in to comment.