func MarshalPublicKey(k PubKey) ([]byte, error) {
	pbmes := new(pb.PublicKey)
	pbmes.Type = k.Type()
	data, err := k.Raw()
	if err != nil {
		return nil, err
	}
	pbmes.Data = data

	return proto.Marshal(pbmes)
}
func MarshalPublicKey(k PubKey) ([]byte, error) {
	pbmes := new(pb.PublicKey)
	pbmes.Type = k.Type()
	data, err := k.Raw()
	if err != nil {
		return nil, err
	}
	pbmes.Data = data

	return proto.Marshal(pbmes)
}
func MarshalPublicKey ( k PubKey ) ( [ ] byte , error ) { pbmes := new ( pb . PublicKey ) pbmes . Type = k . Type ( ) data , err := k . Raw ( ) if err != nil { return nil , err } pbmes . Data = data return proto . Marshal ( pbmes ) }
// MarshalPublicKey converts a public key object into a protobuf serialized
// public key
MarshalPublicKey converts a public key object into a protobuf serialized public key