# Functions

CryptoEncryptAndSignContract returns the crypto implementation of the encryption and signer.
DefaultEncryptAndSignContract returns an implementation of the encryption and signer for the given encryption instance cert - certificate used to encrypt the contract privKey - private key used to sign the environment and workload section.
EncryptAndSignContract returns a function that signs the workload and env part of a contract and that adds the public key of the signature to the map the value of the input map must either be of type `string` or of type `Contract.RawMap` - enc encrypts a piece of data - signer signs a piece of data - pubKey extracts the public key from the private key.
OpenSSLEncryptAndSignContract returns the OpenSSL implementation of the encryption and signer.