Skip to content
Max Kaye edited this page Jun 22, 2014 · 1 revision

Structure

Each 'transaction' on the network is inside a super transaction, which is signed.

SuperTx [
    Transaction [
        Transaction [
            dapp,
            value,
            fee,
            donation,
            data [<bytes>, ...]
        ], ...
    ],
    Signature [
        pubkey_x,
        pubkey_y,
        r,
        s
    ]
]

Here's an example of how to make one:

import cryptonet.standard as s
stx = s.SuperTx.make(txs=[s.Tx.make(dapp=b'', value=99999, fee=444, donation=333, data=[RECIPIENT_IN_BYTES])], signature=s.Signature.make(r=0, s=0, pubkey_x=0, pubkey_y=0))
stx.sign(MY_SECRET_EXPONENT)
Clone this wiki locally