You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: default_encryptor.rb
    path of file: ./repos/darrrr/lib/darrrr/cryptors/default
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Darrrr
  module DefaultEncryptor
    class << self
      include Constants

      # Encrypts the data in an opaque way
      #
      # data: the secret to be encrypted
      # context: arbitrary data originally passed in via Provider#seal
      #
      # returns a byte array represent
    
      def verify(payload, signature, key, _provider, _context = nil)
        public_key_hex = format_key(key)
        pkey = OpenSSL::PKey::EC.new(GROUP)
        public_key_bn = OpenSSL::BN.new(public_key_hex, 16)
        public_key = OpenSSL::PKey::EC::Point.new(GROUP, public_key_bn)
        pkey.public_key = public_key

        pkey.verify(DIGEST.new, signature, payload)
      rescue OpenSSL::PKey::ECError, OpenSSL::PKey::PKeyError => e
        raise CryptoError, "Unable verify recovery token"
      end