Giter Site home page Giter Site logo

eth-keystore-rs's People

Contributors

agostbiro avatar elpiel avatar lightclient avatar prestwich avatar roynalnaruto avatar tarcieri avatar tmpfs avatar zmanian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

eth-keystore-rs's Issues

Fine grained control of file names when writing keystore files

Currently files are written by convention using the UUID as the file name but I would prefer to follow the newer convention that geth uses which is UTC date concatenated with the public address of the key.

Also I have a use case for the keystore where I am storing other private secrets (for TOTP authentication) which I would like to write using a fixed file name, eg: totp.json.

If I do the work to allow callers to set the file name will you be willing to land the changes?

Thanks ๐Ÿ™

feature request: add non standard `address` field to `EthKeyStore`

While it is not defined as part of the spec and could be interpreted as bad for privacy, geth serializes the address that corresponds to the key as part of the keystore JSON. What do you think about adding an Option<[u8; 20]> or Option<String> that represents the address field to the EthKeyStore?

Example of a key created by geth:

{
  "address": "00000398232e2064f896018496b4b44b3d62751f",
  "crypto": {
    "cipher": "aes-128-ctr",
    "ciphertext": "4f784cd629a7caf34b488e36fb96aad8a8f943a6ce31c7deab950c5e3a5b1c43",
    "cipherparams": {
      "iv": "76f07196b3c94f25b8f34d869493f640"
    },
    "kdf": "scrypt",
    "kdfparams": {
      "dklen": 32,
      "n": 262144,
      "p": 1,
      "r": 8,
      "salt": "1e7be4ce8351dd1710b0885438414b1748a81f1af510eda11e4d1f99c8d43975"
    },
    "mac": "5b5433575a2418c1c813337a88b4099baa2f534e5dabeba86979d538c1f594d8"
  },
  "id": "6c4485f3-3cc0-4081-848e-8bf489f2c262",
  "version": 3
}

Relevant struct in geth: https://github.com/ethereum/go-ethereum/blob/fb3a6528cfa49f623570575c4fe9e8a716cfcdf7/accounts/keystore/key.go#L67

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.