Update go-data, test embedding strategies

This commit is contained in:
Ethan Frey
2017-03-21 21:13:50 +01:00
parent 49569ac244
commit 750b25c47a
4 changed files with 132 additions and 6 deletions

View File

@ -22,8 +22,8 @@ var sigMapper data.Mapper
// register both public key types with go-data (and thus go-wire)
func init() {
sigMapper = data.NewMapper(SignatureS{}).
RegisterInterface(SignatureEd25519{}, NameEd25519, TypeEd25519).
RegisterInterface(SignatureSecp256k1{}, NameSecp256k1, TypeSecp256k1)
RegisterImplementation(SignatureEd25519{}, NameEd25519, TypeEd25519).
RegisterImplementation(SignatureSecp256k1{}, NameSecp256k1, TypeSecp256k1)
}
// SignatureS add json serialization to Signature