testing pubkeys
testing public keys
Fixed memory overlapping bug with strncpy()