neodyme-labs / solana-security-txt

security.txt for Solana Contracts
Apache License 2.0
219 stars 70 forks source link

C support #1

Open riptl opened 2 years ago

riptl commented 2 years ago

It would be good to add support for the Solana C SDK

tlambertz commented 2 years ago

Agreed. Should be fairly simple to do. Out of interest, are you aware of any larger contracts except for Pyth that are written in C? It seems of the currently ~2.5k deployed contracts, only 64 are written in C. (found via ELF contains llvm-project.git)

riptl commented 2 years ago

I am not aware of any other C contracts. Pyth is the only smart contract I've seriously worked with, so my view is very limited.

mryalamanchi commented 2 years ago

It should be possible using the attribute((section(".security.txt"))) to acheive that at code level it self!

mryalamanchi commented 2 years ago

Agreed. Should be fairly simple to do. Out of interest, are you aware of any larger contracts except for Pyth that are written in C? It seems of the currently ~2.5k deployed contracts, only 64 are written in C. (found via ELF contains llvm-project.git)

Primary choice still remains rust till date, except pyth ofcourse!

MrG9090 commented 4 months ago

Agreed. Should be fairly simple to do. Out of interest, are you aware of any larger contracts except for Pyth that are written in C? It seems of the currently ~2.5k deployed contracts, only 64 are written in C. (found via ELF contains llvm-project.git)

https://github.com/neodyme-labs/solana-security-txt/issues/1#issue-1167530593

MrG9090 commented 4 months ago

B

JanKortes212 commented 3 months ago

hi