Advertisement
Guest User

Untitled

a guest
Jul 12th, 2013
979
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. switch (addrver) {
  2. case 0: // Bitcoin pubkey hash
  3. case 23: // Primecoin pubkey hash
  4. case 111: // Testnet pubkey hash
  5. if (outsz < (rv = 25))
  6. return rv;
  7. cout[ 0] = 0x76; // OP_DUP
  8. cout[ 1] = 0xa9; // OP_HASH160
  9. cout[ 2] = 0x14; // push 20 bytes
  10. memcpy(&cout[3], &addrbin[1], 20);
  11. cout[23] = 0x88; // OP_EQUALVERIFY
  12. cout[24] = 0xac; // OP_CHECKSIG
  13. return rv;
  14. case 5: // Bitcoin script hash
  15. case 83: // Primecoin script hash
  16. case 196: // Testnet script hash
  17. if (outsz < (rv = 23))
  18. return rv;
  19. cout[ 0] = 0xa9; // OP_HASH160
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement