Skip to content
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

Add signature marshaling/unmarshaling functions #6

Open
roman-khimov opened this issue Feb 22, 2024 · 0 comments
Open

Add signature marshaling/unmarshaling functions #6

roman-khimov opened this issue Feb 22, 2024 · 0 comments
Labels
feature Completely new functionality I2 Regular impact S3 Minimally significant U3 Regular

Comments

@roman-khimov
Copy link
Member

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.

@roman-khimov roman-khimov added U3 Regular S3 Minimally significant I2 Regular impact feature Completely new functionality labels Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Completely new functionality I2 Regular impact S3 Minimally significant U3 Regular
Projects
None yet
Development

No branches or pull requests

1 participant