[PeerAssets challenge] 100PPC reward if you can tell me this asset's short_name!

Hi all!

The first to decode the deck spawn transaction below (entire txn, not just the short_name) and can tell me the asset’s short_name will receive 100PPC from me!

the testnet txnid: 356b9736ee7dbf387ea7b10a16beda8ea1ad5db0cbc53e749f5e4b3cf7545552

Good luck!
hrobeers

Peerunity ?

Not peerunity. Start here:
https://github.com/PeerAssets/rnc

hrobeers, I love the way you promoted this idea.

It’s great.

Offering some PPC for people to get involved, whatever amount, is fun, rewarding, for everyone including yourself too. :slight_smile:

More people should do this… much like I did with the Anniversary image contest.

Trading PPC back, forth, putting up bounties, rewards, claiming prizes… it’s all great.

I can’t wait to see who the first person who is talented enough to figure out the answer.

Thanks again for trying it this way. I love watching it!!

[member=11274]ppcman[/member], thanks! It seems to work great indeed.
[member=31975]saeveritt[/member] already decoded it completely, but he wants others to get a chance, so the game is still on!

[quote=“Nagalim, post:3, topic:4076”]Not peerunity. Start here:
https://github.com/PeerAssets/rnc[/quote]

And this might help too: https://github.com/hrobeers/peerscript-labs/blob/master/app/transactions/peerassets.ls

download testnet’s blockchain
getrawtransaction
decoderawtransaction
and google hextostring online :))

You’ve gotten the short_name, awesome !
Now for the decoding entire Deck Spawn txn :slight_smile:

I have found the specs for proto3:
https://developers.google.com/protocol-buffers/docs/proto3

there’s also a package for go
or another favorite javascript: google-protobuf

The compiled proto to JS file is here: https://github.com/hrobeers/peerscript-labs/blob/master/app/transactions/peerassets_pb.js
And an early PA prototype lib: https://github.com/hrobeers/peerscript-labs/blob/master/app/transactions/peerassets-lib.js

o okay,
I am on a visit, but I think something along the lines:

function parseHexString(str) { 
    var result = [];
    while (str.length >= 2) { 
        result.push(parseInt(str.substring(0, 2), 16));
        str = str.substring(2, str.length);
    }

    return result;
}


  var str='';//copy hex value from decoderawtransaction with null data
  var ds = proto.DeckSpawn.deserializeBinary(new Uint8Array(parseHexString(str)));

  console.log(proto.DeckSpawn.toObject(true, ds));

Why not use the peerassets-lib functions?

  var str='';//copy hex value from decoderawtransaction with null data
  var txn = new Transaction(str);
  var decoded = decodeDeckSpawnTransaction(txn);

Excuse me for the off-topic post. It appears as a new account I am not permitted to start a new thread.

[member=28683]Ben[/member]'s Peershare forum has been down for more than half a day. I am hoping [member=28683]Ben[/member] will give a status update on the forum.

[quote=“Phoenix, post:12, topic:4076”]Excuse me for the off-topic post. It appears as a new account I am not permitted to start a new thread.

[member=28683]Ben[/member]'s Peershare forum has been down for more than half a day. I am hoping [member=28683]Ben[/member] will give a status update on the forum.[/quote]

Check Nu’s chat room on Gitter…

Decoded Deck Spawn Transaction:
version: 1
short_name: “hrobeers owes you 100PPC, real ones!”
number_of_decimals: 2
issue_mode: 10

Here is a walk-through tutorial on how to decode a PeerAssets DeckSpawn transaction.

As for the 100 PPC reward, please donate it to the PeerAssets project.
P9uB2bCcbdbzRngJMMAu6aU1XYrdJuQMC3

Thank you for hosting this challenge, [member=32827]hrobeers[/member] !

so how many cards are in this deck? is it 100 as the number_of_decimals here = 2
I notice things have changed since I first read the specs

[quote=“thehuntergames, post:15, topic:4076”]so how many cards are in this deck? is it 100 as the number_of_decimals here = 2
I notice things have changed since I first read the specs[/quote]

The deck spawn is just a registration of the asset.
As multiple issuances can be allowed, it is more logical to use a single type of transaction (card issue transaction) to issue cards.
That’s why it is not encoded in the deck spawn.

[quote=“saeveritt, post:14, topic:4076”]Decoded Deck Spawn Transaction:
version: 1
short_name: “hrobeers owes you 100PPC, real ones!”
number_of_decimals: 2
issue_mode: 10

Here is a walk-through tutorial on how to decode a PeerAssets DeckSpawn transaction.

As for the 100 PPC reward, please donate it to the PeerAssets project.
P9uB2bCcbdbzRngJMMAu6aU1XYrdJuQMC3

Thank you for hosting this challenge, [member=32827]hrobeers[/member] ![/quote]

Congratulations! Here are your 100PPC, real ones!
030cb07d157fd7b7bda6e23b7131b903e40d89bb84d0046f1639b6f182dd9948