diff --git a/session/common.go b/session/common.go index dda2996..9a83327 100644 --- a/session/common.go +++ b/session/common.go @@ -74,6 +74,10 @@ func make_storagekey(acc primitive.ObjectID) storagekey { return storagekey(acc.Hex() + hex.EncodeToString(bs[2:])) } +func AccountToSessionKey(acc primitive.ObjectID) string { + return string(make_storagekey(acc)) +} + func storagekey_to_publickey(sk storagekey) publickey { bs, _ := hex.DecodeString(string(sk))