mirror of
https://github.com/nspcc-dev/neofs-sdk-go.git
synced 2026-03-01 04:29:18 +00:00
WalletConnect: Support versioned signature schemes #206
Labels
No labels
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U2
U2
U3
U4
blocked
bug
client
config
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
performance
pool
question
security
task
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-sdk-go#206
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cthulhu-rider on GitHub (Nov 9, 2023).
Context
NeoFS supports WalletConnect signature scheme implemented here. It was added almost 2y ago and follows algo from neon-js lib of those days
since then neon-js library has moved forward, and, starting from this, now it supports multiple signature versions
Proposal
version the signature scheme similarly to neon-js: add the version to the signature and use it during verification. Missing token will still be treated as legacy schema
@roman-khimov commented on GitHub (Nov 22, 2023):
signMessageNew()looks interesting, signing arbitrary data without any prefixes/suffixes.@roman-khimov commented on GitHub (Feb 9, 2024):
It still adds some salt though. And there is also
signMessageWithoutSaltprovided by DAPI that doesn't do that, but it adds prefix (010001f0).