Commit 5cc13f3c authored by suyanlong's avatar suyanlong

fixed bug for sign

parent 4f145d10
Pipeline #8333 canceled with stages
......@@ -24,7 +24,7 @@ type router struct {
portMap *port.PortMap
methodMap map[string]routeMethod
privateKey crypto.PrivateKey
hubPublicKey crypto.PublicKey
//hubPublicKey crypto.PublicKey
}
type routeMethod func([]string) []port.Port
......@@ -285,7 +285,7 @@ func (r *router) verify(ibtpx *pb.IBTPX) bool {
}
return false
}
return ibtpx.Verify(r.hubPublicKey.Verify)
return ibtpx.Verify(r.privateKey.PublicKey().Verify)
}
func (r *router) aggVerify(ibtpx *pb.IBTPX) bool {
......@@ -350,13 +350,6 @@ func (r *router) AsyncSend(id string, msg *pb.Message) error {
return errors.New("id error!")
}
func (r *router) InPut(ibtp *pb.IBTP) chan *pb.IBTP {
panic("implement me")
}
func (r *router) OutPut(ibtp *pb.IBTP) chan *pb.IBTP {
panic("implement me")
}
type RouteMethod interface {
Single([]string) []port.Port
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment