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

Bec v2 #20

Merged
merged 22 commits into from
May 10, 2021
Merged

Bec v2 #20

merged 22 commits into from
May 10, 2021

Conversation

theflyingcodr
Copy link
Contributor

This adds the new go-bk dependency and remove all other dependencies go-bt had.

bk contains crypto functions as well as key related functions such as bip32 etc.

bt has now been cleaned out of all these functions making it more targeted purely to transaction building and scripts.

@theflyingcodr theflyingcodr added the enhancement New feature or request label Apr 30, 2021
@codecov-commenter
Copy link

codecov-commenter commented May 6, 2021

Codecov Report

Merging #20 (cd951f7) into v2 (c3986f1) will increase coverage by 0.56%.
The diff coverage is 79.06%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v2      #20      +/-   ##
==========================================
+ Coverage   75.89%   76.46%   +0.56%     
==========================================
  Files          20       18       -2     
  Lines         809      786      -23     
==========================================
- Hits          614      601      -13     
+ Misses        132      120      -12     
- Partials       63       65       +2     
Impacted Files Coverage Δ
bscript/addressvalidation.go 85.18% <ø> (ø)
bscript/bip276.go 70.00% <ø> (ø)
signaturehash.go 82.08% <ø> (ø)
txchange.go 69.81% <ø> (ø)
txinput.go 84.61% <50.00%> (-0.39%) ⬇️
txsign.go 43.75% <50.00%> (ø)
bscript/address.go 84.00% <60.00%> (ø)
bscript/script.go 64.12% <81.25%> (+6.75%) ⬆️
input.go 84.61% <100.00%> (ø)
localsigner.go 57.14% <100.00%> (ø)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3986f1...cd951f7. Read the comment docs.

@@ -315,3 +313,20 @@ func (s *Script) PublicKeyHash() ([]byte, error) {

return parts[0], nil
}

// Equals will compare the script to b and return true if they match.
func (s *Script) Equals(b *Script) bool{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remember to add tests for these

@jadwahab jadwahab merged commit 248cff4 into v2 May 10, 2021
@jadwahab jadwahab deleted the bec-v2 branch May 10, 2021 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants