@chainfuse/helpers
v4.4.5
Published
[](https://securityscorecards.dev/viewer/?uri=github.com/ChainFuse/packages)[]
Downloads
2,738
Readme
@chainfuse/helpers
TODO: description
Usage
import helpers from '@chainfuse/helpers';
// TODO: DEMONSTRATE APISuruID
In Japanese, する (suru) is a versatile, irregular verb meaning "to do"
| Format | Example |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| hex | 101f3fffffc1800100000522706e3aa036a0ea9c0d7d27581ebf4876defd304469119f0f4cfc41b0fb96d6b1e18900ec |
| SQLite Blob | 1724325525525224016006934112110581605416023415613125398830191721182222534868105171591576252651762511502141772251370236 |
| JS Buffer Array | [17,243,255,255,252,24,0,16,0,0,69,34,112,110,58,160,54,160,234,156,13,125,39,88,30,191,72,118,222,253,48,68,105,17,159,15,76,252,65,176,251,150,214,177,225,137,0,236] |
| base64 | EfP///wYABAAAEUicG46oDag6pwNfSdYHr9Idt79MERpEZ8PTPxBsPuW1rHhiQDs |
| base64url | EfP___wYABAAAEUicG46oDag6pwNfSdYHr9Idt79MERpEZ8PTPxBsPuW1rHhiQDs |
Breakdown
| Offset (bits) | Size (bits) | Field | (Hex) Example | Notes |
| ------------- | ----------- | ------------- | ------------------------------------------------------------------ | ----------------------------------------------------------------------------- |
| 0 | 4 | Version | 1 | Standalone version field |
| 4 | 48 | Timestamp | 01f3fffffc18 | Full 48-bit epoch milliseconds (max date value +010889-08-02T05:31:50.655Z) |
| 52 | 12 | System Type | 001 | D0SystemType TS Enum |
| 64 | 12 | Location | 000 | D0CombinedLocations TS Enum |
| 76 | 8 | Shard Type | 00 | D0ShardType TS Enum |
| 84 | 40 | Suffix random | 522706e3aa | Fresh entropy per ID to ensure uniqueness even if other fields match |
| 124 | 4 | Environment | 0 | D0Environment TS Enum |
| 128 | 256 | Stable random | 36a0ea9c0d7d27581ebf4876defd304469119f0f4cfc41b0fb96d6b1e18900ec | Stable per logical entity; correlates related IDs without DB lookups |
| Total | 384 |
