session에 AccountToSessionKey함수 추가

This commit is contained in:
2024-06-17 11:44:27 +09:00
parent b549ad06d5
commit 324a7225ec

View File

@ -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))