Skip to content

elmurci/crypto-conditions-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Crypto Conditions Quick (and dirty!) Test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published