To understand and validate with an example one of the use cases of Crypto Conditions.
A sender shares a crypto condition with a receiver which tries to fulfill successfully.
npm install
, npm start
and answer the prompt questions.
-
- Ed25519
-
- PrefixSha256
Implement:
- PREIMAGE-SHA-256
- THRESHOLD-SHA-256
- RSA-SHA-256
- preimageSha256(hash)(preimage)()
- rsaSha256(pubkey)(signature)(message)
- ed25519(pubkey)(signature)(message)
- prefixSha256(subcondition, prefix)(fulfillment)(message)
- thresholdSha256(subconditions, threshold)(subfulfillments)(message)