-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/Panic in SessionCreate
#422
Conversation
c2328e4
to
13a08ff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw do u expect user.IDFromKey
to panic on nil signer? It can return an error
@cthulhu-rider, to be honest, I do not like getting a user from a signer at all cause signer must sign and it even can be not from our sdk at all. It is not smth unnatural to me when a |
The problem is key->ID mapping. It's tied to Neo's verification scripts and that can only have 256r1 keys. |
@roman-khimov, if key->ID relation is that strong, i would not get a user from a |
Then we have an option of adding
I do. |
Do not panic if signer was provided as a default one. Also, return `ErrMissingSigner` if no signer was provided at all. Signed-off-by: Pavel Karpy <carpawell@morphbits.io>
13a08ff
to
03d2250
Compare
I like it more. |
03d2250
to
98179fb
Compare
98179fb
to
ede1177
Compare
ede1177
to
75fd966
Compare
Also, drop unnecessary punctuation in docs. Signed-off-by: Pavel Karpy <carpawell@morphbits.io>
75fd966
to
2f14c29
Compare
Do not panic if signer was provided as a default one. Also, return
ErrMissingSigner
if no signer was provided at all.