(keyDuration time.Duration)
| 846 | } |
| 847 | |
| 848 | func (k CryptoKey) ExpiresAt(keyDuration time.Duration) time.Time { |
| 849 | return k.StartsAt.Add(keyDuration).UTC() |
| 850 | } |
| 851 | |
| 852 | func (k CryptoKey) DecodeString() ([]byte, error) { |
| 853 | return hex.DecodeString(k.Secret.String) |