You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
--- layout: simple --- ## ToyChain Transaction
Transactions block is an added record to the block which allow to attached values transfer to the block.
A transaction descript a transfer of value between account protected via [ECC][1] (we use [secp256k1][5] see code [ECKeys.pm][2]).
You can register your [keypair][4] in the [admin](/admin/) section under [signup / keygen][3].
A transaction has inputs, outputs, and signatures, in order be valid
- the total of inputs must be greater than the total of ouputs - every account on the input side must have enough balance to satisfy the transactions - all signature attached to the transaction must be authentic and the signed message not tempered
example of transaction in ([yaml][6] format)
<textarea name=tx rows=7></textarea> {% comment %} <button id=sign>sign</button> <button id=validate>validate</button> {%- endcomment -%} <button id=submit>submit</button>
<textarea id=json></textarea>
txaddr: <span id=txaddr><i>:txaddr</i></span>
[1]: https://duckduckgo.com?q=Elliptic+Curve+Cryptography [2]: /lib/ECKeys.pm [3]: /admin/keygen.html [4]: /templ/keys.yml [5]: https://duckduckgo.com?q=secp256k1+!g [6]: /templ/txexample.yml
<a href="/docs/txpool.html"><button id=txpool>txpool</button></a>
<script src="transaction.js"></script>
|