Class: E3DB::EAK

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/e3db/client.rb

Overview

Represents an "encrypted access key" that can be used to encrypt and decrypt records.

Should only be obtained by calling Client#create_writer_key or Client#get_reader_key.

To serialize to JSON (for storage), use JSON.dump(eak.to_hash). To load from JSON, use E3DB::EAK.new(JSON.parse(eak, symbolize_names: true)).