I am making a system in Corda in which a person can put his insurance policy details in the Corda network and can sell this to another person. Means policy belongs to one person at a time. I could not figure out which type of state Insurance Policy should be? How should I represent Policy in Corda?
I am facing two issues :
1.) which state type to use for creating Policy because, If a make Corda as a simple ContractState then how would I add it in only the seller's vault because firstly seller wants it to be visible in its own vault only, so as per my guessings there should be only one party involved in the transaction which is seller itself.
2.) How to send it to another person because now two parties will be involved in the transaction.