jorabin / derec-tests Goto Github PK
View Code? Open in Web Editor NEWPrototype of DeRec-as-a-Service, Tests of Shamir Secret Sharing, AES-GCM and similar
License: Apache License 2.0
Prototype of DeRec-as-a-Service, Tests of Shamir Secret Sharing, AES-GCM and similar
License: Apache License 2.0
The notifications should be changed so that there is a parent interface DeRecStatusNotification
, and then each particular type of notification is an interface that extends the parent interface. The reason for this is that the current implementation with an enum is not extensible by implementations (because they can't add to an enum, but they could add more classes).
The parent should have a method getType
which returns an enum from {NORMAL, WARNING, ERROR}.
All of the methods that are currently in the interface are kept.
With the comment:
/**
* Information about a helper or sharer. This information is not tied to a specific secret.
*/
hence does not try to pair. Update documentation on other overloaded methods that make it clear that they do try to pair with the nominated helpers.
String Encoded PEM
The package org.derecalliance
should contain:
org.derecalliance.derec.interface
for API (the interface files)org.derecalliance.derec.protobuf
for Java files created from the protobuforg.derecalliance.derec.cryptography
for cryptography libraryThose files should all have their copyright assigned to the Alliance, once it exists officially.
Helper notifications:
Ideally we want to know:
In DeRecStatusNotification, we should add notifications for when a helper is available/not available, and a helper is healthy/not healthy.
Pairing notifications:
Recovery notifications:
The API should have a notification registration, where the app passes a lambda that takes one parameter: the notification. The comments should say that this might throw a UnsupportedOperationException
if the library implemented some other form of message passing.
this is potentially best expressed as crating a new Version, where it's the version that has the description rather than the secret.
and make it an interface
Make the secretId
a byte array rather than a UUID class. There should be a comment that says it must be 1 to 16 bytes in length, and must be unique among all secrets for a given sharer.
to describe the success of the last update to the secret
this would be removeHelpersAsync()
and closeAsync()
Use creative powers to come up with a name that describes the role of the class as being "the representation at the sharer of a helper".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.