(key []byte)
| 54 | } |
| 55 | |
| 56 | func decodeQueueTime(key []byte) (time.Time, error) { |
| 57 | if len(key) < 8 { |
| 58 | return time.Time{}, errorsmod.Wrap(moduletypes.ErrInvalidReason, "malformed verification queue key") |
| 59 | } |
| 60 | return time.Unix(0, int64(binary.BigEndian.Uint64(key[:8]))).UTC(), nil |
| 61 | } |
| 62 | |
| 63 | func decodeAttestationExpiryQueueKey(key []byte) (sdk.AccAddress, sdk.AccAddress, error) { |
| 64 | if len(key) < 10 || (len(key)-8)%2 != 0 { |