Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. /**
  2. * Master valuta trading network
  3. */
  4. namespace org.master.token
  5.  
  6. asset Borsellino identified by uuid {
  7. o String uuid
  8. o Integer quantity
  9. }
  10.  
  11. participant Individuo identified by kpub {
  12. o String kpub
  13. o String cognome
  14. o String nome
  15. o String [] prodottiCercati
  16. --> Borsellino borsellino
  17. }
  18.  
  19. participant Banca identified by name {
  20. o String name
  21. o String descrizione
  22. }
  23.  
  24. //Solo una banca può attivare questa transazione
  25. //non termina se il proprietario non esiste
  26. //aggiunge la quantità al borsellino del proprietario
  27. transaction CreaMaster {
  28. --> Banca banca
  29. o Integer quantity
  30. o String kpubProprietario
  31. }
  32.  
  33. asset PaymentId identified by id {
  34. o String id
  35. o Boolean used
  36. }
  37.  
  38. transaction Pagamento {
  39. o Integer quantity
  40. --> Individuo nuovoProprietario
  41. --> Individuo vecchioProprietario
  42. o String proofOfProperty //dimostra che la transazione la sta chiedendo l'attuale proprietario ed è unica. Significa che la transazione verifica se la proofOfProeperty è stata già utilizzata. è un numero casuale firmato con la chiave privata del vecchio proprietario
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement