Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServicesURL = "https://api.minecraftservices.com"
Functions ¶
func VerifySignature ¶
VerifySignature has the same functional as net.minecraft.world.entity.player.ProfilePublicKey.Data#validateSignature
Types ¶
type KeyPairResp ¶
type KeyPairResp struct { KeyPair struct { PrivateKey string `json:"privateKey"` PublicKey string `json:"publicKey"` } `json:"keyPair"` PublicKeySignature string `json:"publicKeySignature"` PublicKeySignatureV2 string `json:"publicKeySignatureV2"` ExpiresAt time.Time `json:"expiresAt"` RefreshedAfter time.Time `json:"refreshedAfter"` }
func GetOrFetchKeyPair ¶
func GetOrFetchKeyPair(accessToken string) (KeyPairResp, error)
type PublicKey ¶
func (*PublicKey) VerifyMessage ¶
Click to show internal directories.
Click to hide internal directories.