Skip to content

Commit

Permalink
fix: reformatted comments to be one liners
Browse files Browse the repository at this point in the history
  • Loading branch information
wregulski committed Oct 17, 2024
1 parent 6bb8110 commit c0cb4f3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions transaction/merkletreeparent.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
"github.com/bitcoin-sv/go-sdk/util"
)

// MerkleTreeParentStr returns the Merkle Tree parent of two Merkle
// Tree children using hex strings instead of just bytes.
// MerkleTreeParentStr returns the Merkle Tree parent of two Merkle Tree children using hex strings instead of just bytes.
func MerkleTreeParentStr(leftNode, rightNode string) (string, error) {
l, err := hex.DecodeString(leftNode)
if err != nil {
Expand All @@ -23,8 +22,7 @@ func MerkleTreeParentStr(leftNode, rightNode string) (string, error) {
return hex.EncodeToString(MerkleTreeParent(l, r)), nil
}

// MerkleTreeParent returns the Merkle Tree parent of two Merkle
// Tree children.
// MerkleTreeParent returns the Merkle Tree parent of two MerkleTree children.
func MerkleTreeParent(leftNode, rightNode []byte) []byte {
// swap endianness before concatenating
l := util.ReverseBytes(leftNode)
Expand Down

0 comments on commit c0cb4f3

Please sign in to comment.