Cleanup; Implement .Wrap()

This commit is contained in:
Jae Kwon
2017-04-09 00:32:54 -07:00
committed by Ethan Frey
parent eb6fcef8d2
commit a3324cc97b
7 changed files with 187 additions and 239 deletions

View File

@ -69,12 +69,12 @@ func TestKeyEncodings(t *testing.T) {
keyName string
}{
{
privKey: WrapPrivKey(GenPrivKeyEd25519()),
privKey: GenPrivKeyEd25519().Wrap(),
keyType: TypeEd25519,
keyName: NameEd25519,
},
{
privKey: WrapPrivKey(GenPrivKeySecp256k1()),
privKey: GenPrivKeySecp256k1().Wrap(),
keyType: TypeSecp256k1,
keyName: NameSecp256k1,
},