MCPcopy Create free account
hub / github.com/daodst/chat / Split

Method Split

keyserver/api/api.go:162–165  ·  view source on GitHub ↗

Split a key in KeyJSON into algorithm and key ID

(keyIDWithAlgo string)

Source from the content-addressed store, hash-verified

160
161// Split a key in KeyJSON into algorithm and key ID
162func (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
168type OneTimeKeysCount struct {

Callers 15

InsertOneTimeKeysMethod · 0.80
InsertOneTimeKeysMethod · 0.80
sanityCheckKeyFunction · 0.80
InsertPreviousEventMethod · 0.80
UnmarshalJSONMethod · 0.80
UnmarshalJSONMethod · 0.80
RequestTurnServerFunction · 0.80
AddTmpAuthInfoFunction · 0.80
callerPrettyfierFunction · 0.80
MakeExternalAPIFunction · 0.80
patternMatchesFunction · 0.80

Implementers 2

oneTimeKeysStatementskeyserver/storage/postgres/one_time_ke
oneTimeKeysStatementskeyserver/storage/sqlite3/one_time_key

Calls

no outgoing calls

Tested by

no test coverage detected