Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BIP32 Alt Prefixes #19

Open
wants to merge 71 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
5af3018
fix typo
SachinMeier Jan 7, 2021
bb1191e
add private key module
SachinMeier Jan 7, 2021
f2ab1e5
add der serialization
SachinMeier Jan 7, 2021
4a3fe87
fix der casing
SachinMeier Jan 7, 2021
ce9fc16
add DER parse & serialize
SachinMeier Jan 8, 2021
7a95429
rm debug function
SachinMeier Jan 8, 2021
6971e0c
test encoding of sig
SachinMeier Jan 8, 2021
5eca299
cleanup
SachinMeier Jan 8, 2021
e6ca99a
add signature verification and 1 test
SachinMeier Jan 8, 2021
c48c95d
add parse_wif & tests
SachinMeier Jan 9, 2021
0e177be
add parse for uncompressed
SachinMeier Jan 8, 2021
1b19e70
add parse for uncompressed
SachinMeier Jan 8, 2021
9fd38dd
add parse code-nonfunctional
SachinMeier Jan 8, 2021
e7cb52d
add utils
SachinMeier Jan 9, 2021
8a1ad79
finish pubkey parse
SachinMeier Jan 10, 2021
f525d57
fix pubkey tests
SachinMeier Jan 10, 2021
5b9236d
rebase, clean up, add fuzz testing
SachinMeier Jan 12, 2021
8d6739a
test parse uncompressed
SachinMeier Jan 12, 2021
eae9dbd
mix format
SachinMeier Jan 13, 2021
fa53e8c
update testing for privkey s -> d
SachinMeier Jan 18, 2021
6268e61
add comments, parse pubkey from str
SachinMeier Jan 18, 2021
8a873da
change key s -> d, comment & update deterministic_k
SachinMeier Jan 18, 2021
4bcd0ad
mix format
SachinMeier Jan 20, 2021
c551248
fix specs
SachinMeier Jan 20, 2021
00b4f32
remove duplicate spec
SachinMeier Jan 20, 2021
1777891
add parse pubkey from hex test
SachinMeier Jan 20, 2021
8da50bf
format
SachinMeier Jan 22, 2021
a92dbc3
Merge pull request #1 from SachinMeier/sachin--add-privkey
SachinMeier Feb 13, 2021
cad0b80
add test vectors for deterministic_k function
SachinMeier Feb 16, 2021
1db066a
add description to sign function
SachinMeier Feb 16, 2021
58f666f
Merge pull request #3 from SachinMeier/sachin--add-privkey
SachinMeier Feb 16, 2021
66b9a15
Merge branch 'master' of github.com:RiverFinancial/bitcoinex
SachinMeier Mar 13, 2021
6a5e75a
Merge branch 'master' of github.com:RiverFinancial/bitcoinex
SachinMeier Apr 14, 2021
d6d2204
add parse for uncompressed
SachinMeier Jan 8, 2021
9659d74
add parse code-nonfunctional
SachinMeier Jan 8, 2021
f3570bd
finish pubkey parse
SachinMeier Jan 10, 2021
e62dd16
fix pubkey tests
SachinMeier Jan 10, 2021
334c63f
init
SachinMeier Jan 12, 2021
39fefd9
add wordlists
SachinMeier Jan 13, 2021
28b2f0e
fix wordlist
SachinMeier Jan 13, 2021
30e8509
init xkey
SachinMeier Jan 13, 2021
b15b9b0
update
SachinMeier Jan 22, 2021
17811aa
derive child
SachinMeier Jan 23, 2021
4e802c2
add child derivation, testing for bip84
SachinMeier Feb 10, 2021
758bb93
add more xpub testing
SachinMeier Feb 13, 2021
506d17a
edit specs
SachinMeier Feb 13, 2021
f1a32f1
documentation
SachinMeier Mar 2, 2021
385abde
add derivation path module
SachinMeier Mar 5, 2021
961687a
# This is a combination of 3 commits.
SachinMeier Jan 8, 2021
46ff859
msg
SachinMeier Apr 14, 2021
b7084ee
add wordlists
SachinMeier Jan 13, 2021
5bc495f
derive child
SachinMeier Jan 23, 2021
eb385f5
add child derivation, testing for bip84
SachinMeier Feb 10, 2021
7dcfef6
add testing for deriv paths
SachinMeier Mar 5, 2021
408cd88
remove wordlist
SachinMeier Apr 14, 2021
5e5806c
rm seed.ex
SachinMeier Apr 14, 2021
91ec102
format
SachinMeier Apr 14, 2021
b18f7e9
Merge pull request #2 from SachinMeier/sachin--add-bip32
SachinMeier Apr 14, 2021
6d50f6f
fix ckd and add failure testing
SachinMeier Apr 14, 2021
2c73fa2
add check valid pubkey on all xkeys
SachinMeier Apr 15, 2021
bb50411
Merge branch 'master' of github.com:RiverFinancial/bitcoinex
SachinMeier Apr 16, 2021
0ec7102
Update jason to 1.2.2 so that we can remove the overide for decimal (…
philipglazman Apr 19, 2021
f4c9bc6
credo refactor code, add wildcard to deriv paths
SachinMeier Apr 21, 2021
6b87987
remove raise error
SachinMeier Apr 24, 2021
6599520
Merge branch 'master' of github.com:RiverFinancial/bitcoinex
SachinMeier Apr 26, 2021
3944215
remove checksum from xkey struct && add switch prefix functionality
SachinMeier Sep 4, 2022
a5b40f3
merge master
SachinMeier Sep 4, 2022
009f578
fix tests & fmt
SachinMeier Sep 5, 2022
2c0fde6
rebase
SachinMeier Jan 24, 2024
bdc6bdd
fix test
SachinMeier Jan 24, 2024
3e08e30
fmt
SachinMeier Jan 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mix format
  • Loading branch information
SachinMeier committed Jan 20, 2021
commit 4bcd0ad10067bd110b7052911f0e3caf1281f106
1 change: 1 addition & 0 deletions lib/secp256k1/point.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ defmodule Bitcoinex.Secp256k1.Point do
def parse_public_key(<<0x04, x::binary-size(32), y::binary-size(32)>>) do
%__MODULE__{x: :binary.decode_unsigned(x), y: :binary.decode_unsigned(y)}
end

# Above matches with uncompressed keys. Below matches with compressed keys
def parse_public_key(<<prefix::binary-size(1), x_bytes::binary-size(32)>>) do
x = :binary.decode_unsigned(x_bytes)
Expand Down