Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 732 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 732 Bytes

Crypto Conditions Quick (and dirty!) Test

Purpose

To understand and validate with an example one of the use cases of Crypto Conditions.

Simple use case

A sender shares a crypto condition with a receiver which tries to fulfill successfully.

How to run it

npm install, npm start and answer the prompt questions.

    1. Ed25519
    1. PrefixSha256

TODO

Implement:

  • PREIMAGE-SHA-256
  • THRESHOLD-SHA-256
  • RSA-SHA-256

CC's as Curried Functions

  • preimageSha256(hash)(preimage)()
  • rsaSha256(pubkey)(signature)(message)
  • ed25519(pubkey)(signature)(message)
  • prefixSha256(subcondition, prefix)(fulfillment)(message)
  • thresholdSha256(subconditions, threshold)(subfulfillments)(message)