attribution-reporting-api icon indicating copy to clipboard operation
attribution-reporting-api copied to clipboard

Aggregation Key bits order

Open Natalia-user opened this issue 10 months ago • 6 comments

Am i correct or no when assume that: source-side key piece bits in aggregation key is a 64 most significant bits in 128 bit integer but this integer is encoded as big-endian, so in byte string this bits will goes first, i.e. if we have, say, source part encoded in hex is: 0123456789ABCDEF trigger part encoded in hex is: 0000000000000000 so 128-bit integer representing the aggregation key will be: 0x0123456789ABCDEF0000000000000000 and the first bits of resulting bytes of the aggregation key will be: 0000 0001 0010 0011 ....

Natalia-user avatar Apr 18 '24 08:04 Natalia-user