unique-codes | Generate unique , random-looking codes
kandi X-RAY | unique-codes Summary
kandi X-RAY | unique-codes Summary
This package generates unique, random-looking codes. These codes can be used for vouchers, coupons, ... You can now generate thousands or millions of codes without having to check if a code has already been generated in the past.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Validate input input .
- Generate a random number .
- Constructs the code
- Encode a number .
- Sets the list of characters .
- Sets the delimiter .
- Set the crypto prime number
- Set maximum prime number
- Sets the suffix .
- Sets the prefix .
unique-codes Key Features
unique-codes Examples and Code Snippets
Community Discussions
Trending Discussions on unique-codes
QUESTION
I am using hyperledger fabric to be able to trace products to check its provenance within a supply chain. This project is meant for a lot of products, especially for longer periods of time.
I am having trouble figuring out what kind of identifiers to use for identifying a product which needs to be transacted in the blockchain. All the data will be stored within it forever.
According to a source (https://www.gs1ca.org/files/How_to_Create_a_GTIN.pdf) I can only make a max amount of 100.000 unique codes per company. After that I am geussing it needs to be reused. What are the identifiers I can use for basically an unlimitted amount of unique-codes within blockchain? Are there standards to handle this? Or should I identify my assets with two identifiers?
...ANSWER
Answered 2019-May-30 at 03:53In the event a company exhausts their 100,000 GTIN's they can apply for a second, or a third, or so on, GS1 Prefix. So essentially you should map their GTIN's along with their GS1 prefix.
Do some research on IBM FoodTrust, it is the most well known GS1 standard-based system for tracking goods on a Blockchain (Hyperledger).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install unique-codes
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page