Documentation ¶
Index ¶
- func IsLevelPackSigned(lp *levelpack.LevelPack) bool
- func IsLevelSigned(lvl *level.Level) bool
- func SignLevel(key *ecdsa.PrivateKey, lvl *level.Level) ([]byte, error)
- func SignLevelPack(key *ecdsa.PrivateKey, lp *levelpack.LevelPack) ([]byte, error)
- func StringifyAssets(lvl *level.Level) ([]byte, error)
- func StringifyLevelpackAssets(lp *levelpack.LevelPack) ([]byte, error)
- func VerifyLevel(publicKey *ecdsa.PublicKey, lvl *level.Level) bool
- func VerifyLevelPack(publicKey *ecdsa.PublicKey, lp *levelpack.LevelPack) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLevelPackSigned ¶
IsLevelPackSigned returns a quick answer.
func IsLevelSigned ¶
IsLevelSigned returns a quick answer.
func SignLevel ¶
SignLevel creates a signature on a level file which allows it to load its embedded doodads even for free versions of the game.
Free versions will verify a level's signature before bailing out with the "can't play levels w/ embedded doodads" response.
NOTE: this only supported Zipfile levels and will assume the level you pass has a Zipfile to access embedded assets.
func SignLevelPack ¶
SignLevelpack applies a signature to a levelpack as a whole, to allow its shared custom doodads to be loaded by its levels in free games.
func StringifyAssets ¶
StringifyAssets creates the signing checksum of a level's attached assets.
func StringifyLevelpackAssets ¶
StringifyLevelpackAssets creates the signing checksum of a level's attached assets.
func VerifyLevel ¶
VerifyLevel verifies a level's signature and returns if it is OK.
Types ¶
This section is empty.