mirror of
https://github.com/luxfi/threshold.git
synced 2026-10-30 15:15:53 +00:00
19 lines
402 B
Go
19 lines
402 B
Go
package test
|
|
|
|
import (
|
|
"github.com/luxfi/threshold/pkg/party"
|
|
)
|
|
|
|
// PartyIDs returns a party.IDSlice (sorted) with IDs represented as simple strings.
|
|
func PartyIDs(n int) party.IDSlice {
|
|
baseString := ""
|
|
ids := make(party.IDSlice, n)
|
|
for i := range ids {
|
|
if i%26 == 0 && i > 0 {
|
|
baseString += "a"
|
|
}
|
|
ids[i] = party.ID(baseString + string('a'+rune(i%26)))
|
|
}
|
|
return party.NewIDSlice(ids)
|
|
}
|