Skip to content

[WIP] My first batch of TreasureMaps con KFrags#2530

Closed
cygnusv wants to merge 26 commits intonucypher:mainfrom
cygnusv:chili-con-carne
Closed

[WIP] My first batch of TreasureMaps con KFrags#2530
cygnusv wants to merge 26 commits intonucypher:mainfrom
cygnusv:chili-con-carne

Conversation

@cygnusv
Copy link
Copy Markdown
Member

@cygnusv cygnusv commented Jan 18, 2021

Closed in favor of #2687.

This PR is mainly intended as an approximation of how to introduce "TreasureMaps con KFrags"

Issues to address here:

Other issues that can potentially fit here:

public_signature: Signature = None,
hrac: Optional[bytes] = None) -> None:
hrac: Optional[bytes] = None,
version: bytes = None) -> None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In what cases would we want to specify the version externally? A version determines how an object is serialized to bytes, which is hardcoded into the class definition.


class TreasureMap:
ID_LENGTH = 32
version = bytes.fromhex("42") # FIXME: This is a placeholder versioning, while we devise a better data serialization format
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does that mean we're going the way of having versioned classes instead of a versioned protocol? I guess it provides more flexibility, but there might be problems with processing nested classes, each with its own version.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As hinted in the comment, this is just a temporary scheme to facilitate some versioning, reusing the existing serialization approach; it's not intended to be definitive.

return Response(b"This will eventually be an actual acceptance of the arrangement.", headers=headers)

@rest_app.route("/kFrag/<id_as_hex>", methods=['POST'])
def set_policy(id_as_hex):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@KPrasch KPrasch mentioned this pull request Feb 5, 2021
8 tasks
@KPrasch KPrasch changed the title [Concept] My first batch of TreasureMaps con KFrags [WIP] My first batch of TreasureMaps con KFrags Mar 26, 2021
@KPrasch KPrasch force-pushed the chili-con-carne branch 3 times, most recently from ab76a30 to 94bbf53 Compare April 9, 2021 22:09
@KPrasch
Copy link
Copy Markdown
Member

KPrasch commented May 9, 2021

Replaced by #2687

@KPrasch KPrasch closed this May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants