Beispiel #1
0
func NewTestIdentity(cothority *onet.Roster, majority int, owner string, local *onet.LocalTest) *Identity {
	id := NewIdentity(cothority, majority, owner)
	id.Client = local.NewClient(ServiceName)
	return id
}
Beispiel #2
0
func NewTestClient(l *onet.LocalTest) *Client {
	return &Client{Client: l.NewClient(ServiceName)}
}
Beispiel #3
0
// NewLocalClient takes a LocalTest in order
func NewLocalClient(local *onet.LocalTest) *Client {
	return &Client{Client: local.NewClient("Skipchain")}
}
Beispiel #4
0
func NewTestClient(l *onet.LocalTest) *Client {
	c := NewClient()
	c.Client = l.NewClient("Skipchain")
	return c
}