OSDN Git Service

Static types (#529)
authorPaladz <yzhu101@uottawa.ca>
Fri, 6 Apr 2018 07:16:27 +0000 (15:16 +0800)
committerGitHub <noreply@github.com>
Fri, 6 Apr 2018 07:16:27 +0000 (15:16 +0800)
commit841b9e6b94bfdca0b1ddf164fe53217530a983c6
treed0105a3f70f8417dbe40cb652fcb520f4bd22911
parente3b124dc862427210269438511e0294a667622ea
Static types (#529)

* tmp save before change the issuance noce

* work on static issuance stuff

* frozen the txinput

* frozen txout

* ready for unit test

* add unit test for spend

* add unit test for output_commitment

* fix wrong log

* add unit test for txoutput

* add unit test for issuance input

* add unit test for spend input

* add unit test for coinbase

* add unit test for transactino

* delete tx_test.go due to already been handled

* add unit test for block

* fix bug for serialized tx size

* finish the types level test
27 files changed:
blockchain/txbuilder/builder.go
blockchain/txbuilder/txbuilder_test.go
protocol/bc/types/bc_test.go [deleted file]
protocol/bc/types/block.go
protocol/bc/types/block_commitment.go
protocol/bc/types/block_header.go
protocol/bc/types/block_header_test.go [new file with mode: 0644]
protocol/bc/types/block_test.go
protocol/bc/types/coinbase.go
protocol/bc/types/fuzz_test.go [deleted file]
protocol/bc/types/issuance.go
protocol/bc/types/issuance_witness.go [deleted file]
protocol/bc/types/map.go
protocol/bc/types/map_test.go
protocol/bc/types/output_commitment.go
protocol/bc/types/spend.go
protocol/bc/types/spend_commitment.go [new file with mode: 0644]
protocol/bc/types/spend_test.go [new file with mode: 0644]
protocol/bc/types/transaction.go
protocol/bc/types/transaction_test.go
protocol/bc/types/tx_test.go [deleted file]
protocol/bc/types/txinput.go
protocol/bc/types/txinput_test.go [new file with mode: 0644]
protocol/bc/types/txoutput.go
protocol/bc/types/txoutput_test.go [new file with mode: 0644]
testutil/hex.go [new file with mode: 0644]
wallet/annotated.go