Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Conversation

@zeroXbrock
Copy link
Member

add secp256k1 en/decrypt precompiles

📝 Summary

  • secp256k1Encrypt
  • secp256k1Decrypt

📚 References


  • I have seen and agree to CONTRIBUTING.md

Copy link
Member

@dmarzzz dmarzzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test case plzz

- name: value
type: bytes
description: "Randomly-generated bytes"
- name: secp256k1Encrypt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we create a generic encrypt/decrypt pair of precompiles and put both AES and this implementation there?

"strings"
"time"

"github.com/decred/dcrd/dcrec/secp256k1/v4"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we do this with the crypto libraries already in Geth?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants