Documentation
¶
Index ¶
- Variables
- func CryptoEncryptAndSignContract(cert []byte) func([]byte) func(RawMap) E.Either[error, RawMap]
- func EncryptAndSignContract(enc func(data []byte) E.Either[error, string], ...) func([]byte) func(RawMap) E.Either[error, RawMap]
- func OpenSSLEncryptAndSignContract(cert []byte) func([]byte) func(RawMap) E.Either[error, RawMap]
- type RawMap
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeyEnv = "env" KeyWorkload = "workload" KeyAttestationPublicKey = "attestationPublicKey" KeySigningKey = "signingKey" KeyEnvWorkloadSignature = "envWorkloadSignature" ParseRawMapE = Y.Parse[RawMap] StringifyRawMapE = Y.Stringify[RawMap] MapDerefRawMapE = E.Map[error](F.Deref[RawMap]) MapRefRawMapE = E.Map[error](F.Ref[RawMap]) )
Functions ¶
func CryptoEncryptAndSignContract ¶
CryptoEncryptAndSignContract returns the crypto implementation of the encryption and signer
func EncryptAndSignContract ¶
func EncryptAndSignContract( enc func(data []byte) E.Either[error, string], signer func([]byte) func([]byte) E.Either[error, []byte], pubKey func([]byte) E.Either[error, []byte], ) func([]byte) func(RawMap) E.Either[error, RawMap]
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 - enc encrypts a piece of data - signer signs a piece of data - pubKey extracts the public key from the private key
Types ¶
Click to show internal directories.
Click to hide internal directories.