session에 AccountToSessionKey함수 추가
This commit is contained in:
@ -74,6 +74,10 @@ func make_storagekey(acc primitive.ObjectID) storagekey {
|
|||||||
return storagekey(acc.Hex() + hex.EncodeToString(bs[2:]))
|
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 {
|
func storagekey_to_publickey(sk storagekey) publickey {
|
||||||
bs, _ := hex.DecodeString(string(sk))
|
bs, _ := hex.DecodeString(string(sk))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user