| @@ -215,6 +215,13 @@ func timestampTooOld(ts int32) bool { | |||
| return diff > 180 //3 minutes, 180 seconds | |||
| } | |||
| func timestampOldThan(ts int32, sec int32) bool { | |||
| //diff > 3min from now | |||
| now := int32(time.Now().Unix()) | |||
| diff := now - ts | |||
| return diff > sec | |||
| } | |||
| // func checkSignature1() bool { | |||
| // s1 := "e39de9f2e28079c01ebb4b803dfc3442b819545c" | |||
| // t1 := "1492970761" | |||