Split a key in KeyJSON into algorithm and key ID
(keyIDWithAlgo string)
| 160 | |
| 161 | // Split a key in KeyJSON into algorithm and key ID |
| 162 | func (k *OneTimeKeys) Split(keyIDWithAlgo string) (algo string, keyID string) { |
| 163 | segments := strings.Split(keyIDWithAlgo, ":") |
| 164 | return segments[0], segments[1] |
| 165 | } |
| 166 | |
| 167 | // OneTimeKeysCount represents the counts of one-time keys for a single device |
| 168 | type OneTimeKeysCount struct { |
no outgoing calls
no test coverage detected