DefaultSmartContractService
constructor(credentialService: CredentialService? = null, blockchainRegistry: BlockchainAnchorRegistry? = null, engines: EvaluationEngines = EvaluationEngines(), credentialResolver: ContractCredentialResolver? = null, trustedIssuerPolicy: TrustedIssuerPolicy? = null, verifyAnchorOnVerify: Boolean = false, limits: ContractStoreLimits = ContractStoreLimits())
Parameters
credentialResolver
optional lookup for contract credentials that this instance did not issue itself; used by verifyContract.
trustedIssuerPolicy
optional extra policy deciding which issuers may vouch for a contract in verifyContract. Without it, the credential issuer must be a party to the contract or the issuer DID this service itself used when issuing the credential.
verifyAnchorOnVerify
when true, verifyContract also checks that the anchored payload attests to this contract and credential (default false). Fails closed: a contract with no anchor, or whose anchor's chain has no client in the registry, does not verify.
limits
capacity limits of the in-memory stores, see ContractStoreLimits.