func UnmarshalEd25519PublicKey(data []byte) (PubKey, error) {
	if len(data) != 32 {
		return nil, errors.New("expect ed25519 public key data size to be 32")
	}

	return &Ed25519PublicKey{
		k: ed25519.PublicKey(data),
	}, nil
}
func UnmarshalEd25519PublicKey(data []byte) (PubKey, error) {
	if len(data) != 32 {
		return nil, errors.New("expect ed25519 public key data size to be 32")
	}

	return &Ed25519PublicKey{
		k: ed25519.PublicKey(data),
	}, nil
}
func UnmarshalEd25519PublicKey ( data [ ] byte ) ( PubKey , error ) { if len ( data ) != 32 { return nil , errors . New ( " " ) } return & Ed25519PublicKey { k : ed25519 . PublicKey ( data ) , } , nil }
// UnmarshalEd25519PublicKey returns a public key from input bytes.
UnmarshalEd25519PublicKey returns a public key from input bytes .