VenturoApiSecurity constructor

VenturoApiSecurity({
  1. String? PRIVATE_KEY,
  2. String? PUBLIC_KEY,
  3. Hash? hash,
})

Constructor for setting up security configurations

Parameters:

  • PRIVATE_KEY: The private key for encryption (required)
  • PUBLIC_KEY: The public key for encryption (required)
  • hash: The hashing algorithm (optional)

Usage Example:

final security = VenturoApiSecurity(
  PRIVATE_KEY: "private_key_string",
  PUBLIC_KEY: "public_key_string",
  hash: Hash.SHA256,
);

Implementation

VenturoApiSecurity({
  this.PRIVATE_KEY,
  this.PUBLIC_KEY,
  this.hash,
});