gritzko / ron

(dated, see the site) Replicated Object Notation, a distributed live data format, golang/ragel lib
http://replicated.cc
Apache License 2.0
360 stars 7 forks source link

GUID test data ? #41

Open Annakan opened 5 years ago

Annakan commented 5 years ago

Hello I am trying to implement / explore ron concepts in python. I am trying first to properly decipher UUIDs and then atoms and frames .

There seem to be very little complete real examples of UUIDs beside a few ones in the doc that are useful but not practical and the two in uuid_test ( "1": NewRonUUID(UUID_NAME, UUID_NAME_TRANSCENDENT, 1<<54, 0), "1/978$1400075997": NewRonUUID(UUID_NAME, UUID_NAME_ISBN, 164135095794401280, 19140298535113287),

(I say not practical because in "1cDKT+joe" the "joe" value is chosen to be human readable in the doc and happens to be valid as a "ron special alphabet base64"encoded, but can't be really used for testing since if this is the encoded uuid it means the decoded "joe" value is some other sequence of bytes.)

Would someone be nice enough to generate one or two dozens UUIDs of the 4 kinds with their human and binary layouts ?

That would be very useful to make sure the encoding / decoding algorithm is properly implemented something like

Name : "mouse$joe" => 1110111011 ... 1111 => hex(AF9DEF) number : A/k3R9w_2F8w%Le~6dDScsw =>

Maybe I missed a place where genuine ron formatted uuid are exposed and decoded ? (I have found the "swarm" page here https://github.com/gritzko/swarm-ron-docs/blob/master/test/peer-basic.batt and also https://github.com/gritzko/swarm-ron-docs/tree/2 and a few others)

Thanks a lot for your time.