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

BIP-340 Taproot signature #274

Open
6 tasks
MSghais opened this issue Nov 21, 2024 · 20 comments
Open
6 tasks

BIP-340 Taproot signature #274

MSghais opened this issue Nov 21, 2024 · 20 comments
Labels
cairo Cairo smart contract complex hardcore beast mode Complex hardcore beast mode features Build new features help wanted Extra attention is needed ODBoost ODBoost onchain Cairo & Solidity smart contracts question Further information is requested test Testing for developers and contributors/users

Comments

@MSghais
Copy link
Member

MSghais commented Nov 21, 2024

Description

Create a Nostr private key and public key BIP-340 Taproot compatible.
Encrypt data in a contract?

Idea, research need to be done on it.

Not sure if it's possible but look cool:

  • [] Linked smart contract to link starknet account to a nostr private key
  • Maybe create an AA account of Nostr managed by the Starknet account or a Nameservice.
  • - Generate a private key for BIP-340
  • - encrypt it for a starknet account in a smart contract or AA
  • can sign a Nostr event
  • pass recovery for Nostr
  • Tests
@MSghais MSghais added help wanted Extra attention is needed question Further information is requested features Build new features onchain Cairo & Solidity smart contracts test Testing for developers and contributors/users cairo Cairo smart contract ODHack10 ODHack10 issues complex hardcore beast mode Complex hardcore beast mode labels Nov 21, 2024
@guha-rahul
Copy link
Contributor

Hi , can i take this up? I have on project which implemented ECDSA signatures before but I need to learn about Nostr to work on this

@baitcode
Copy link

Would love to do the research and publish results as PR with code or README.md in case it is not possible to implement.

@bruhhgnik
Copy link

Can i work on this, i have worked on similar things before

@aniruddhaaps
Copy link

First I will add the ability to derive Taproot-compatible private and public keys, in BIP-340, to the system
Encrypt Private Key:
Take the public key of the Starknet account and use it to encrypt the BIP-340 private key. Securely store it within a smart contract or AA wallet
Link Nostr & Starknet:

Create a smart contract that links the Starknet account with the Nostr-derived private key, so Nostr can sign events via Starknet.
Research adding a name service for identity management.

Recovery Mechanism:
Design recovery flow allowing restoration of keys via Starknet, if possible.

Testing:
Test the generation of keys, encryption, and signature over Nostr events. For each contract function, write tests.

@Supa-mega
Copy link

Could I take over this issue?

@baitcode
Copy link

@MSghais Could you provide a bit more details?

  • What exactly are you trying to achieve? Please provide the description of functionality. For example: I want to be able to handle workflow triggered by something. The workflow will extract Nostr event, sign it on behalf of someone and submit somewhere. The scope of task Is very unclear atm.
  • You can definitely store mapping from Nostr address to Starknet address.
  • Encrypting Nostr secret key and storing it onchain does not sound like a good idea, and I belive it's against general security guidelines. If you can decrypt it then how user controls what you do with it? If only user can decrypt, why would they store it onchain?

@MSghais MSghais added ODHack11 ODHack 11 issues LFG and removed ODHack10 ODHack10 issues labels Dec 11, 2024
@Jagadeeshftw
Copy link

Hi,
I’d love to work on this issue as I have strong experience in developing secure and efficient smart contracts using Cairo and deploying them on StarkNet. Please assign this to me, and I’ll ensure to deliver a robust and high-quality PR within 12-24 hours.

@1nonlypiece
Copy link

Hi,
I’d like to work on this issue as I have experience with Cairo and building on StarkNet, including writing and optimizing smart contracts.

ETA:
I estimate completing this task in about 12-24 hours. Let me know if I can get started!

@greatest0falltime
Copy link

Hi,

I’d be thrilled to work on this issue as I have extensive experience with Cairo programming and building decentralized applications on StarkNet.

ETA:
I expect to have a working solution ready within the next 24 hours. Kindly let me know if I can proceed!

Looking forward to contributing!

@NwosuTy
Copy link

NwosuTy commented Dec 12, 2024

Hi

I'm not too familiar with Cairo syntax have very brief knowledge, but I've implemented multiple encryption functions and keys especially gaming and used for payment integration or personal details storage with C# and python, currently researching on Nostr and would like to give this a knack

@ShantelPeters
Copy link

Could I take on this issue?

@suhas-sensei
Copy link

I would like to give this a try, considering i have some experience in writing ECDSA signature on a repo previously, will try creating links b/w starknet and nostr key, unsure if i can pass all checkpoints but worth giving a try.

@DuendexCR
Copy link

I'd like to take this issue.

@Dorcas18
Copy link

Let me try this one!

@olisaagbafor
Copy link

May I take care of this?

@caxtonacollins
Copy link

I am a Full Stack Developer with two years of professional experience, specializing in web3. I have strong background in blockchain and extensive experience in Next.js/React, TypeScript, and Cairo.

I will like to take care of this. i will make more research and create a good PR within 48 hours.

@Amarjeet325
Copy link

Is it okay if I take this?

@jaiminRaiyani
Copy link
Contributor

Let me try this one!

@ekumamatthew
Copy link

Mind if I take this issue?

@MSghais MSghais added ODBoost ODBoost and removed ODHack11 ODHack 11 issues LFG labels Jan 21, 2025
@PoulavBhowmick03
Copy link
Contributor

I would love to work on this issue! I have implemented the VRF and would like to be assigned. I am a past contributor to AFK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cairo Cairo smart contract complex hardcore beast mode Complex hardcore beast mode features Build new features help wanted Extra attention is needed ODBoost ODBoost onchain Cairo & Solidity smart contracts question Further information is requested test Testing for developers and contributors/users
Projects
None yet
Development

No branches or pull requests