refactor: get rid of const.go
This commit is contained in:
1 parent
f3f23b43b5
commit
d3d2863d52
3 files changed
+15
-21
No files matched your search
@@ -13,6 +13,8 @@ import (
|
||||
"golang.org/x/crypto/nacl/secretbox"
|
||||
)
|
||||
|
||||
const MaxTCPMsgSize = 10 * 1024 * 1024
|
||||
|
||||
func GenerateKeyPair() (publicKey, privateKey *[32]byte, err error) {
|
||||
return box.GenerateKey(rand.Reader)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user