· 7 years ago · Dec 13, 2018, 03:54 PM
1class selling_product =
2 object (self)
3 val mutable price = 0
4 val mutable descr = ""
5 val mutable data = ""
6 val mutable nonce : Box.nonce = Box.random_nonce ()
7 val mutable (secret_key, public_key) : Box.key_pair = Box.random_keypair ()
8
9 method get_price = price
10 method get_descr = descr
11 method get_data = data
12 method get_nonce = nonce
13 method get_public_key = public_key
14 method get_secret_key = secret_key