Skip to content

Commit

Permalink
Update deps and fix address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zquestz committed Nov 14, 2024
1 parent 0002623 commit 146a3f3
Show file tree
Hide file tree
Showing 3 changed files with 2,305 additions and 11 deletions.
6 changes: 3 additions & 3 deletions address.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func DecodeAddress(addr string, defaultNet *chaincfg.Params) (Address, error) {
}
}

//TODO add p2sh32?
// TODO add p2sh32?
// ConvertSlpToCashAddress converts an slp formatted address to cash formatted address
func ConvertSlpToCashAddress(addr Address, params *chaincfg.Params) (Address, error) {
switch a := addr.(type) {
Expand All @@ -210,7 +210,7 @@ func ConvertSlpToCashAddress(addr Address, params *chaincfg.Params) (Address, er
}
}

//TODO add p2sh32?
// TODO add p2sh32?
// ConvertCashToSlpAddress converts a cash formatted address to slp formatted address
func ConvertCashToSlpAddress(addr Address, params *chaincfg.Params) (Address, error) {
switch a := addr.(type) {
Expand Down Expand Up @@ -458,7 +458,7 @@ func (a *AddressScriptHash32) String() string {
return a.EncodeAddress()
}

// Hash160 returns the underlying array of the script hash. This can be useful
// Hash256 returns the underlying array of the script hash. This can be useful
// when an array is more appropiate than a slice (for example, when used as map
// keys).
func (a *AddressScriptHash32) Hash256() *[sha256.Size]byte {
Expand Down
Loading

0 comments on commit 146a3f3

Please sign in to comment.