Class: Privy::Models::HpkeImportConfig

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/hpke_import_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(aad: nil, aead_algorithm: nil, info: nil) ⇒ Object

Some parameter documentations has been truncated, see Privy::Models::HpkeImportConfig for more details.

Optional HPKE configuration for wallet import decryption. These parameters allow importing wallets encrypted by external providers that use different HPKE configurations.

Parameters:

  • aad (String) (defaults to: nil)

    Additional Authenticated Data (AAD) used during encryption. Should be base64-enc

  • aead_algorithm (Symbol, Privy::Models::HpkeAeadAlgorithm) (defaults to: nil)

    The AEAD algorithm used for HPKE encryption.

  • info (String) (defaults to: nil)

    Application-specific context information (INFO) used during HPKE encryption. Sho



# File 'lib/privy/models/hpke_import_config.rb', line 26

Instance Attribute Details

#aadString?

Additional Authenticated Data (AAD) used during encryption. Should be base64-encoded bytes.

Returns:

  • (String, nil)


11
# File 'lib/privy/models/hpke_import_config.rb', line 11

optional :aad, String

#aead_algorithmSymbol, ...

The AEAD algorithm used for HPKE encryption.

Returns:



17
# File 'lib/privy/models/hpke_import_config.rb', line 17

optional :aead_algorithm, enum: -> { Privy::HpkeAeadAlgorithm }

#infoString?

Application-specific context information (INFO) used during HPKE encryption. Should be base64-encoded bytes.

Returns:

  • (String, nil)


24
# File 'lib/privy/models/hpke_import_config.rb', line 24

optional :info, String