Exemplo n.º 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
}
Exemplo n.º 2
0
// NewLocalClient takes a LocalTest in order
func NewLocalClient(local *onet.LocalTest) *Client {
	return &Client{Client: local.NewClient("Skipchain")}
}
Exemplo n.º 3
0
func NewTestClient(l *onet.LocalTest) *Client {
	return &Client{Client: l.NewClient(ServiceName)}
}
Exemplo n.º 4
0
// Makes a Host, an Roster, and a service
func makeHELS(local *onet.LocalTest, nbr int) ([]*onet.Conode, *onet.Roster, *Service) {
	hosts := local.GenConodes(nbr)
	el := local.GenRosterFromHost(hosts...)
	return hosts, el, local.Services[hosts[0].ServerIdentity.ID][skipchainSID].(*Service)
}
Exemplo n.º 5
0
func NewTestClient(l *onet.LocalTest) *Client {
	c := NewClient()
	c.Client = l.NewClient("Skipchain")
	return c
}