func (r RegisterDelegationProof) Clone() (*RegisterDelegationProof, error) {
	return NewRegisterDelegationProof(r.ID, r.Controller, r.Proof, r.Revoked)
}
Clone clone a RegisterDelegationProof
package register
import (
	"fmt"
	"github.com/Iotic-Labs/iotics-identity-go/pkg/proof"
	"github.com/Iotic-Labs/iotics-identity-go/pkg/validation"
)
func NewRegisterDelegationProof(name string, controller string, proof string, revoked bool) (*RegisterDelegationProof, error) {
	if err := validation.ValidateKeyName(name); err != nil {
		return nil, err
	}
	result := &RegisterDelegationProof{
		ID:         name,
		Controller: controller,
		Proof:      proof,
		Revoked:    revoked,
	}
	return result, nil
}