Skip to content
Snippets Groups Projects
Commit f6b73293 authored by Benjamin Bollen's avatar Benjamin Bollen
Browse files

remove ErisSigner struct

parent b4fdae11
No related branches found
No related tags found
Loading
......@@ -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)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment