Code Monkey home page Code Monkey logo

codigo-network's Introduction

Hi, I'm Sotiris ๐Ÿ‘‹

I like solving problems using technology and code. I currently work at Reddit on their cloud infrastructure team

Before Reddit I was Software engineer at Microsoft in the Azure Core OS team. At Microsoft I worked on building the first cross-platform service mesh implementation which I co-presented on KubeCon2021. At that time I was a maintainer of Envoy Proxy and a contributor at OSM.

If you built something using Envoy on Windows, please reach out! I would love to learn more about it.

My DMs are open on Twitter. I am also experimenting with open office hours (calendly link at sotiris.dev). Let me know how I can help you!

Unless there is a CLA, code here is my own and probably buggy, so take it as it is.

codigo-network's People

Contributors

davinci26 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Forkers

zerosum24

codigo-network's Issues

Generate Signatures with Web3py

A code snippet that does not work:

## Signature Testing ###
msg_hash = Web3.sha3(text= 'password')
private_key = b"\xb2\\}\xb3\x1f\xee\xd9\x12''\xbf\t9\xdcv\x9a\x96VK-\xe4\xc4rm\x03[6\xec\xf1\xe5\xb3d"
print(m_web3.eth.account)
attribDict = m_web3.eth.account.signHash(msg_hash, private_key = private_key)
attribDict = m_web3.eth.account.signHash(msg_hash)
msgHash = Web3.toHex(attribDict['messageHash'])
v = attribDict['v']
r =  Web3.toHex(attribDict['r'])
s =  Web3.toHex(attribDict['s'])
print(attribDict)

Need to fix that

Web of trust - Gas Cost

Make sure that the function that calculates costs 0 gas. In principle, it does not alter the state of the contract so it should be 0 cost.

My concern is that a struct(mapping) with a storage keyword is used. I am not sure if Solidity compilers /EVM are smart enough to understand that this is not altering the state.

Python Relative Imports

The relative imports for the unit tests are working but in a hacky way.
Hack:

import sys
sys.path.append("lib/")

Incorporate Multisig Accounts

Incorporate m-n multi-signatures during the signing process of the firmware. Multi-signature accounts can be implemented in the form of Ethereum smart-contracts using the multisig.sol.

Users would then have to trust the smart-contract providing the multi-signature instead of trusting individual developers. This could be used as safety measure agains compromised keys.

Out of Gas Attack - Design Issue

A user can create fake firmware and "Sybil Attack" the Firmware array with unuasable firmware thus making the system unusable.

Possible Solutions:

  • Require a moderately hard PoW to submit a firmware
  • Use some kind of caching to alleviate the system from holding duplicate files

Inspiration

Firmware Class IPFS Links

The firmware class does not calculate, the IPFS link of the file.
Instead, it assigns with value "Not Implemented"

Contract Compilation (Bug/Optimisation)

Avoid compiling the contract if you are merely using it and not deploying it.
For an embedded device running the User-client, there is no need to compile the contract, all we need is to load the contract ABI.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.