accordproject / template-archive

Smart Legal Contracts & Templating System
https://accordproject.org/projects/cicero/
Apache License 2.0
276 stars 120 forks source link

Implement contract instantiation and signing via Cicero-Server #701

Open martinhalford opened 2 years ago

martinhalford commented 2 years ago

Feature Request 🛍️

The recent POC .slc changes provide the capability to sign .cta templates, plus instantiate and sign .slc contract instances.

These features are currently only available via the CLI.

The current Cicero-Server provides an API to trigger, parse and draft templates.

The proposal is to extent the Cicero-Server to include template sign and contract instantiate and sign functions.

Possible Solution

The proposal is to add sign(template), instantiate(contract) and sign(contract) as endpoints to the Cicero Server API.

sign(template)

instantiate(contract)

sign(contract)

Knock-on requirements

Will need to extend trigger and draft functions to support contract (slc) inputs in addition to existing template (cta) files.

jeromesimeon commented 2 years ago

That sounds great! Would instantiate allow you to create something server side? (not sure I know if the architecture would make sense for that kind of server-side support)