homepage: https://github.com/libscott/cryptoconditions-hs
changelog-type: ''
hash: 80eddf0a217097a6a88ba50290ff9843667cc2641b34fa31fd30d1855e2567a0
test-bench-deps:
  bytestring: -any
  base: -any
  base64-bytestring: -any
  text: -any
  cryptoconditions: -any
  cryptonite: -any
  tasty-hunit: -any
  base16-bytestring: -any
  transformers: -any
  tasty: -any
  asn1-encoding: -any
  aeson-quick: -any
  aeson: -any
maintainer: Scott Sadler <scott@scottsadler.de>
synopsis: Interledger Crypto-Conditions
changelog: ''
basic-deps:
  bytestring: -any
  base: ! '>=4.7 && <5'
  base64-bytestring: -any
  text: -any
  asn1-types: -any
  memory: -any
  containers: -any
  cryptonite: -any
  asn1-parse: -any
  asn1-encoding: -any
all-versions:
- '0.1.0.0'
author: Scott Sadler
latest: '0.1.0.0'
description-type: markdown
description: ! '# Crypto Conditions


  Targeting spec: draft-thomas-crypto-conditions-02 of December 20, 2016


  ## Current status


  Supports all standard condition types except RSA.


  Needs more testing. [Some tests](./test/) exist.


  ## Design


  This approach to Crypto Conditions in Haskell has the goals:


  * Simple to understand and work with

  * Easily extensible


  The bottleneck to achieving these goals is extensibility; Haskell does not

  support dynamic dispatch like OOP languages, and runtime type casting

  in Haskell is very unnatural and somewhat unsafe.


  The solution is to decouple the condition type from the implementation,

  such that the core algorithms and serialization can work with instances

  of an "IsCondition" class, and a polymorphic data type can be implemented

  separately to support the desired condition types and behaviours.


  The module [Network.CryptoConditions](./Network/CryptoConditions.hs) supports the
  standard

  condition types, library authors wishing to extend CryptoConditions

  should copy and paste this file into their own project and define their own

  Condition type.


'
license-name: BSD3

Update from Hackage at 2017-06-29T11:59:26Z
Update from Hackage at 2017-06-29T11:59:26Z
