func (a *Account) IsValid() bool {
	return Status(a.Status) == StatusValid
}
IsValid returns true if the Account is valid.
package acme
import (
	"crypto"
	"encoding/base64"
	"encoding/json"
	"go.step.sm/crypto/jose"
)
type Account struct {
	ID        string           `json:"-"`
	Key       *jose.JSONWebKey `json:"-"`
	Contact   []string         `json:"contact,omitempty"`
	Status    Status           `json:"status"`
	OrdersURL string           `json:"orders"`
}
func (a *Account) ToLog() (interface{}, error) {
	b, err := json.Marshal(a)
	if err != nil {
		return nil, WrapErrorISE(err, "error marshaling account for logging")
	}
	return string(b), nil
}