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 cryptographic primitives used in StarkNet #27

Closed
tkstanczak opened this issue Jan 29, 2022 · 1 comment · Fixed by #102
Closed

Add cryptographic primitives used in StarkNet #27

tkstanczak opened this issue Jan 29, 2022 · 1 comment · Fixed by #102
Assignees
Labels
Core Features or changes related to core package Crypto Cryptographic primitives

Comments

@tkstanczak
Copy link
Member

tkstanczak commented Jan 29, 2022

https://starknet.io/documentation/transaction-structure-and-hash/

SIGNATURES
While StarkNet does not have a specific signature scheme built into the protocol, the Cairo language in which smart contracts are written does have an efficient implementation for ECDSA signature with respect to a STARK-friendly curve.

The STARK-friendly curve lives in F2p with p=2251 + 17 · 2192 + 1 , and is defined by:

y2= x3 + α · x + β

Where:

α= 1

β=3141592653589793238462643383279502884197169399375105820974944592307816406665
And the generator used in the ECDSA algorithm is G=gx, gy where:

gx=874739451078007766457464989774322083649278607533249481151382481072868806602
gy=152666792071518830868575557812948353041420400780739481342941381225525861407

For more details see our repo.

@tkstanczak tkstanczak added the Core Features or changes related to core package label Jan 29, 2022
@tshakalekholoane tshakalekholoane self-assigned this Mar 14, 2022
@tshakalekholoane tshakalekholoane added the Crypto Cryptographic primitives label Mar 14, 2022
@tshakalekholoane tshakalekholoane changed the title Add StarkWare friendly signatures Add cryptographic primitives used in StarkNet Mar 14, 2022
@tshakalekholoane
Copy link
Contributor

tshakalekholoane commented Mar 14, 2022

@tshakalekholoane tshakalekholoane linked a pull request Mar 15, 2022 that will close this issue
6 tasks
@tshakalekholoane tshakalekholoane added this to the Alpha Release milestone May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Features or changes related to core package Crypto Cryptographic primitives
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants