func (hpk HostPublicKey) SiaPublicKey() (spk types.SiaPublicKey) {
	spk.LoadString(string(hpk))
	return
}
SiaPublicKey returns the HostPublicKey as a types.SiaPublicKey.
package hostdb  
import (
	"context"
	"crypto/ed25519"
	"encoding/hex"
	"encoding/json"
	"fmt"
	"net"
	"strings"
	"time"
	"go.sia.tech/siad/modules"
	"go.sia.tech/siad/types"
	"lukechampine.com/us/renterhost"
)
type HostPublicKey string
func (hpk HostPublicKey) Key() string {
	specLen := strings.IndexByte(string(hpk), ':')
	if specLen < 0 {
		return ""
	}
	return string(hpk[specLen+1:])
}
func (hpk HostPublicKey) ShortKey() string {
	return hpk.Key()[:8]
}
func (hpk HostPublicKey) Ed25519() ed25519.PublicKey {
	pk, _ := hex.DecodeString(hpk.Key())
	return ed25519.PublicKey(pk)
}