From 324a7225ecf1058921f3353387d72d9fea35d797 Mon Sep 17 00:00:00 2001 From: mountain Date: Mon, 17 Jun 2024 11:44:27 +0900 Subject: [PATCH] =?UTF-8?q?session=EC=97=90=20AccountToSessionKey=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- session/common.go | 4 ++++ 1 file changed, 4 insertions(+) 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))