We need to generate test data for our crypto library to make it easier for others to create third party implementations. The data should be in one or more JSON files (similar to existing Ethereum tests).
The functions we need to provide test inputs for are:
Inputs and outputs should be hex encoded. In particular EpochIDs should be byte strings that first have to be run through ComputeEpochID.
Instead of generating the data manually, it is probably easier to write a simple generator executable. It could be a standalone program or a subcommand under rolling-shutter.
We need to generate test data for our crypto library to make it easier for others to create third party implementations. The data should be in one or more JSON files (similar to existing Ethereum tests).
The functions we need to provide test inputs for are:
func Encrypt(message []byte, eonPublicKey *EonPublicKey, epochID *EpochID, sigma Block) *EncryptedMessagefunc (m *EncryptedMessage) Decrypt(epochSecretKey *EpochSecretKey) ([]byte, error)func VerifyEpochSecretKey(epochSecretKey *EpochSecretKey, eonPublicKey *EonPublicKey, epochIDBytes []byte) (bool, error)Inputs and outputs should be hex encoded. In particular
EpochIDsshould be byte strings that first have to be run throughComputeEpochID.Instead of generating the data manually, it is probably easier to write a simple generator executable. It could be a standalone program or a subcommand under
rolling-shutter.