Covest Labs Docs
  • Covest InSaaS Protocol
    • InSaaS Architecture
      • Basic Signed Quote Model
    • InSaaS Components
      • Governance
      • Risk Assessment
      • Claim Assessment
      • Validator Selection
      • Risk Carrier
    • InSaaS Smart Contracts
      • Policy States
      • Claim Case States
      • Operator
        • Pool Manager
        • Pricing Manager
        • Policy Manager
        • Claim Manager
      • Policyholder
        • Policy Manager
          • issuePolicy
          • redeemPolicy
          • Others
        • Claim Manager
          • submitClaim
          • Others
      • Claim Assessor
        • Claim Manager
      • Governance Board
        • Claim Manager
      • Contract Integration
  • Covest Warranty
    • Key Components
    • System Overview
    • Core Features
      • Contract Management
      • Warranty Certificate
      • Claim Management
      • Customer Portal
    • API Documentations
    • API Diagrams
      • Create Order Flow
      • Redeem Order Flow
Powered by GitBook
On this page
  • createHashIssuePolicy
  • createHashRedeemPolicy
  1. Covest InSaaS Protocol
  2. InSaaS Smart Contracts
  3. Operator

Policy Manager

Insurance Smart Contract

createHashIssuePolicy

function createHashIssuePolicy(HashIssuePolicyParams _issueData_) external view returns (bytes32)

Create hash that verifier will sign and give it to user for issue policy.

Generates a hash of the parameters required for the verifier to sign the message and provide the signature to the user for issuing the policy.

Name
Type
Description

issueData

The parameters of the issue policy are to be hashed.

Name
Type
Description

[0]

bytes32

The hash of the required parameters, which can then be used to generate a signature for the user to issue the policy.

HashIssuePolicyParams

struct HashIssuePolicyParams {
  address policyholder;
  string policyId;
  string externalReferenceId;
  string documentHash;
  uint40 coverageStart;
  uint40 coverageEnd;
  uint40 claimRequestUntil;
  uint256 premium;
  uint256 sumInsured;
  uint40 signatureValidUntil;
}

createHashRedeemPolicy

function createHashRedeemPolicy(HashRedeemPolicyParams _redeemData_) external view returns (bytes32)

Create hash that verifier will sign and give it to user for redeem policy.

Generates a hash of the parameters required for the verifier to sign the message and provide the signature to the user for redeeming the policy.

Name
Type
Description

redeemData

The parameters of the redeem policy are to be hashed.

Name
Type
Description

[0]

bytes32

The hash of the required parameters, which can then be used to generate a signature for the user to redeem the policy.

HashRedeemPolicyParams

struct HashRedeemPolicyParams {
  string policyId;
  uint8 redeemRate;
  uint8 riskCarrierRatio;
  uint40 signatureValidUntil;
}
PreviousPricing ManagerNextClaim Manager

Last updated 2 years ago

HashIssuePolicyParams
HashRedeemPolicyParams