Add signature marshaling/unmarshaling functions #5

Open
opened 2025-12-28 18:14:19 +00:00 by sami · 0 comments
Owner

Originally created by @roman-khimov on GitHub (Feb 22, 2024).

I'm always frustrated when I have to do

r, s = rfc6979.SignECDSA(key, h[:], sha256.New)
var sig = make([]byte, 2*32)
r.FillBytes(sig[0 : 32])
s.FillBytes(sig[32:])

when using this package.

Describe the solution you'd like

Add function to marshal/unmarshal the sig.

Originally created by @roman-khimov on GitHub (Feb 22, 2024). ## Is your feature request related to a problem? Please describe. I'm always frustrated when I have to do ``` r, s = rfc6979.SignECDSA(key, h[:], sha256.New) var sig = make([]byte, 2*32) r.FillBytes(sig[0 : 32]) s.FillBytes(sig[32:]) ``` when using this package. ## Describe the solution you'd like Add function to marshal/unmarshal the sig.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/rfc6979#5
No description provided.