func NewAuthorizer(keyFile, keyPass string) (*Authorizer, error) {
	fileBytes, err := ioutil.ReadFile(keyFile)
	if err != nil {
		return nil, err
	}
	pk, err := keystore.DecryptKey(fileBytes, keyPass)
	if err != nil {
		return nil, err
	}
	return NewAuthorizerFromPK(pk.PrivateKey), nil
}
// NewAuthorizer returns an Authorizer object
NewAuthorizer returns an Authorizer object
// NewAuthorizer returns an Authorizer object
func NewAuthorizer(keyFile, keyPass string) (*Authorizer, error) {
	fileBytes, err := ioutil.ReadFile(keyFile)
	if err != nil {
		return nil, err
	}
	pk, err := keystore.DecryptKey(fileBytes, keyPass)
	if err != nil {
		return nil, err
	}
	return NewAuthorizerFromPK(pk.PrivateKey), nil
}
func NewAuthorizer ( keyFile , keyPass string ) ( * Authorizer , error ) { fileBytes , err := ioutil . ReadFile ( keyFile ) if err != nil { return nil , err } pk , err := keystore . DecryptKey ( fileBytes , keyPass ) if err != nil { return nil , err } return NewAuthorizerFromPK ( pk . PrivateKey ) , nil }
NewAuthorizer returns an Authorizer object
NewAuthorizer returns an Authorizer object