Comments (4)
Is this the correct type for what you're proposing?
enum Counterparty {
Collective(Set<Signatory>),
Singular(Signatory)
}
from themis-contract.
Is this the correct type for what you're proposing?
Sure, that's how you'd implement it in Rust 👍
from themis-contract.
I just picked rust syntax thinking it would be most perspicuous in this context, but guess I should have used TypeScript. The type reflecting this structure should be the same, regardless of the syntax.
from themis-contract.
We are no longer going to implement this model in v0.2 (currently on branch prototype/v2
, soon to be merged to master
).
We're now requiring that contracts expose a signatories
array that, at a minimum, is of the following (Dhall) type:
let Signatory : Type =
{ id : Text
, name : Text
, email : Text
}
let signatories : List Signatory =
[ { id = "signatory1"
, name = "Harry Henderson"
, email = "[email protected]"
}
]
in { signatories = signatories }
You can add any additional arbitrary fields to the signatory type (these will be passed through to your contract when rendering), but any notion of counterparties/organizations/etc. is totally up to you to define in your own contract. This is the only way we're going to get flexibility, while also providing Themis Contract with the minimum amount of information it needs to facilitate its signing mechanics.
from themis-contract.
Related Issues (20)
- compile needs a sanity check for variables typos, etc. HOT 3
- do comments in the markdown get included as metadata in the rendered PDF ? HOT 2
- error when no upstream set in `contract.dhall` and running `themis-contract upstream diff`
- compile should have option to commit & push
- compile should bind the: signature+underline+name together HOT 2
- explore & document how to best use pandoc for optimizing .docx -> .md conversions
- compile panics when there is error in the mustache templating
- compile: change `dhall-to-json output` verbosity (on error) from DBG to ERR
- signing should insert the current date/time/hash alongside the signature
- Identify logical unit tags from commit messages as well as github issues and pull requests HOT 1
- [TRC-IMPL.2::PREFIX.2] Record tag implementatino relationships HOT 1
- compile will sign if the signature files are present in the directory HOT 2
- create an invoicing template
- `new` command fails when attempting to create Git repo
- Dockerfile
- Get rid of IDs for signatures/signatories and just use e-mail addresses HOT 2
- General project context/history questions HOT 4
- themis-contract new [path/to/template.md] HOT 2
- auto push & auto commit should be off by default HOT 1
- themis-contract compile [--update] flag HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from themis-contract.