Giter VIP home page Giter VIP logo

Comments (3)

omershlo avatar omershlo commented on July 17, 2024

Private is a Struct part of the MasterKey Struct that represent the private fields of the master keys. We do not want to expose these fields outside of library that created them and therefore they are private.
We created a set of method calls to manipulate private fields in case some higher level code requires it. This is very specific set of methods (rotate, encrypt etc..) and this is the only API that higher level code can get to private fields where all operations are done locally - private fields remain private and unexposed.
Because the sensitivity of the Private Struct we made it private in KMS Master Key Struct by default, Until some good use case will show that it is needed outside KMS. In that case we decided to switch to pub the Private struct, same as we have done previously with Party2 MasterKey. The specific use case is following a test that show how to use kms. We feel the Private API in multi-party-ecdsa is secure and do not leak private data so we see no problem in switching to pub what should have been pub at the first place.

Having said that, Private is still serialisable which we will be able to eliminate once @gbenattar will solve the Gotham issue ZenGo-X/gotham-city#21

from kms-secp256k1.

omershlo avatar omershlo commented on July 17, 2024

To be accurate: Private is a Party1Private which is a public Struct in multi-party-ecdsa with private elements. private is a field of type Party1Private in KMS. Party1Private defines a set of methods to manipulate it securely and without exposing or leaking private data. private field was set up to be private by default until a use case showed it is needed for a consumer of KMS library.

from kms-secp256k1.

gbenattar avatar gbenattar commented on July 17, 2024

Pushed. Resolving.

from kms-secp256k1.

Related Issues (17)

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.