Add chat session

This commit is contained in:
Tnze
2023-01-01 13:17:07 +08:00
parent 77857a1a85
commit fa83b762bf
15 changed files with 244 additions and 25 deletions

View File

@ -24,6 +24,13 @@ import (
"github.com/Tnze/go-mc/yggdrasil/user"
)
// Deprecated: Moved to go-mc/yggdrasil/user, because go-mc/bot also needs them
type (
Texture = user.Texture
Property = user.Property
PublicKey = user.PublicKey
)
const verifyTokenLen = 16
// Encrypt a connection, with authentication
@ -173,11 +180,6 @@ func twosComplement(p []byte) []byte {
return p
}
type (
Texture = user.Texture
Property = user.Property
)
// Resp is the response of authentication
type Resp struct {
Name string