// GetPublicKey returns the public key for the given IRI.
//nolint:interfacer
GetPublicKey returns the public key for the given IRI.
nolint:interfacer
// GetPublicKey returns the public key for the given IRI . // nolint : interfacer
func (m *ActivityPubClient) GetPublicKey(keyIRI *url.URL) (*vocab.PublicKeyType, error) {
	if m.err != nil {
		return nil, m.err
	}
	key, ok := m.keys[keyIRI.String()]
	if !ok {
		return nil, fmt.Errorf("not found")
	}
	return key, nil
}
func ( m * ActivityPubClient ) GetPublicKey ( keyIRI * url . URL ) ( * vocab . PublicKeyType , error ) { if m . err != nil { return nil , m . err } key , ok := m . keys [ keyIRI . String ( ) ] if ! ok { return nil , fmt . Errorf ( " " ) } return key , nil }
GetPublicKey returns the public key for the given IRI.
GetPublicKey returns the public key for the given IRI .