Added missing test for private key based32 encoding

general cleanup of based32 stuff, emphasising baseD to distinguish it
from the default
This commit is contained in:
херетик
2023-05-29 08:28:07 +01:00
parent 8a24f9ba30
commit c2e77ccf50
14 changed files with 64 additions and 46 deletions

View File

@@ -26,7 +26,7 @@ func GetBlock(from *crypto.Prv, to *crypto.Pub, note string) (block cipher.Block
secret := crypto.ComputeSharedSecret(from, to)
// fb := from.ToBytes()
// log.T.Ln(note, "secret", color.Red.Sprint(enc(secret[:])[:52]), "<-",
// color.Blue.Sprint(enc(fb[:])[:52]), "+", to.ToBase32())
// color.Blue.Sprint(enc(fb[:])[:52]), "+", to.ToBased32())
block, _ = aes.NewCipher(secret[:])
return
}