From c6a79b889340ddd177298fc6f7d11e03267cb196 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 25 Aug 2017 10:28:47 -0400 Subject: [PATCH] more stuff see if it works idklol --- contrib/backends/srndv2/src/srnd/util.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/backends/srndv2/src/srnd/util.go b/contrib/backends/srndv2/src/srnd/util.go index 06aa3e4..7a66a6e 100644 --- a/contrib/backends/srndv2/src/srnd/util.go +++ b/contrib/backends/srndv2/src/srnd/util.go @@ -415,6 +415,11 @@ func cryptoSignFucky(h, sk []byte) string { func seedToKeyPair(seed []byte) (pub ed25519.PublicKey, full ed25519.PrivateKey) { pub = make(ed25519.PublicKey, ed25519.PublicKeySize) full = make(ed25519.PrivateKey, ed25519.PrivateKeySize) + h := sha512.Sum512(seed) + seed = h[:] + seed[0] &= 248 + seed[31] &= 63 + seed[31] |= 64 var in [32]byte var out [32]byte copy(in[:], seed[0:32])