encryption + helpers + contact card compression + server routing start
This commit is contained in:
@ -23,6 +23,9 @@ func TestGetKey(t *testing.T) {
|
||||
// fmt.Println(key.Armor())
|
||||
Armpubkey, _ := key.GetArmoredPublicKey()
|
||||
pubkey := base64.StdEncoding.EncodeToString([]byte(Armpubkey))
|
||||
println(len([]byte(pubkey)))
|
||||
binpubkey, _ := key.GetPublicKey()
|
||||
println(len(binpubkey))
|
||||
assert.Equal(t, kp.Public, pubkey, "The two public keys should be the same.")
|
||||
//if kp.Public != pubkey {
|
||||
// log.Fatal("error in public key")
|
||||
|
Reference in New Issue
Block a user