Utility functions to encrypt and decrypt an Hyper Protect Container Runtime contract.
Refer to main.go
for an example
The API design is based on functional and monadic interfaces exposed by the fp-go library.
Functions that can produce an error return an Either instead of the idiomatic golang tuple, because an Either can be used in functiona composition but the tuple cannot.
Functions with side effects are represented as IOEither, i.e. the actual execution of the side effect is deferred until the function gets executed
- Either: to convert a function returning Either to a function in golang style, call
Either.UneitherizeXXX
- contract-schema - JSON schema for the contract
- fp-go - implementation of the functional programming layer