Coder Social home page Coder Social logo

sec's People

Contributors

abread avatar bsdinis avatar rageknify avatar

Watchers

 avatar  avatar

sec's Issues

Protect private keys with passphrase

Preferrably under some standard like PKCS#12/PKCS#11/PKCS#8, but if that's not possible, just use some key derivation function on the passphrase to compute a symmetric key to {en,de}crypt the private keys.

I think it would be best to define a second struct representing the private part of the keystore on-disk (with all the possibly encrypted shenanigans). This means pretty much everything apart from the keystore open/save calls stays the same.

MAKE SURE THE ENCRYPTION IS OPTIONAL we'll test it once to see if it works and pretty much never use it

server: Atomic writes to filesystem

Currently crashing mid-server::hdlt_store::HdltLocalStoreInner::save() means a potentially corrupted storage. We should write a new file, and then rename it to the storage path (which is atomic).

PoW-based DoS prevention for "expensive" calls

pretty much all calls are expensive rn (writes have I/O and block everything else, all reads go through all data)

We could just send an additional value x such that sha256(restofthemessage || hash) = d, where d has the last k bits equal to 0 (the bigger the k, the harder it is for the sender to compute x).

Server implementation

The server itself, with persistence and all that. Since we have no replication or anything like that, we can just plop all LocationProofs in a set/vec and query them as we see fit. Easy stuff.

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.