Skip to content

Commit 5e9fbb2

Browse files
authored
Merge pull request #23 from TerenceGe/master
sr25519-donna
2 parents 2be5870 + a3b0b77 commit 5e9fbb2

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

applications/sr25519_donna.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Open Grant Proposal
2+
3+
> This document is referenced in the terms and conditions and therefore needs to contain all the required information. Don't remove any of the mandatory parts presented in bold letters or as headlines! See the [Open Grants Program Process](https://github.com/w3f/Open-Grants-Program/blob/master/README_2.md) on how to submit a proposal.
4+
5+
* **Project:** sr25519-donna
6+
* **Proposer:** [terencege](https://github.com/TerenceGe)
7+
* **Payment Address:** 3CL4h6PDZRM8yWyqFyShJJdPdYVQWF7pQL
8+
9+
## Project Description :page_facing_up:
10+
11+
Please provide the following:
12+
* A brief description of the project.
13+
This is a pure C implementation of polkadot’s key derivation and signing algorithm. The goal is to fully compatible with the original rust version.
14+
15+
[schnorrkel](https://wiki.polkadot.network/docs/en/learn-cryptography) plays a key role in polkadot's ecosystem, but currently it only has rust implementation officially. Although rust is popular in blockchain industry, there are still large amount of projects (such as trezor and trust wallet) are using C/C++. Porting rust in some platform (such as ios) is not frictionless, also some embeded systems require extra effort to remove std of rust to reduce bundle size. There should be a C version that implements all the features the rust versions has, at the same time, more easier to integrat into existing (C/C++)project.
16+
17+
* An indication of why this project is good for the ecosystem.
18+
For those C/C++ projects in the industry, if they want to support polkadot, it's more convenient to use this library instead of the rust version.
19+
* An indication of why your team is interested in creating this project.
20+
When I'm buiding an native mobile wallet which will support polkadot, for some reasons, apple's infastructre dose not support rust very well, so I start to build the C version of the schnorrkel lib.
21+
22+
## Team :busts_in_silhouette:
23+
24+
* **Members: Terence Ge
25+
* **LinkedIn Profiles:** https://www.linkedin.com/in/terence-ge-4a146185/
26+
* **Code Repos:** https://github.com/TerenceGe/sr25519-donna
27+
* **Legal Structure:** Individual
28+
* **Team's Experience:** Working in blockchain industry since 2013, author of BitPortal wallet (https://bitportal.io/), former BTCC exchange engineer, have rich experence of buiding crypto currency exchange and wallet.
29+
* **Team's previous work links:** [cryptoolkit](https://github.com/TerenceGe/cryptoolkit), [bitportal-wallet](https://github.com/TerenceGe/bitportal-wallet)
30+
31+
## Development Roadmap :nut_and_bolt:
32+
33+
* **Total Estimated Duration:** 4 weeks
34+
* **Total Costs:** 0.6 BTC
35+
36+
### Milestone 1
37+
38+
* **Estimated Duration:** 2 weeks
39+
* **Costs:** 0.3 BTC
40+
41+
42+
| Number | Deliverable | Specification |
43+
| ------------- | ------------- | ------------- |
44+
| 1. | keypair creation | create keypair form seed |
45+
| 2. | keypair derivation | support soft/hard deriving keypair |
46+
| 3. | sign/verify message | support signing/verifing messages |
47+
| 4. | random number generator | provide default random number generator and allow users to use their custom version |
48+
| 5. | curve operation | take advantage of ed25519-donna's curve operations, support both 32bit and 64bit operations |
49+
| 6. | add documentation | add documentation of installing or integrating these features |
50+
51+
### Milestone 2
52+
53+
* **Estimated Duration:** 2 weeks
54+
* **Costs:** 0.3 BTC
55+
56+
57+
| Number | Deliverable | Specification |
58+
| ------------- | ------------- | ------------- |
59+
| 1. | vrf sign if less | support verifiable random function signing operation |
60+
| 2. | vrf verify | support verifiable random function verifing operation |
61+
| 3. | unit test | provide unit test for vrf siging and verifing |
62+
| 4. | add documentation | add documentation of installing or integrating vrf features |
63+
64+
## Additional Information :heavy_plus_sign:
65+
Any additional information that you think is relevant to this application that hasn't already been included.
66+
67+
Possible additional information to include:
68+
* What work has been done so far?
69+
There are some features already implemented, although need some improvement, you can check the repo here https://github.com/TerenceGe/sr25519-donna
70+
* Are there any other projects similar to yours? If so, how is your project different?
71+
Sr25519_port Implementation by usetech-llc - which only have the sign/verify features. https://github.com/usetech-llc/sr25519
72+
We will support all the features the rust version have, including HDKD, VRF and MulSig.

0 commit comments

Comments
 (0)