Fix issues found by golint.
This commit is contained in:
parent
4465e71837
commit
7ec063aebc
1 changed files with 2 additions and 2 deletions
|
@ -468,7 +468,7 @@ func (a *AddressPubKey) String() string {
|
||||||
return hex.EncodeToString(a.serialize())
|
return hex.EncodeToString(a.serialize())
|
||||||
}
|
}
|
||||||
|
|
||||||
// PubKeyFormat returns the format (uncompressed, compressed, etc) of the
|
// Format returns the format (uncompressed, compressed, etc) of the
|
||||||
// pay-to-pubkey address.
|
// pay-to-pubkey address.
|
||||||
func (a *AddressPubKey) Format() PubKeyFormat {
|
func (a *AddressPubKey) Format() PubKeyFormat {
|
||||||
return a.pubKeyFormat
|
return a.pubKeyFormat
|
||||||
|
@ -520,7 +520,7 @@ func EncodePrivateKey(privKey []byte, net btcwire.BitcoinNet, compressed bool) (
|
||||||
// privKey, plus an optional byte (0x01) if copressed, plus 4 bytes of checksum.
|
// privKey, plus an optional byte (0x01) if copressed, plus 4 bytes of checksum.
|
||||||
encodeLen := 37
|
encodeLen := 37
|
||||||
if compressed {
|
if compressed {
|
||||||
encodeLen += 1
|
encodeLen++
|
||||||
}
|
}
|
||||||
a := make([]byte, encodeLen, encodeLen)
|
a := make([]byte, encodeLen, encodeLen)
|
||||||
a[0] = netID
|
a[0] = netID
|
||||||
|
|
Loading…
Reference in a new issue