func (ja JWSAlgorithm) name() (string, error) {
	switch ja {
	case RS256:
		return "RS256", nil
	case EdDSA:
		return "EdDSA", nil
	default:
		return "", fmt.Errorf("unsupported algorithm: %v", ja)
	}
}
name return the name of the signature algorithm.
package verifiable
import (
	"encoding/json"
	"errors"
	"fmt"
	"strings"
	"github.com/piprate/json-gold/ld"
	"github.com/xeipuuv/gojsonschema"
	"github.com/hyperledger/aries-framework-go/pkg/doc/signature/verifier"
	vdrapi "github.com/hyperledger/aries-framework-go/pkg/framework/aries/api/vdr"
)
type JWSAlgorithm int
const (
	RS256 JWSAlgorithm = iota
	EdDSA
)