# README
cryptoconditions
This package provides a Go (golang) implementation of the Crypto-Conditions RFC specification intended for the Interledger protocol.
All the test vectors from the RFC specs are included in the unit tests.
!! For now, the THRESHOLD-SHA-256
condition is not yet supported because
of limitation from the ASN.1 library that we use. We're looking towards a
solution for that. !!
Licensing
This implementation is part of the public domain.
More information can be found in the UNLICENSE
file.
# Functions
DecodeCondition decodes the DER encoding of a condition.
DecodeFulfillment decodes the DER encoding of a fulfillment.
NewCompoundCondition constructs a new compound condition with subtypes.
NewEd25519Sha256 creates a new ED25519-SHA-256 fulfillment.
NewPrefixSha256 creates a new PREFIX-SHA-256 fulfillment.
PrefixSha256Unfulfilled creates an unfulfilled PREFIX-SHA-256 fulfillment.
NewPreimageSha256 creates a new PREIMAGE-SHA-256 fulfillment.
RsaSha256 creates a new RSA-SHA-256 fulfillment.
NewSimpleCondition constructs a new simple condition.
NewThresholdSha256 creates a new THRESHOLD-SHA-256 fulfillment.
ParseURI parses a URI into a Condition.
# Constants
ED25519.
PREFIX-SHA-256.
PREIMAGE-SHA-256.
RSA-SHA-256.
THRESHOLD-SHA-256.
# Variables
ASN1Context defines the ASN.1 context that is used to encode and decode objects.
# Structs
Condition represents a crypto-condition.
FfEd25519Sha256 implements the ED25519-SHA-256 fulfillment.
FfPrefixSha256 implements the PREFIX-SHA-256 fulfillment.
FfPreimageSha256 implements the PREIMAGE-SHA-256 fulfillment.
NewFfRsaSha256 implements the RSA-SHA-256 fulfillment.
FfThresholdSha256 implements the THRESHOLD-SHA-256 fulfillment.
# Interfaces
Fulfillment defines the fulfillment interface.
# Type aliases
ConditionType represent one of the predefined condition types in the specification.
ConditionTypeSet represents a set of ConditionTypes.