Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #31333

Closed (moved)
(moved)
Open
Created Aug 05, 2019 by cypherpunks@cypherpunks

reduce fingerprints len by 32.5% to reduce descriptors size

I have read proposals to reduce descriptor size and found fingerprints use SHA1, why not use base64 for them to change for example: moria relay:

SHA1:

string(40) "9695DFC35FFEB861329B9F1AB04C46397020CE31"

base64 without trailing padding:

string(27) "lpXfw1/+uGEym58asExGOXAgzjE"

pseudocode for example:

substr(base64_encode(hex2bin('9695DFC35FFEB861329B9F1AB04C46397020CE31')),0,27)

results into 32.5% less fingerprints stringlen.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking