func NewRelyingParty(originURL string, credentialStorage CredentialStorage) *RelyingParty {
	rp := &RelyingParty{
		origin:            originURL,
		credentialStorage: credentialStorage,
	}
	if u, err := url.Parse(originURL); err == nil {
		rp.id = []byte(u.Hostname())
	} else {
		rp.id = []byte(originURL)
	}
	return rp
}
// NewRelyingParty creates a new RelyingParty.
NewRelyingParty creates a new RelyingParty.
// NewRelyingParty creates a new RelyingParty .
func NewRelyingParty(originURL string, credentialStorage CredentialStorage) *RelyingParty {
	rp := &RelyingParty{
		origin:            originURL,
		credentialStorage: credentialStorage,
	}
	if u, err := url.Parse(originURL); err == nil {
		rp.id = []byte(u.Hostname())
	} else {
		rp.id = []byte(originURL)
	}
	return rp
}
func NewRelyingParty ( originURL string , credentialStorage CredentialStorage ) * RelyingParty { rp := & RelyingParty { origin : originURL , credentialStorage : credentialStorage , } if u , err := url . Parse ( originURL ) ; err == nil { rp . id = [ ] byte ( u . Hostname ( ) ) } else { rp . id = [ ] byte ( originURL ) } return rp }
NewRelyingParty creates a new RelyingParty.
NewRelyingParty creates a new RelyingParty .