-
Notifications
You must be signed in to change notification settings - Fork 18
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 alternate BIP32 Prefixes (BIP 49 & 84) #59
Open
SachinMeier
wants to merge
138
commits into
RiverFinancial:master
Choose a base branch
from
SachinMeier:sachin--add-bip32-alt-prefixes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 68 commits
Commits
Show all changes
138 commits
Select commit
Hold shift + click to select a range
5af3018
fix typo
SachinMeier bb1191e
add private key module
SachinMeier f2ab1e5
add der serialization
SachinMeier 4a3fe87
fix der casing
SachinMeier ce9fc16
add DER parse & serialize
SachinMeier 7a95429
rm debug function
SachinMeier 6971e0c
test encoding of sig
SachinMeier 5eca299
cleanup
SachinMeier e6ca99a
add signature verification and 1 test
SachinMeier c48c95d
add parse_wif & tests
SachinMeier 0e177be
add parse for uncompressed
SachinMeier 1b19e70
add parse for uncompressed
SachinMeier 9fd38dd
add parse code-nonfunctional
SachinMeier e7cb52d
add utils
SachinMeier 8a1ad79
finish pubkey parse
SachinMeier f525d57
fix pubkey tests
SachinMeier 5b9236d
rebase, clean up, add fuzz testing
SachinMeier 8d6739a
test parse uncompressed
SachinMeier eae9dbd
mix format
SachinMeier fa53e8c
update testing for privkey s -> d
SachinMeier 6268e61
add comments, parse pubkey from str
SachinMeier 8a873da
change key s -> d, comment & update deterministic_k
SachinMeier 4bcd0ad
mix format
SachinMeier c551248
fix specs
SachinMeier 00b4f32
remove duplicate spec
SachinMeier 1777891
add parse pubkey from hex test
SachinMeier 8da50bf
format
SachinMeier a92dbc3
Merge pull request #1 from SachinMeier/sachin--add-privkey
SachinMeier cad0b80
add test vectors for deterministic_k function
SachinMeier 1db066a
add description to sign function
SachinMeier 58f666f
Merge pull request #3 from SachinMeier/sachin--add-privkey
SachinMeier 66b9a15
Merge branch 'master' of github.com:RiverFinancial/bitcoinex
SachinMeier 6a5e75a
Merge branch 'master' of github.com:RiverFinancial/bitcoinex
SachinMeier d6d2204
add parse for uncompressed
SachinMeier 9659d74
add parse code-nonfunctional
SachinMeier f3570bd
finish pubkey parse
SachinMeier e62dd16
fix pubkey tests
SachinMeier 334c63f
init
SachinMeier 39fefd9
add wordlists
SachinMeier 28b2f0e
fix wordlist
SachinMeier 30e8509
init xkey
SachinMeier b15b9b0
update
SachinMeier 17811aa
derive child
SachinMeier 4e802c2
add child derivation, testing for bip84
SachinMeier 758bb93
add more xpub testing
SachinMeier 506d17a
edit specs
SachinMeier f1a32f1
documentation
SachinMeier 385abde
add derivation path module
SachinMeier 961687a
# This is a combination of 3 commits.
SachinMeier 46ff859
msg
SachinMeier b7084ee
add wordlists
SachinMeier 5bc495f
derive child
SachinMeier eb385f5
add child derivation, testing for bip84
SachinMeier 7dcfef6
add testing for deriv paths
SachinMeier 408cd88
remove wordlist
SachinMeier 5e5806c
rm seed.ex
SachinMeier 91ec102
format
SachinMeier b18f7e9
Merge pull request #2 from SachinMeier/sachin--add-bip32
SachinMeier 6d50f6f
fix ckd and add failure testing
SachinMeier 2c73fa2
add check valid pubkey on all xkeys
SachinMeier bb50411
Merge branch 'master' of github.com:RiverFinancial/bitcoinex
SachinMeier 0ec7102
Update jason to 1.2.2 so that we can remove the overide for decimal (…
philipglazman f4c9bc6
credo refactor code, add wildcard to deriv paths
SachinMeier 6b87987
remove raise error
SachinMeier 6599520
Merge branch 'master' of github.com:RiverFinancial/bitcoinex
SachinMeier 785df11
use derivation paths in PSBT
SachinMeier f66784a
rename parse/serialize/display functions
SachinMeier 7845135
use xpubs in PSBT
SachinMeier 0fdbd74
rename prv functions
SachinMeier 3944215
remove checksum from xkey struct && add switch prefix functionality
SachinMeier a5b40f3
merge master
SachinMeier 009f578
fix tests & fmt
SachinMeier a40c8dd
simplify func signatures
SachinMeier f479ccb
first draft adaptor signatures
SachinMeier 2ccff2e
fmt
SachinMeier 40372d5
fix typo
SachinMeier 4baa1f2
simplify code & add extract_sig from adaptor
SachinMeier a04f43e
make code consistent across sign & adaptor sign
SachinMeier 47d2a01
temp: try to fix R+T not even bug
SachinMeier 25eef34
make ExtendedKey.serialize elixir-idiomatic
SachinMeier 35cdda1
Merge branch 'master' into sachin--psbt-use-deriv-and-xpub
SachinMeier 05f5edd
temp fix adaptors
SachinMeier ab82799
Merge branch 'master' into sachin--adaptor-signatures
SachinMeier b7d5739
fix schnorr adaptor signatures
SachinMeier ce1f869
finish adaptor signatures!
SachinMeier 6a4e775
add comments, make tests realistic by force even tweak
SachinMeier 8bccf20
fmt
SachinMeier f4dc730
do not assume even tweak
SachinMeier 932687b
do not assume tweak is even in tests
SachinMeier 92ae2b4
add key-only taproot script creation
SachinMeier f9054d2
add Taproot.build_control_block and merkle tree handling
SachinMeier 7f34d80
improve create_p2tr signature
SachinMeier ad34bf6
finish bip341 sighash & tx signing
SachinMeier 02a7fbd
add scriptpath spend, op_checksigadd, scripts for examples
SachinMeier 11fe186
add tx hex to taproot multi-spend ex
SachinMeier 8792568
cleanup
SachinMeier 406e73f
rm tapscript.ex
SachinMeier a65df93
Merge branch 'sachin--adaptor-signatures' into sachin--add-key-only-t…
SachinMeier 17e28df
add full DLC example
SachinMeier 0d18d7a
syntax
SachinMeier 45ea0b3
add spec for function
SachinMeier e9fadf4
Merge branch 'master' into sachin--psbt-use-deriv-and-xpub
SachinMeier b977596
add psbt new fields
SachinMeier f4d7a3d
psbt v2 serialization funcs
SachinMeier 41fd7d5
fix lints
SachinMeier 31dedf7
rm duplicate test cases & add serialization & improve logic for handl…
SachinMeier 5820c75
add psbt test vectors
SachinMeier ed4f6b6
add all fields to psbt global serializer
SachinMeier 5eba54e
add BIP370 & 371 test vectors for psbt
SachinMeier d534c26
add todo
SachinMeier 289e49c
lint
SachinMeier 5bed706
Merge branch 'sachin--adaptor-signatures' into sachin--add-key-only-t…
SachinMeier 5cc1ef6
lint
SachinMeier e659a67
lint
SachinMeier 581403f
fmt
SachinMeier 02ab1cf
fmt
SachinMeier 9bd20fa
lint
SachinMeier afadef2
fmt
SachinMeier e133c5c
fix aliases
SachinMeier 72a89d0
lint
SachinMeier 3a48dbd
lint
SachinMeier 73b7500
lint
SachinMeier e2cf4a0
Merge pull request #11 from SachinMeier/sachin--psbt-use-deriv-and-xpub
SachinMeier 2043883
Merge pull request #12 from SachinMeier/sachin--adaptor-signatures
SachinMeier fa7df7f
lint
SachinMeier d81cd49
Merge branch 'master' into sachin--add-key-only-taproot-script-creation
SachinMeier 3294369
Merge pull request #13 from SachinMeier/sachin--add-key-only-taproot-…
SachinMeier eb0b3eb
Add PSBT fields functionality (#14)
SachinMeier e64c0e4
Add tapscript multisig helpers & BIP 67 & BIP 69 (#15)
SachinMeier 059cee5
fix bip69 bug
SachinMeier 2feb258
Add Tx vbyte size calculation (#16)
SachinMeier b044347
fix bip69 bug (#17)
SachinMeier 369b720
Merge branch 'master' of https://github.com/SachinMeier/bitcoinex
SachinMeier 9c67b08
fix bugs with calculate_signature_point (#18)
SachinMeier b9f6482
privkey to hex
SachinMeier 2c0fde6
rebase
SachinMeier bdc6bdd
fix test
SachinMeier 3e08e30
fmt
SachinMeier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's more consistent to wrap succes type in :ok tag like
{:ok, t()}
if error tuple is another possible return value