diff --git a/erisdb/serve.go b/erisdb/serve.go index 8b84030dd23a3a1d89849b50ac32a5c5749e751c..859ed16fb18f1114ab29c97d573cf9ee67010f73 100644 --- a/erisdb/serve.go +++ b/erisdb/serve.go @@ -250,25 +250,3 @@ func LoadGenDoc() *stypes.GenesisDoc { } return stypes.GenesisDocFromJSON(jsonBlob) } - -type ErisSigner struct { - Host string - Address string - SessionKey string -} - -func NewErisSigner(host, address string) *ErisSigner { - if !strings.HasPrefix(host, "http://") { - host = fmt.Sprintf("http://%s", host) - } - return &ErisSigner{Host: host, Address: address} -} - -func (es *ErisSigner) Sign(msg []byte) acm.SignatureEd25519 { - msgHex := hex.EncodeToString(msg) - sig, err := core.Sign(msgHex, es.Address, es.Host) - if err != nil { - panic(err) - } - return acm.SignatureEd25519(sig) -}