Sha256: b3a976aeda312f852036c55943af3121c7d6cfd0b13e86c9e7541d3a826fa624

Contents?: true

Size: 284 Bytes

Versions: 11

Compression:

Stored size: 284 Bytes

Contents

module Klaytn
  class Authentication
    def auth_params(kas_access_key, kas_secret_access_key)
      { username: kas_access_key, password: kas_secret_access_key }
    end

    def headers(chain_id)
      { 'x-chain-id' => chain_id.to_s } # chain id must be string!
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
klaytn-0.1.2 lib/klaytn/authentication.rb
klaytn-0.1.1 lib/klaytn/authentication.rb
klaytn-0.1.0 lib/klaytn/authentication.rb
klaytn-0.0.9 lib/klaytn/authentication.rb
klaytn-0.0.8 lib/klaytn/authentication.rb
klaytn-0.0.7 lib/klaytn/authentication.rb
klaytn-0.0.6 lib/klaytn/authentication.rb
klaytn-0.0.5 lib/klaytn/authentication.rb
klaytn-0.0.4 lib/klaytn/authentication.rb
klaytn-0.0.3 lib/klaytn/authentication.rb
klaytn-0.0.2 lib/klaytn/authentication.rb