Archived
1
0

more stuff see if it works idklol

This commit is contained in:
Jeff Becker 2017-08-25 10:28:47 -04:00
parent 838f2b8ca7
commit c6a79b8893
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -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])