func (e *Engine) CloneMembership(ctx context.Context, encMec, mecNonce []byte, privKP *EncryptionKeyPair, encPubKey, targetPubKey []byte) ([]byte, []byte, error) {
	mek, err := e.Unbox(ctx, encMec, mecNonce, privKP, encPubKey)
	if err != nil {
		return nil, nil, err
	}

	return e.Box(ctx, mek, privKP, targetPubKey)
}
// CloneMembership decrypts the given KeyringMember object, and creates another
// for the targeted user.
CloneMembership decrypts the given KeyringMember object, and creates another
for the targeted user.
// CloneMembership decrypts the given KeyringMember object and creates another // for the targeted user .
func (e *Engine) CloneMembership(ctx context.Context, encMec, mecNonce []byte, privKP *EncryptionKeyPair, encPubKey, targetPubKey []byte) ([]byte, []byte, error) {
	mek, err := e.Unbox(ctx, encMec, mecNonce, privKP, encPubKey)
	if err != nil {
		return nil, nil, err
	}
	return e.Box(ctx, mek, privKP, targetPubKey)
}
func ( e * Engine ) CloneMembership ( ctx context . Context , encMec , mecNonce [ ] byte , privKP * EncryptionKeyPair , encPubKey , targetPubKey [ ] byte ) ( [ ] byte , [ ] byte , error ) { mek , err := e . Unbox ( ctx , encMec , mecNonce , privKP , encPubKey ) if err != nil { return nil , nil , err } return e . Box ( ctx , mek , privKP , targetPubKey ) }
CloneMembership decrypts the given KeyringMember object, and creates another
for the targeted user.
CloneMembership decrypts the given KeyringMember object and creates another for the targeted user .