SmartTokenLabs / attestation

Paper and implementation of blockchain attestations
MIT License
48 stars 10 forks source link

Change Ticket_ID to String from integer #221

Closed AW-STJ closed 2 years ago

AW-STJ commented 2 years ago

Request from Devcon to change ticket_id integer to a string. MIght be related to #115, but really to make it more flexible for future as well as to prevent a inelegant implementation of TicketID decoding for our current Liscon implementation.

jot2re commented 2 years ago

@oleggrib @JamesSmartCell I will update this in Java, but I think I need your help to adjust the Solidity and JS versions accordingly. Furthermore, it is also important that we still have backwards compatibility and can understand the old tickets where the ID is an integer.

oleggrib commented 2 years ago

@jot2re , we can set field devconId to variable( CHOISE ), so we can use Integer or String here. Its compatable with ASN1 so no problems here. For JS we can read Integer/BigInt as string. in case of solidity validation contract it need more work to update. cc @colourful-land @JamesSmartCell

jot2re commented 2 years ago

Yes, agree there is no issue when it comes to a complete ASN specification. Cool, that it should directly with JS.

jot2re commented 2 years ago

I have made the java change in PR #225

jot2re commented 2 years ago

@oleggrib please ensure that things also work in the JS @JamesSmartCell the smart contract code will also need to be updated to ensure understanding of tickets where the ticket ID is a string. It might be relevant to do this as a separate task though

oleggrib commented 2 years ago

I just added commit for JS code. I think we can merge and @JamesSmartCell can update validation contract when we need to use it. @jot2re

jot2re commented 2 years ago

I have merged in the Java code, see PR #225, if we want to run with this change then the smart contract probably needs to be updated as well, but currently everything should be backward compatible @JamesSmartCell

JamesSmartCell commented 2 years ago

Is this still pending?

jot2re commented 2 years ago

Is this still pending?

As far as I can see, you handle it in https://github.com/TokenScript/attestation/pull/243, right?

JamesSmartCell commented 2 years ago

Is this still pending?

As far as I can see, you handle it in #243, right?

Yes, that PR should close this issue.