Checked in .gitignore

This commit is contained in:
John Newby 2019-08-01 16:14:09 +02:00
parent fba521eef5
commit eaa91a0a1f
2 changed files with 6 additions and 2 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
/target
**/*.rs.bk
Cargo.lock
**/*~

View File

@ -11,7 +11,8 @@ unsigned char *hex2bin(const char*);
#define OUTPUT_LENGTH 32
int main(int arc, char **argv) {
int main(int arc, char **argv)
{
// copied from Ethereum tests
unsigned char *input = hex2bin("47173285a8d7341e5e972fc677286384f802f8ef42a5ec5f03bbfa254cb01fad000000000000000000000000000000000000000000000000000000000000001b650acf9d3f5f0a2c799776a1254355d5f4061762a237396a99a0e0e3fc2bcd6729514a0dacb2e623ac4abd157cb18163ff942280db4d5caad66ddf941ba12e03");
unsigned char *expected = "000000000000000000000000c08b5542d177ac6686946920409741463a15dddb";
@ -21,7 +22,6 @@ int main(int arc, char **argv) {
printf("Test passed\n");
}
char *bin2hex(unsigned char *p, int len)
{
char *hex = malloc(((2*len) + 1));