Documentation
¶
Index ¶
- Variables
- func CryptoTimeHash(data []byte, timestamp int64, key []byte) string
- func DataOfCryptoTimeHash(encoded string, key []byte) []byte
- func DataOfTimeHash(encoded string) []byte
- func FindDataOfTimeHash(encoded string, key []byte) []byte
- func TimeHash(data []byte, timestamp int64) string
- func TimestampOfTimeHash(encoded string) int64
- func ValidateTimeHash(encoded string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var CryptoTimeHashPadding = byte(0x59)
View Source
var TimeHashBase = []byte{75, 79, 78, 83, 73, 84, 69, 89}
Functions ¶
func DataOfCryptoTimeHash ¶
func DataOfTimeHash ¶
func FindDataOfTimeHash ¶
func TimeHash ¶
encode data with timestamp `data` can't be nil or empty slice, `timestamp` can't less than or equal to 0
func TimestampOfTimeHash ¶
func ValidateTimeHash ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.