decentralized-identity / sidetree

Sidetree Specification and Reference Implementation
https://identity.foundation/sidetree/spec
Apache License 2.0
438 stars 112 forks source link

SIP 2 - Eliminate Base64URL Storage Bloat #781

Closed OR13 closed 4 years ago

OR13 commented 4 years ago
  SIP: 2
  Upgrade-Type: Hard Fork (to guarantee outcomes)
  Title: Eliminate Base64URL Storage Bloat
  Author: Orie Steele <orie@transmute.industries>
  Comments-Summary: No comments yet.
  Comments-URI: https://github.com/decentralized-identity/sidetree/sips/2.md
  Status: Draft
  Created: 2020-06-30

Summary

Base64URL is used throughout sidetree, in many cases, as a substitute for canonicalization...

Motivation

"Although Base64 is a relatively efficient way of encoding binary data it will, on average still increase the file size for more than 25%."

Requirements

Data structure file size should be minimized.

Technical Proposal

Replace Base64URL with JCS.

OR13 commented 4 years ago

Granted, I wrote these tests in 10 minutes... https://github.com/OR13/jcs-vs-base64url

I welcome a counter proposal on the performance / storage side of this debate.

thehenrytsai commented 4 years ago

Done.