HorizenOfficial / zend_oo

This repository is archived, Zendoo is out of beta and has been included in https://github.com/HorizenOfficial/zen.
https://github.com/HorizenOfficial/zen
Other
34 stars 22 forks source link

Change syntax of createrawcertificate rpc command in order to support a list of bwt using the same destination more than once #194

Open alsala opened 3 years ago

alsala commented 3 years ago

Currently the createrawcertificate command, in order to specify the backward transfer list, uses a list of pairs such as { :, ..., :}.

The implementation prevents the creation of a certificate with a list of backward transfers sharing some address by raising an exception when an address is used more than one time. Also this syntax, when using a python dictionary in the tests, is error prone since the bwt list is implicitly ordered by keys (address string).

The syntax should be changed using an array of key/value pair as 'send_certificate' command does. [{"address":, "amount":}, ...,{"address":, "amount":}]