Dynamic QRCode

The dynamic qrcode is used to solve the problem of too much data in one picture

tp:multiFragment-version=1.0&protocol=TokenPocket&data={
	"content": "0000000000004454F5300000000008_32342342", //fragment
	"index": "5/7" //5 is the current fragment index, 7 is fragment amount
}

tp:multiFragment //action
content //fragment content + "_" + full data crc32
index 

How to use

Here is a demo to show how to use TokenPocket dynamic qrcode protocol to show data: aaaaabbbbbbbbbbbccccccccccccddddddddddddddeeeeeeeeeeeeeee

  • First split the full data to two parts : 1 aaaaabbbbbbbbbbbcccccccccccc 2 ddddddddddddddeeeeeeeeeeeeeee

  • Generate fragments with TokenPocket dynamic qrcode


tp:multiFragment-version=1.0&protocol=TokenPocket&data=
    { 
        "content": "aaaaabbbbbbbbbbbcccccccccccc_3207688794",
        "index": "0/2"
    }
tp:multiFragment-version=1.0&protocol=TokenPocket&data=
    { 
        "content": "aaaaabbbbbbbbbbbcccccccccccc_3207688794",
        "index": "1/2"
    } 
  • Generate picture with fragment data, and then get Gif or other video file with the all pictures

Normative References

https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-2020-005-ur.md

Last updated