Scality sproxyd Key Format¶
Scality sproxyd key format (160 bits)¶
Size |
Description |
---|---|
152 bits |
Entropy |
4 bits |
Class |
4 bits |
Replica |
“Entropy” Component¶
Definition of entropy component of Scality’s Universal Key Scheme (UKS):
Size |
Description |
---|---|
24 bits |
Dispersion (important) |
64 bits |
Object ID |
32 bits |
Volume ID |
8 bits |
Service ID (important) |
24 bits |
App-specific |
So if we use 128 bit MD5 of the GUID as our unique key, this means we can do:
Size |
Description |
---|---|
120 bits |
MD5 part prefix ( |
8 bits |
Service ID = |
8 bits |
MD5 part suffix |
8 bits |
Object type (see below) |
8 bits |
Unused ( |
4 bits |
Class ID (configurable) |
4 bits |
Replica ID ( |
Where “object type” is:
Internal Type |
Value |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For listing index objects, these can be helpful masks:
Internal Type |
Value |
---|---|
|
|
|
|
|
|
Script¶
The scality-keys.pl
script installed with the obox package takes a 160bit
hex-encoded sproxyd Scality ID as input and outputs the object type.