This commit is contained in:
D-Stacks 2022-06-25 17:42:50 +02:00
parent f13e4493fa
commit d7d3c72cf3
2 changed files with 10 additions and 11 deletions

View File

@ -5,9 +5,9 @@
package util
import (
"github.com/kaspanet/kaspad/util/bech32"
"github.com/pkg/errors"
"golang.org/x/crypto/blake2b"
"github.com/kaspanet/kaspad/util/bech32"
)
var (
@ -153,7 +153,6 @@ func DecodeAddress(addr string, expectedPrefix Bech32Prefix) (Address, error) {
}
}
// CheckIfAddressIsValid decodes the string encoding of an address and returns true
// if addr is a valid encoding for a known address type else it returns false
//