func NewRDHDialog(bankID domain.BankID, hbciURL string, clientID string, hbciVersion segment.HBCIVersion) Dialog {
	key, err := domain.GenerateSigningKey()
	if err != nil {
		panic(err)
	}
	signingKey := domain.NewRSAKey(key, domain.NewInitialKeyName(bankID.CountryCode, bankID.ID, clientID, "S"))
	provider := message.NewRDHSignatureProvider(signingKey, 12345)
	d := &rdhDialog{
		dialog: newDialog(bankID, hbciURL, clientID, hbciVersion, provider, nil),
	}
	return d
}
// NewRDHDialog creates a dialog to use with cardreader flow
NewRDHDialog creates a dialog to use with cardreader flow
// NewRDHDialog creates a dialog to use with cardreader flow
func NewRDHDialog(bankID domain.BankID, hbciURL string, clientID string, hbciVersion segment.HBCIVersion) Dialog {
	key, err := domain.GenerateSigningKey()
	if err != nil {
		panic(err)
	}
	signingKey := domain.NewRSAKey(key, domain.NewInitialKeyName(bankID.CountryCode, bankID.ID, clientID, "S"))
	provider := message.NewRDHSignatureProvider(signingKey, 12345)
	d := &rdhDialog{
		dialog: newDialog(bankID, hbciURL, clientID, hbciVersion, provider, nil),
	}
	return d
}
func NewRDHDialog ( bankID domain . BankID , hbciURL string , clientID string , hbciVersion segment . HBCIVersion ) Dialog { key , err := domain . GenerateSigningKey ( ) if err != nil { panic ( err ) } signingKey := domain . NewRSAKey ( key , domain . NewInitialKeyName ( bankID . CountryCode , bankID . ID , clientID , " " ) ) provider := message . NewRDHSignatureProvider ( signingKey , 12345 ) d := & rdhDialog { dialog : newDialog ( bankID , hbciURL , clientID , hbciVersion , provider , nil ) , } return d }
NewRDHDialog creates a dialog to use with cardreader flow
NewRDHDialog creates a dialog to use with cardreader flow