Sha256: 6a389345becb548fd88eb7502e81e3fd01fd1b9a306c92b481caf735c9f9bb85

Contents?: true

Size: 346 Bytes

Versions: 3

Compression:

Stored size: 346 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module Paseto
  module ASN1
    class PrivateKey < T::Struct
      extend T::Sig

      const :private_key, T.any(ECPrivateKey, CurvePrivateKey)

      sig { returns(OpenSSL::ASN1::OctetString) }
      def build
        OpenSSL::ASN1::OctetString.new(private_key.to_der)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-paseto-0.1.2 lib/paseto/asn1/private_key.rb
ruby-paseto-0.1.1 lib/paseto/asn1/private_key.rb
ruby-paseto-0.1.0 lib/paseto/asn1/private_key.rb