Bitcoin Forum
May 06, 2024, 07:26:45 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Transazioni POS e reward - il dilemma della settimana  (Read 648 times)
jacko0088 (OP)
Hero Member
*****
Offline Offline

Activity: 1148
Merit: 562


Blockchain Core Dev


View Profile WWW
May 09, 2016, 04:46:01 PM
 #1

Ciao a tutti ragazzi, vi espongo un dilemma che mi sta tirando matto da una settimana, tutti noi (almeno credo) sappiamo utilizzare il comando

Code:
gettransaction <txid>

Usato nella console di debug ci restituirà un vettore contenente i dati della transazione (e fin qui tutto bene). .......ma con le transazioni POS?

Mi spiego meglio...prendo per esempio DubaiCoin (avendo sotto mano il wallet in questione). Partiamo con un semplice invio di monete:

ID Transazione: fbe37c4edba2bf02eee4ed370113d8169bb41c5e997dd90d3fb0d2c5ee9643bd
Comando: gettransaction fbe37c4edba2bf02eee4ed370113d8169bb41c5e997dd90d3fb0d2c5ee9643bd

Output:

Code:
{
"txid" : "fbe37c4edba2bf02eee4ed370113d8169bb41c5e997dd90d3fb0d2c5ee9643bd",
"version" : 1,
"time" : 1462811489,
"locktime" : 0,
"vin" : [
{
"coinbase" : "03da8a030462bb3057084ffffc1ae9d58b000d2f6e6f64655374726174756d2f",
"sequence" : 0
}
],
"vout" : [
{
"value" : 3.12500000,
"n" : 0,
"scriptPubKey" : {
"asm" : "02634239d62bbb42acecc710f193374badcec213148954999884ba2ee1209a5fbc OP_CHECKSIG",
"reqSigs" : 1,
"type" : "pubkey",
"addresses" : [
"DRRXxXSBAf2GErVSPU6FGaVVTWyxwWxW9b"
]
}
}
],
"blockhash" : "0000000000000f376cea96eeff0c8b8709d9bb8ec4c8d29cbc55deac82debf82",
"confirmations" : 10
}

Come vediamo, nel contenitore "value" abbiamo l'esatto numero di monete inviate (in questo caso minate) --> 3.12500000

Risultato explorer online --> http://45.55.9.239:3001/tx/fbe37c4edba2bf02eee4ed370113d8169bb41c5e997dd90d3fb0d2c5ee9643bd

-----------------------------------------------------------------------------------------------------------------------------------------------------


Ora passiamo ad una transazione POS, ecco che succede:

ID Transazione: a158f8d23245a90cafd95217b59a29d0b55f3a21f96136d3ccc33ada4c91dda7
Comando: gettransaction a158f8d23245a90cafd95217b59a29d0b55f3a21f96136d3ccc33ada4c91dda7

Output:

Code:
{
"txid" : "a158f8d23245a90cafd95217b59a29d0b55f3a21f96136d3ccc33ada4c91dda7",
"version" : 1,
"time" : 1462812026,
"locktime" : 0,
"vin" : [
{
"txid" : "eab0371f3656e47acc2badea289be4de868c97b43ee8d44f5c01b2d5e0db289e",
"vout" : 1,
"scriptSig" : {
"asm" : "3044022049bc79c2b26a79e7cb14cd0f3b2b0717464fd8d081c20169556babdf660b346b02201fa8e6f9f20132377726be0651f32304e62f3ad2f713316afd102073c09ffb2701",
"hex" : "473044022049bc79c2b26a79e7cb14cd0f3b2b0717464fd8d081c20169556babdf660b346b02201fa8e6f9f20132377726be0651f32304e62f3ad2f713316afd102073c09ffb2701"
},
"sequence" : 4294967295
}
],
"vout" : [
{
"value" : 0.00000000,
"n" : 0,
"scriptPubKey" : {
"asm" : "",
"type" : "nonstandard"
}
},
{
"value" : 587.65000000,
"n" : 1,
"scriptPubKey" : {
"asm" : "0315dd4ea7d2fd2e910a93c8209d9a7559aff4a395b82cc1b2f91233e7032ff9b2 OP_CHECKSIG",
"reqSigs" : 1,
"type" : "pubkey",
"addresses" : [
"D9JjHEG1xmxoAVSGEjZ5YBRgYxQ9ViVnXX"
]
}
},
{
"value" : 587.65967889,
"n" : 2,
"scriptPubKey" : {
"asm" : "0315dd4ea7d2fd2e910a93c8209d9a7559aff4a395b82cc1b2f91233e7032ff9b2 OP_CHECKSIG",
"reqSigs" : 1,
"type" : "pubkey",
"addresses" : [
"D9JjHEG1xmxoAVSGEjZ5YBRgYxQ9ViVnXX"
]
}
}
],
"blockhash" : "a3792b3e9acf6146f01465a1c867090065dfd40adfde411c5e4c5936b70edb34",
"confirmations" : 9
}

In questo caso ci troviamo due value, il secondo sempre maggiore del primo:
-"value" : 587.65000000
-"value" : 587.65967889

Risultato explorer online --> http://45.55.9.239:3001/tx/a158f8d23245a90cafd95217b59a29d0b55f3a21f96136d3ccc33ada4c91dda7

Ci restituisce 0.08104206, ovvero l'esatto reward ricevuto tramite POS.

Le domande sono due:

1) Cosa stanno a significare quei due "value"?
2) E' possibile ricavare il reale POS reward tramite i dati ricavati con gettransaction?


Grazie..

▀███████████████████████████▄▄▄▄
   ▀▀██████████████████████████████▄
      ▀██████████████████████████████▄
        ▀▀█████████████████████████████▄
           ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀████████████▄
                             ████████████
                             ████████████
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    ▄▄▄▄▄▄▄▄▄████████████
 ▀▀█████████████▄   ▀██████████████████
    ▀█████████████▄▄  ▀██████████████▀
      ▀▀█████████████▄  ▀█████████▀▀
         ▀█████████████▄▄ ▀▀▀▀▀▀
              ▀███████████▄
                ▀████████████▄
                   ▀███████████▄
                     ▀████████████▄
                       ▀████████████▄
E V O


Public DECENTRALIZED Blockchain
Decentralized DOMAIN System (DDNS)
High I/O SIDECHAINS

.TWITTER.
──────────────
.LINKEDIN.
                              ▄▄
                          ▄▄▄████
                   ▄▄▄███████████▄
             ▄▄▄██████████████████
          ▄███████████████████████▄
       ▄███████████████████████████
      █████████████████████████████
    ▄█████████████████████▀████████
    █████████████████████ █████████
   ████████████████████▀ ██████████
    █████████████████▀ ▄███████████
    ▀██████████████▀  ▄███████████▀
      ▀▀█████████▀  ▄████████████▀
         ▀▀███▀   ▄█████████████▀
        ▄▄█▀    ▄██████████████
▄▄▄▄▄██▀▀       ▀▀██████████▀
██▀▀▀                ▀▀▀▀
  ..P O S  v3.. 
Enhancing Blockchain
Technology With Innovative
POS v3 Consensus Algorithm.



.................BUILTIN SHARED..
..GOVERNANCE PROTOCOL..

        ▄███████
      ▄█▀███████
    ▄█▀  ███████
  ▄█▀    ███████
▄██▄▄▄▄▄▄███████
████████████████
███████▀▀▀▀▀▀▀▀▀
███████▄▄▄▄▄▄▄▄▄
███████
███████▀▀▀▀▀▀▀▀▀
███████▄▄▄▄▄▄▄▄▄
████████████
████████████████
 ▀██████████████
▄▄▄▄▄▄▄▄▄▄ █▄▄▄▄

▄▄▄▄▄ █▄▄▄▄▄

│   ▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄(▄▄▄
$▄▄▄▄▄▄█▄▄▄▄▄▄, █▄▄▄▄▄▄▄ $▄▄▄▄▄▄: ▄▄▄▄▄
│   █
│   │   //█▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
│   │   $▄▄▄▄▄▄▄▄█▄▄▄▄ ▄▄▄▄▄▄_▄▄▄(▄▄▄▄▄▄█▄▄▄▄▄▄, █████████▄█████▄███████):
│   │   $▄▄▄▄▄▄▄▄█▄▄▄▄ ▄▄ ▄▄▄▄▄▄($▄▄▄▄▄▄▄ - > ▄▄▄▄▄()) ▄▄▄▄▄▄▄:
│   │   ▄▄ (!$▄▄▄▄▄▄▄▄▄█▄▄▄▄▄▄ !$▄▄▄▄▄▄▄█▄▄▄▄▄) █
│   │      ▄▄▄▄▄▄ ▄▄▄▄▄▄
│   │   █
1715023605
Hero Member
*
Offline Offline

Posts: 1715023605

View Profile Personal Message (Offline)

Ignore
1715023605
Reply with quote  #2

1715023605
Report to moderator
According to NIST and ECRYPT II, the cryptographic algorithms used in Bitcoin are expected to be strong until at least 2030. (After that, it will not be too difficult to transition to different algorithms.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715023605
Hero Member
*
Offline Offline

Posts: 1715023605

View Profile Personal Message (Offline)

Ignore
1715023605
Reply with quote  #2

1715023605
Report to moderator
jacko0088 (OP)
Hero Member
*****
Offline Offline

Activity: 1148
Merit: 562


Blockchain Core Dev


View Profile WWW
May 10, 2016, 09:12:44 PM
 #2

brancolate nel buio o non avete voglia di darmi una mano?  Huh

▀███████████████████████████▄▄▄▄
   ▀▀██████████████████████████████▄
      ▀██████████████████████████████▄
        ▀▀█████████████████████████████▄
           ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀████████████▄
                             ████████████
                             ████████████
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    ▄▄▄▄▄▄▄▄▄████████████
 ▀▀█████████████▄   ▀██████████████████
    ▀█████████████▄▄  ▀██████████████▀
      ▀▀█████████████▄  ▀█████████▀▀
         ▀█████████████▄▄ ▀▀▀▀▀▀
              ▀███████████▄
                ▀████████████▄
                   ▀███████████▄
                     ▀████████████▄
                       ▀████████████▄
E V O


Public DECENTRALIZED Blockchain
Decentralized DOMAIN System (DDNS)
High I/O SIDECHAINS

.TWITTER.
──────────────
.LINKEDIN.
                              ▄▄
                          ▄▄▄████
                   ▄▄▄███████████▄
             ▄▄▄██████████████████
          ▄███████████████████████▄
       ▄███████████████████████████
      █████████████████████████████
    ▄█████████████████████▀████████
    █████████████████████ █████████
   ████████████████████▀ ██████████
    █████████████████▀ ▄███████████
    ▀██████████████▀  ▄███████████▀
      ▀▀█████████▀  ▄████████████▀
         ▀▀███▀   ▄█████████████▀
        ▄▄█▀    ▄██████████████
▄▄▄▄▄██▀▀       ▀▀██████████▀
██▀▀▀                ▀▀▀▀
  ..P O S  v3.. 
Enhancing Blockchain
Technology With Innovative
POS v3 Consensus Algorithm.



.................BUILTIN SHARED..
..GOVERNANCE PROTOCOL..

        ▄███████
      ▄█▀███████
    ▄█▀  ███████
  ▄█▀    ███████
▄██▄▄▄▄▄▄███████
████████████████
███████▀▀▀▀▀▀▀▀▀
███████▄▄▄▄▄▄▄▄▄
███████
███████▀▀▀▀▀▀▀▀▀
███████▄▄▄▄▄▄▄▄▄
████████████
████████████████
 ▀██████████████
▄▄▄▄▄▄▄▄▄▄ █▄▄▄▄

▄▄▄▄▄ █▄▄▄▄▄

│   ▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄(▄▄▄
$▄▄▄▄▄▄█▄▄▄▄▄▄, █▄▄▄▄▄▄▄ $▄▄▄▄▄▄: ▄▄▄▄▄
│   █
│   │   //█▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
│   │   $▄▄▄▄▄▄▄▄█▄▄▄▄ ▄▄▄▄▄▄_▄▄▄(▄▄▄▄▄▄█▄▄▄▄▄▄, █████████▄█████▄███████):
│   │   $▄▄▄▄▄▄▄▄█▄▄▄▄ ▄▄ ▄▄▄▄▄▄($▄▄▄▄▄▄▄ - > ▄▄▄▄▄()) ▄▄▄▄▄▄▄:
│   │   ▄▄ (!$▄▄▄▄▄▄▄▄▄█▄▄▄▄▄▄ !$▄▄▄▄▄▄▄█▄▄▄▄▄) █
│   │      ▄▄▄▄▄▄ ▄▄▄▄▄▄
│   │   █
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!