refactor: credentials

This commit is contained in:
Richard Ramos
2023-04-11 10:39:07 -04:00
committed by RichΛrd
parent 04c90657cd
commit 42c0e123d9
13 changed files with 487 additions and 224 deletions
-8
View File
@@ -125,14 +125,6 @@ func execute(options Options) {
return
}
if options.RLNRelay.Enable && options.RLNRelay.Dynamic {
err := node.WriteRLNMembershipCredentialsToFile(wakuNode.RLNRelay().MembershipKeyPair(), wakuNode.RLNRelay().MembershipIndex(), wakuNode.RLNRelay().MembershipContractAddress(), options.RLNRelay.CredentialsPath, []byte(options.RLNRelay.CredentialsPassword))
if err != nil {
fmt.Println(err.Error())
return
}
}
chat := NewChat(ctx, wakuNode, options)
p := tea.NewProgram(chat.ui)
if err := p.Start(); err != nil {