status-go/cmd/topics/main.go

18 lines
315 B
Go
Raw Permalink Normal View History

package main
import (
"encoding/hex"
"fmt"
"github.com/status-im/status-go/protocol/transport"
)
func main() {
for i := 0; i < 5001; i++ {
topic := fmt.Sprintf("contact-discovery-%d", i)
topicBytes := "0x" + hex.EncodeToString(transport.ToTopic(topic))
fmt.Printf("%s - %s\n", topic, topicBytes)
}
}