Sha256: c83a0c5d0dfb970846a5e1f740ace1a764bf19e02db4104db81bd77105d3409d

Contents?: true

Size: 436 Bytes

Versions: 3

Compression:

Stored size: 436 Bytes

Contents

# encoding: binary
# typed: strict
# frozen_string_literal: true

module Paseto
  module Interface
    module Wrapper
      extend T::Sig
      extend T::Helpers

      interface!

      sig { abstract.params(key: Key, nonce: T.nilable(String)).returns(String) }
      def encode(key, nonce: nil); end

      sig { abstract.params(paserk: [String, String, String, String]).returns(Key) }
      def decode(paserk); end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-paseto-0.1.2 lib/paseto/interface/wrapper.rb
ruby-paseto-0.1.1 lib/paseto/interface/wrapper.rb
ruby-paseto-0.1.0 lib/paseto/interface/wrapper.rb