// UnmarshalPrivateKey unmarshals an PrivateKeyJSONData into an PrivateKeyInfoData.
UnmarshalPrivateKey unmarshals an PrivateKeyJSONData into an PrivateKeyInfoData.
// UnmarshalPrivateKey unmarshals an PrivateKeyJSONData into an PrivateKeyInfoData .
func UnmarshalPrivateKey(bytes []byte) (InfoData, error) {
	if bytes == nil {
		return nil, fmt.Errorf("no data given")
	}
	data := &PrivateKeyJSONData{}
	err := json.Unmarshal(bytes, data)
	if err != nil {
		return nil, err
	}
	return NewPrivateKeyInfoData(data.PrivateKey), nil
}
func UnmarshalPrivateKey ( bytes [ ] byte ) ( InfoData , error ) { if bytes == nil { return nil , fmt . Errorf ( " " ) } data := & PrivateKeyJSONData { } err := json . Unmarshal ( bytes , data ) if err != nil { return nil , err } return NewPrivateKeyInfoData ( data . PrivateKey ) , nil }
UnmarshalPrivateKey unmarshals an PrivateKeyJSONData into an PrivateKeyInfoData.
UnmarshalPrivateKey unmarshals an PrivateKeyJSONData into an PrivateKeyInfoData .