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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user