func MarshalPrivateKey(k PrivKey) ([]byte, error) {
	pbmes := new(pb.PrivateKey)
	pbmes.Type = k.Type()
	data, err := k.Raw()
	if err != nil {
		return nil, err
	}

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

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